Lines Matching defs:fd
64 int fd; /* input file descriptor */
700 if ((n = read(proto->fd, ip, proto->iz)) > 0)
705 close(proto->fd);
715 close(proto->fd);
2108 if (proto->flags & MORE) close(proto->fd);
2117 * file !=0 file path to open, otherwise use fd
2118 * fd open file fd if file==0
2125 pppopen(char* file, int fd, char* notice, char* options, char* package, char* comment, int flags)
2150 if (file && (fd = open(file, O_RDONLY)) < 0) return 0;
2152 if ((n = lseek(fd, 0L, 2)) > 0)
2154 if (lseek(fd, 0L, 0)) return 0;
2185 proto->fd = fd;
2207 n = read(fd, proto->ip, proto->iz);
2209 close(fd);
2461 else if ((n = read(proto->fd, proto->ob, proto->oz)) <= 0 || (proto->options & REGULAR) && n < proto->oz)
2464 close(proto->fd);
2483 else if ((n = read(proto->fd, ip, proto->iz)) <= 0 || (proto->options & REGULAR) && n < proto->iz)
2487 close(proto->fd);
2542 * return value is input fd
2543 * if fd<0 then all data in iob
2554 return proto->fd;