Changeset 1198 for trunk/src/kash/output.c
- Timestamp:
- Oct 6, 2007, 11:19:19 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kash/output.c
r883 r1198 190 190 if (dest->buf == NULL || dest->nextc == dest->buf || dest->fd < 0) 191 191 return; 192 if (xwrite( dest->fd, dest->buf, dest->nextc - dest->buf) < 0)192 if (xwrite(psh, dest->fd, dest->buf, dest->nextc - dest->buf) < 0) 193 193 dest->flags |= OUTPUT_ERR; 194 194 dest->nextc = dest->buf; … … 480 480 481 481 int 482 xwrite( int fd, char *buf, int nbytes)482 xwrite(shinstance *psh, int fd, char *buf, int nbytes) 483 483 { 484 484 int ntry; … … 489 489 ntry = 0; 490 490 for (;;) { 491 i = write(fd, buf, n);491 i = shfile_write(&psh->fdtab, fd, buf, n); 492 492 if (i > 0) { 493 493 if ((n -= i) <= 0) … … 511 511 512 512 int 513 xioctl( int fd, unsigned long request, char *arg)513 xioctl(shinstance *psh, int fd, unsigned long request, char *arg) 514 514 { 515 515 int i; 516 516 517 while ((i = ioctl(fd, request, arg)) == -1 && errno == EINTR);517 while ((i = shfile_ioctl(&psh->fdtab, fd, request, arg)) == -1 && errno == EINTR); 518 518 return i; 519 519 }
Note:
See TracChangeset
for help on using the changeset viewer.