Lines Matching refs:ifd
926 start_charshunt(ifd, ofd) in start_charshunt() argument
927 int ifd, ofd; in start_charshunt()
931 cpid = safe_fork(ifd, ofd, (log_to_fd >= 0? log_to_fd: 2));
978 charshunt(ifd, ofd, record_file) in charshunt() argument
979 int ifd, ofd; in charshunt()
1041 if (ifd >= FD_SETSIZE || ofd >= FD_SETSIZE || pty_master >= FD_SETSIZE)
1043 ifd, ofd, pty_master);
1059 flags = fcntl(ifd, F_GETFL);
1061 || fcntl(ifd, F_SETFL, flags | O_NONBLOCK) == -1)
1062 warn("couldn't set %s to nonblock: %m", (ifd==0? "stdin": "tty"));
1063 if (ofd != ifd) {
1106 FD_SET(ifd, &ready);
1133 if (FD_ISSET(ifd, &ready)) {
1135 nibuf = read(ifd, ibufp, PPP_MRU + PPP_HDRLEN);