Ignore:
Timestamp:
Oct 7, 2007, 12:04:05 AM (18 years ago)
Author:
bird
Message:

moving globals into shinstance...

File:
1 edited

Legend:

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

    r1198 r1199  
    221221                                        flags &=~ O_NONBLOCK;
    222222                                        if (fcntl(0, F_SETFL, flags) >= 0) {
    223                                                 out2str("sh: turning off NDELAY mode\n");
     223                                                out2str(psh, "sh: turning off NDELAY mode\n");
    224224                                                goto retry;
    225225                                        }
     
    317317
    318318        if (vflag(psh)) {
    319                 out2str(parsenextc);
     319                out2str(psh, parsenextc);
    320320                flushout(out2);
    321321        }
     
    397397        INTOFF;
    398398        if ((fd = open(fname, O_RDONLY)) < 0)
    399                 error("Can't open %s", fname);
     399                error(psh, "Can't open %s", fname);
    400400        if (fd < 10) {
    401401                fd2 = copyfd(fd, 10);
    402402                close(fd);
    403403                if (fd2 < 0)
    404                         error("Out of file descriptors");
     404                        error(psh, "Out of file descriptors");
    405405                fd = fd2;
    406406        }
Note: See TracChangeset for help on using the changeset viewer.