Home
last modified time | relevance | path

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

/openbsd-src/regress/sys/kern/select/
H A Dselect_iocond.c311 fdset_init(fd_set *rfd, fd_set *wfd, fd_set *efd, int fd) in fdset_init() argument
315 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()
335 ret = select(fd + 1, &rfd, &wfd, &efd, &tv); in proc_child()
339 assert(FD_ISSET(fd, &efd) == 0); in proc_child()
348 fdset_init(&rfd, &wfd, &efd, fd); in proc_child()
349 ret = select(fd + 1, &rfd, &wfd, &efd, &tv); in proc_child()
353 assert(FD_ISSET(fd, &efd) == 0); in proc_child()
[all …]
/openbsd-src/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-src/usr.bin/ssh/
H A Dnchan.c343 c->efd != -1 && in chan_is_dead()
345 debug2("channel %d: active efd: %d len %zu", in chan_is_dead()
346 c->self, c->efd, sshbuf_len(c->extended)); in chan_is_dead()
381 debug2_f("channel %d: (i%d o%d sock %d wfd %d efd %d [%s])", in chan_shutdown_write()
382 c->self, c->istate, c->ostate, c->sock, c->wfd, c->efd, in chan_shutdown_write()
404 debug2_f("channel %d: (i%d o%d sock %d wfd %d efd %d [%s])", in chan_shutdown_read()
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()
430 debug_f("channel %d: (i%d o%d sock %d wfd %d efd %d [%s])", in chan_shutdown_extended_read()
431 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
[all...]
H A Dchannels.c411 channel_register_fds(struct ssh *ssh, Channel *c, int rfd, int wfd, int efd, in channel_register_fds()
420 if (efd != -1 && efd != rfd && efd != wfd) in channel_register_fds()
421 (void)fcntl(efd, F_SETFD, FD_CLOEXEC); in channel_register_fds()
426 c->efd = efd; in channel_register_fds()
453 if (efd != -1 && !isatty(efd) && in channel_register_fds()
454 (val = fcntl(efd, F_GETF in channel_register_fds()
409 channel_register_fds(struct ssh * ssh,Channel * c,int rfd,int wfd,int efd,int extusage,int nonblock,int is_tty) channel_register_fds() argument
473 channel_new(struct ssh * ssh,char * ctype,int type,int rfd,int wfd,int efd,u_int window,u_int maxpack,int extusage,const char * remote_name,int nonblock) channel_new() argument
584 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; channel_close_fds() local
1210 channel_set_fds(struct ssh * ssh,int id,int rfd,int wfd,int efd,int extusage,int nonblock,int is_tty,u_int window_max) channel_set_fds() argument
[all...]
H A Dchannels.h136 int efd; /* extended fd */ member
140 int pfds[4]; /* pollfd entries for rfd/wfd/efd/sock */
267 /* check whether 'efd' is still in use */
270 (c->efd != -1 || \
274 c->efd != -1 && (!(c->flags & (CHAN_EOF_RCVD|CHAN_CLOSE_RCVD)) || \
/openbsd-src/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()