Ignore:
Timestamp:
Oct 6, 2007, 11:19:19 PM (18 years ago)
Author:
bird
Message:

moving globals into shinstance...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kash/output.c

    r883 r1198  
    190190        if (dest->buf == NULL || dest->nextc == dest->buf || dest->fd < 0)
    191191                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)
    193193                dest->flags |= OUTPUT_ERR;
    194194        dest->nextc = dest->buf;
     
    480480
    481481int
    482 xwrite(int fd, char *buf, int nbytes)
     482xwrite(shinstance *psh, int fd, char *buf, int nbytes)
    483483{
    484484        int ntry;
     
    489489        ntry = 0;
    490490        for (;;) {
    491                 i = write(fd, buf, n);
     491                i = shfile_write(&psh->fdtab, fd, buf, n);
    492492                if (i > 0) {
    493493                        if ((n -= i) <= 0)
     
    511511
    512512int
    513 xioctl(int fd, unsigned long request, char *arg)
     513xioctl(shinstance *psh, int fd, unsigned long request, char *arg)
    514514{
    515515        int i;
    516516
    517         while ((i = ioctl(fd, request, arg)) == -1 && errno == EINTR);
     517        while ((i = shfile_ioctl(&psh->fdtab, fd, request, arg)) == -1 && errno == EINTR);
    518518        return i;
    519519}
Note: See TracChangeset for help on using the changeset viewer.