Home
last modified time | relevance | path

Searched refs:rfd (Results 1 – 25 of 50) sorted by relevance

12

/openbsd/regress/sys/kern/select/
H A Dselect_iocond.c313 FD_ZERO(rfd); in fdset_init()
316 FD_SET(fd, rfd); in fdset_init()
325 fd_set efd, rfd, wfd; in proc_child() local
334 fdset_init(&rfd, &wfd, &efd, fd); in proc_child()
337 assert(FD_ISSET(fd, &rfd) == 0); in proc_child()
348 fdset_init(&rfd, &wfd, &efd, fd); in proc_child()
351 assert(FD_ISSET(fd, &rfd) == 0); in proc_child()
457 assert(FD_ISSET(fd, &rfd) != 0); in proc_child()
486 fd_set efd, rfd, wfd; in proc_parent() local
573 FD_ZERO(&rfd); in proc_parent()
[all …]
H A Dselect_regevent.c32 fd_set rfd; in main() local
49 FD_ZERO(&rfd); in main()
50 FD_SET(p1[0], &rfd); in main()
58 ret = select(p2[1] + 1, &rfd, &wfd, NULL, NULL); in main()
60 assert(FD_ISSET(p1[0], &rfd) == 0); in main()
/openbsd/lib/libc/db/recno/
H A Drec_open.c58 int rfd, sverrno; in __rec_open() local
61 if (fname != NULL && (rfd = open(fname, flags, mode)) < 0) in __rec_open()
106 t->bt_rfd = rfd; in __rec_open()
115 if (lseek(rfd, 0, SEEK_CUR) == -1 && errno == ESPIPE) { in __rec_open()
123 slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) in __rec_open()
139 if (fstat(rfd, &sb)) in __rec_open()
180 (void)close(rfd); in __rec_open()
/openbsd/gnu/usr.bin/perl/dist/IO/
H A Dpoll.c47 fd_set rfd,wfd,efd,ifd; in poll() local
59 FD_ZERO(&rfd); in poll()
76 FD_SET(fd, &rfd); in poll()
91 err = select(n+1,&rfd,&wfd,&efd,tbuf); in poll()
120 if(!FD_ISSET(fd, &rfd)) in poll()
/openbsd/bin/df/
H A Ddf.c423 int rfd, ret = -1; in raw_df() local
425 if ((rfd = open(file, O_RDONLY)) == -1) { in raw_df()
430 if (ffs_df(rfd, file, sfsp) == 0) { in raw_df()
432 } else if (e2fs_df(rfd, file, sfsp) == 0) { in raw_df()
436 close (rfd); in raw_df()
441 bread(int rfd, off_t off, void *buf, int cnt) in bread() argument
445 if ((nr = pread(rfd, buf, cnt, off)) != cnt) { in bread()
H A Dffs_df.c56 ffs_df(int rfd, char *file, struct statfs *sfsp) in ffs_df() argument
60 if (!((bread(rfd, (off_t)SBLOCK_UFS1, &sblock, SBSIZE) == 1 && in ffs_df()
62 (bread(rfd, (off_t)SBLOCK_UFS2, &sblock, SBSIZE) == 1 && in ffs_df()
H A Dext2fs_df.c59 e2fs_df(int rfd, char *file, struct statfs *sfsp) in e2fs_df() argument
65 if (bread(rfd, (off_t)SBOFF, &sblock, SBSIZE) == 0) { in e2fs_df()
/openbsd/regress/sbin/isakmpd/exchange/
H A Drun.pl35 my ($rfd, $tickfac, $myaddr, $myport, $hisaddr, $hisport, $proto, $bindaddr,
52 vec ($rfd, fileno SOCKET, 1) = 1;
92 $nfd = select $rfd, undef, undef, $next - $sec;
/openbsd/regress/sys/fifofs/
H A Dfifotest.c316 doselect(pid_t writer, int rfd, int wfd, int timeout) in doselect() argument
329 maxfd = rfd > wfd ? rfd : wfd; in doselect()
330 if (rfd != -1) { in doselect()
336 FD_SET(rfd, rfds); in doselect()
359 if (rfds != NULL && FD_ISSET(rfd, rfds)) in doselect()
/openbsd/usr.bin/ssh/
H A Dchannels.c414 if (rfd != -1) in channel_register_fds()
421 c->rfd = rfd; in channel_register_fds()
423 c->sock = (rfd == wfd) ? rfd : -1; in channel_register_fds()
439 if (rfd != -1 && !isatty(rfd) && in channel_register_fds()
443 set_nonblock(rfd); in channel_register_fds()
458 if (rfd != -1) in channel_register_fds()
553 c->rfd = -1; in channel_close_fd()
584 int sock = c->sock, rfd = c->rfd, wfd = c->wfd, efd = c->efd; in channel_close_fds() local
587 if (rfd != sock) in channel_close_fds()
2843 if (c->rfd != -1 && c->wfd != -1 && c->rfd != c->wfd && in channel_after_poll()
[all …]
H A Dnchan.c405 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_read()
414 if (channel_close_fd(ssh, c, &c->rfd) < 0) { in chan_shutdown_read()
416 "fd %d [i%d o%d]: %.100s", c->self, c->rfd, in chan_shutdown_read()
431 c->self, c->istate, c->ostate, c->sock, c->rfd, c->efd, in chan_shutdown_extended_read()
/openbsd/usr.sbin/unbound/testcode/
H A Dstreamtcp.c383 fd_set rfd; in print_any_answers() local
385 memset(&rfd, 0, sizeof(rfd)); in print_any_answers()
387 FD_ZERO(&rfd); in print_any_answers()
388 FD_SET(fd, &rfd); in print_any_answers()
391 ret = select(fd+1, &rfd, NULL, NULL, waittv); in print_any_answers()
H A Ddohclient.c262 fd_set rfd; in http2_recv_cb() local
274 memset(&rfd, 0, sizeof(rfd)); in http2_recv_cb()
275 FD_ZERO(&rfd); in http2_recv_cb()
276 FD_SET(h2_session->fd, &rfd); in http2_recv_cb()
277 r = select(h2_session->fd+1, &rfd, NULL, NULL, waittv); in http2_recv_cb()
/openbsd/gnu/usr.bin/binutils/gdb/osf-share/AT386/
H A Dcma_thread_io.h160 #define cma__fd_reserve(rfd) \ argument
163 __mutex__ = cma__g_file[rfd]->mutex; \
165 if(cma__g_file[rfd] == (cma__t_file_obj *)cma_c_null_ptr) \
/openbsd/gnu/usr.bin/binutils/gdb/osf-share/RIOS/
H A Dcma_thread_io.h131 #define cma__fd_reserve(rfd) \ argument
134 __mutex__ = cma__g_file[rfd]->mutex; \
136 if(cma__g_file[rfd] == (cma__t_file_obj *)cma_c_null_ptr) \
/openbsd/gnu/usr.bin/binutils/gdb/osf-share/HP800/
H A Dcma_thread_io.h134 #define cma__fd_reserve(rfd) \ argument
137 __mutex__ = cma__g_file[rfd]->mutex; \
139 if(cma__g_file[rfd] == (cma__t_file_obj *)cma_c_null_ptr) \
/openbsd/usr.bin/vi/common/
H A Dexf.c984 int flags, maxnum, nr, num, nw, rfd, wfd, version; in file_backup() local
987 rfd = wfd = -1; in file_backup()
997 if ((rfd = open(name, O_RDONLY)) < 0) { in file_backup()
1023 (void)close(rfd); in file_backup()
1035 (void)close(rfd); in file_backup()
1118 while ((nr = read(rfd, buf, sizeof(buf))) > 0) in file_backup()
1129 if (close(rfd)) { in file_backup()
1142 err: if (rfd != -1) in file_backup()
1143 (void)close(rfd); in file_backup()
/openbsd/bin/cat/
H A Dcat.c210 raw_cat(int rfd, const char *filename) in raw_cat() argument
226 while ((nr = read(rfd, buf, bsize)) != -1 && nr != 0) { in raw_cat()
/openbsd/gnu/usr.bin/binutils/include/coff/
H A Dsym.h299 unsigned rfd : 12; /* index into the file indirect table */ member
309 unsigned long rfd; /* index into the file table */ member
/openbsd/gnu/usr.bin/binutils-2.17/include/coff/
H A Dsym.h299 unsigned rfd : 12; /* index into the file indirect table */ member
309 unsigned long rfd; /* index into the file table */ member
/openbsd/gnu/usr.bin/binutils-2.17/bfd/
H A Decofflink.c190 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_BIG)
229 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_BIG;
230 ext->r_bits[1] = (((intern->rfd << RNDX_BITS1_RFD_SH_BIG)
237 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_LITTLE;
394 struct shuffle *rfd; member
524 ainfo->rfd = NULL;
757 RFDT rfd; local
759 (*swap_rfd_in) (input_bfd, (PTR) rfd_in, &rfd);
760 BFD_ASSERT (rfd >= 0 && rfd < input_symhdr->ifdMax);
761 rfd = input_debug->ifdmap[rfd];
[all …]
/openbsd/gnu/usr.bin/binutils/bfd/
H A Decofflink.c190 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_BIG)
229 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_BIG;
230 ext->r_bits[1] = (((intern->rfd << RNDX_BITS1_RFD_SH_BIG)
237 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_LITTLE;
394 struct shuffle *rfd; member
524 ainfo->rfd = NULL;
756 RFDT rfd; local
758 (*swap_rfd_in) (input_bfd, (PTR) rfd_in, &rfd);
759 BFD_ASSERT (rfd >= 0 && rfd < input_symhdr->ifdMax);
760 rfd = input_debug->ifdmap[rfd];
[all …]
/openbsd/regress/sys/kern/pledge/generic/
H A Dmanager.c152 drainfd(int rfd, int wfd) in drainfd() argument
157 while ((nr = read(rfd, buf, sizeof(buf))) != -1 && nr != 0) in drainfd()
/openbsd/lib/libc/gen/
H A Dfts.c207 int rfd, error = 0; in fts_close() local
224 rfd = ISSET(FTS_NOCHDIR) ? -1 : sp->fts_rfd; in fts_close()
234 if (rfd != -1) { in fts_close()
236 error = fchdir(rfd); in fts_close()
238 (void)close(rfd); in fts_close()
/openbsd/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_fd.cpp271 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd) { in FdPipeCreate() argument
272 DPrintf("#%d: FdCreatePipe(%d, %d)\n", thr->tid, rfd, wfd); in FdPipeCreate()
274 init(thr, pc, rfd, ref(s)); in FdPipeCreate()

12