Home | History | Annotate | Download | only in toolbox

Lines Matching refs:IO

85 extern IO		in, out;
104 static void getfdtype(IO *);
109 IO in, out; /* input/output state */
286 getfdtype(IO *io)
291 if (fstat(io->fd, &sb)) {
293 io->name, strerror(errno));
298 io->flags |= /*ioctl(io->fd, MTIOCGET, &mt) ? ISCHR : ISTAPE; */ ISCHR;
299 else if (lseek(io->fd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE)
300 io->flags |= ISPIPE; /* XXX fixed in 4.4BSD */
325 fprintf(stderr, "dupfd IO: %s\n", strerror(errno));