Home
last modified time | relevance | path

Searched refs:efd (Results 1 – 6 of 6) sorted by relevance

/openbsd/regress/sys/kern/select/
H A Dselect_iocond.c315 FD_ZERO(efd); in fdset_init()
318 FD_SET(fd, efd); in fdset_init()
325 fd_set efd, rfd, wfd; in proc_child() local
334 fdset_init(&rfd, &wfd, &efd, fd); in proc_child()
339 assert(FD_ISSET(fd, &efd) == 0); in proc_child()
348 fdset_init(&rfd, &wfd, &efd, fd); in proc_child()
353 assert(FD_ISSET(fd, &efd) == 0); in proc_child()
459 assert(FD_ISSET(fd, &efd) == 0); in proc_child()
476 fdset_init(&rfd, &wfd, &efd, fd); in proc_child()
486 fd_set efd, rfd, wfd; in proc_parent() local
[all …]
/openbsd/gnu/usr.bin/perl/dist/IO/
H A Dpoll.c47 fd_set rfd,wfd,efd,ifd; in poll() local
61 FD_ZERO(&efd); in poll()
82 FD_SET(fd, &efd); in poll()
91 err = select(n+1,&rfd,&wfd,&efd,tbuf); in poll()
126 if(!FD_ISSET(fd, &efd)) in poll()
/openbsd/usr.bin/ssh/
H A Dnchan.c343 c->efd != -1 && in chan_is_dead()
346 c->self, c->efd, sshbuf_len(c->extended)); in chan_is_dead()
382 c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd, in chan_shutdown_write()
405 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_read()
425 if (c->type == SSH_CHANNEL_LARVAL || c->efd == -1) in chan_shutdown_extended_read()
431 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
433 if (channel_close_fd(ssh, c, &c->efd) < 0) { in chan_shutdown_extended_read()
435 "extended fd %d [i%d o%d]: %.100s", c->self, c->efd, in chan_shutdown_extended_read()
H A Dchannels.c418 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
424 c->efd = efd; in channel_register_fds()
451 if (efd != -1 && !isatty(efd) && in channel_register_fds()
462 if (efd != -1) in channel_register_fds()
565 c->efd = -1; in channel_close_fd()
584 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; in channel_close_fds() local
591 if (efd != sock && efd != rfd && efd != wfd) in channel_close_fds()
987 if (c->efd == -1) in channel_format_extended_usage()
1378 if (c->efd != -1) in channel_force_close()
2716 if (c->efd != -1 && c->rfd != c->efd) { in channel_prepare_pollfd()
[all …]
H A Dchannels.h136 int efd; /* extended fd */ member
270 (c->efd != -1 || \
274 c->efd != -1 && (!(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD)) || \
/openbsd/usr.sbin/lpd/
H A Dprinter.c596 int ret, argc, efd, status; in printfile() local
667 if ((efd = mkstemp(prn->efile)) == -1) { in printfile()
680 close(efd); in printfile()
689 if (dup2(efd, STDERR_FILENO) == -1) in printfile()
714 if (lseek(efd, 0, SEEK_SET) == -1) in printfile()
716 while ((n = read(efd, tmp, sizeof(tmp))) > 0) in printfile()
718 close(efd); in printfile()