/freebsd-10.0-release/contrib/ipfilter/samples/ |
H A D | relay.c | 31 int relay(ifd, ofd, rfd) 32 int ifd, ofd, rfd; 44 if (nfd < rfd) 45 nfd = rfd; 51 FD_SET(rfd, &wfds); 57 FD_SET(rfd, &rfds); 81 if (n && FD_ISSET(rfd, &rfds)) { 82 rw = read(rfd, iwh, obuff + RELAY_BUFSZ - iwh); 90 if (n && FD_ISSET(rfd, &wfds)) { 91 rw = write(rfd, ir [all...] |
/freebsd-10.0-release/lib/libc/db/recno/ |
H A D | rec_open.c | 64 int rfd, sverrno; local 67 if (fname != NULL && (rfd = _open(fname, flags, mode)) < 0) 112 t->bt_rfd = rfd; 121 if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) { 129 slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) 145 if (_fstat(rfd, &sb)) 169 PROT_READ, MAP_PRIVATE, rfd, 214 (void)_close(rfd);
|
/freebsd-10.0-release/usr.sbin/bluetooth/hccontrol/ |
H A D | send_recv.c | 149 fd_set rfd; local 157 FD_ZERO(&rfd); 158 FD_SET(s, &rfd); 163 n = select(s + 1, &rfd, NULL, NULL, &tv); 174 assert(FD_ISSET(s, &rfd));
|
/freebsd-10.0-release/contrib/sendmail/src/ |
H A D | sfsasl.c | 563 ** rfd -- read fd 577 tls_retry(ssl, rfd, wfd, tlsstart, timeout, err, where) 579 int rfd; 618 where, rfd, wfd, err); 622 ((err == SSL_ERROR_WANT_READ && rfd >= FD_SETSIZE) || 629 where, rfd, wfd); 641 FD_SET(rfd, &ssl_maskr); 643 FD_SET(rfd, &ssl_maskx); 646 ret = select(rfd + 1, &ssl_maskr, NULL, &ssl_maskx, 661 FD_SET(rfd, 722 int r, rfd, wfd, try, ssl_err; local 851 int r, rfd, wfd, try, ssl_err; local [all...] |
/freebsd-10.0-release/usr.bin/bluetooth/rfcomm_sppd/ |
H A D | rfcomm_sppd.c | 78 fd_set rfd; local 291 FD_ZERO(&rfd); 292 FD_SET(amaster, &rfd); 293 FD_SET(s, &rfd); 295 n = select(max(amaster, s) + 1, &rfd, NULL, NULL, NULL); 308 if (FD_ISSET(amaster, &rfd)) { 327 if (FD_ISSET(s, &rfd)) {
|
/freebsd-10.0-release/usr.bin/script/ |
H A D | script.c | 100 fd_set rfd; local 234 FD_ZERO(&rfd); 235 FD_SET(master, &rfd); 237 FD_SET(STDIN_FILENO, &rfd); 247 n = select(master + 1, &rfd, 0, 0, tvp); 250 if (n > 0 && FD_ISSET(STDIN_FILENO, &rfd)) { 271 if (n > 0 && FD_ISSET(master, &rfd)) {
|
/freebsd-10.0-release/contrib/binutils/include/coff/ |
H A D | sym.h | 294 * If the rfd field is 4095, the index field indexes into the global symbol 299 unsigned rfd : 12; /* index into the file indirect table */ member in struct:__anon470 306 * a rfd of 0xffffffff is an index into the global table. 309 unsigned long rfd; /* index into the file table */ member in struct:__anon471
|
H A D | alpha.h | 364 unsigned char rfd[4]; member in struct:rfd_ext
|
H A D | mips.h | 321 unsigned char rfd[4]; member in struct:rfd_ext
|
/freebsd-10.0-release/bin/cat/ |
H A D | cat.c | 266 raw_cat(int rfd) argument 290 while ((nr = read(rfd, buf, bsize)) > 0)
|
/freebsd-10.0-release/contrib/nvi/common/ |
H A D | exf.c | 1029 int flags, maxnum, nr, num, nw, rfd, wfd, version; local 1036 rfd = wfd = -1; 1046 if ((rfd = open(name, O_RDONLY, 0)) < 0) { 1087 (void)close(rfd); 1171 while ((nr = read(rfd, buf, sizeof(buf))) > 0) 1182 if (close(rfd)) { 1195 err: if (rfd != -1) 1196 (void)close(rfd);
|
H A D | recover.c | 801 int nr, nw, off, rfd; local 804 if ((rfd = open(fname, O_RDONLY, 0)) == -1) 806 while ((nr = read(rfd, buf, sizeof(buf))) > 0)
|
/freebsd-10.0-release/crypto/openssh/ |
H A D | channels.c | 234 channel_register_fds(Channel *c, int rfd, int wfd, int efd, argument 238 channel_max_fd = MAX(channel_max_fd, rfd); 242 if (rfd != -1) 243 fcntl(rfd, F_SETFD, FD_CLOEXEC); 244 if (wfd != -1 && wfd != rfd) 246 if (efd != -1 && efd != rfd && efd != wfd) 249 c->rfd = rfd; 251 c->sock = (rfd == wfd) ? rfd 278 channel_new(char *ctype, int type, int rfd, int wfd, int efd, u_int window, u_int maxpack, int extusage, char *remote_name, int nonblock) argument 777 channel_set_fds(int id, int rfd, int wfd, int efd, int extusage, int nonblock, int is_tty, u_int window_max) argument [all...] |
H A D | channels.h | 101 int rfd; /* read fd */ member in struct:Channel 106 int isatty; /* rfd is a tty */
|
H A D | nchan.c | 526 if (channel_close_fd(&c->rfd) < 0) 529 c->self, c->rfd, strerror(errno));
|
/freebsd-10.0-release/usr.sbin/usbdump/ |
H A D | usbdump.c | 84 int rfd; member in struct:usbcap 663 while ((ret = read(p->rfd, &datalen, sizeof(int))) == sizeof(int)) { 668 ret = read(p->rfd, data, datalen); 715 p->rfd = open(r_arg, O_RDONLY); 716 if (p->rfd < 0) { 720 ret = read(p->rfd, &uf, sizeof(uf)); 959 if (p->rfd > 0) 960 close(p->rfd);
|
/freebsd-10.0-release/contrib/ipfilter/l4check/ |
H A D | l4check.c | 279 fd_set rfd, wfd; local 331 FD_ZERO(&rfd); 348 FD_SET(l4->l4_fd, &rfd); 373 i = select(mfd + 1, &rfd, &wfd, NULL, &tv); 384 if (FD_ISSET(l4->l4_fd, &rfd)) {
|
/freebsd-10.0-release/lib/libbluetooth/ |
H A D | hci.c | 141 fd_set rfd; local 144 FD_ZERO(&rfd); 145 FD_SET(s, &rfd); 150 while ((n = select(s + 1, &rfd, NULL, NULL, &tv)) < 0) { 162 assert(FD_ISSET(s, &rfd));
|
/freebsd-10.0-release/sys/dev/ie/ |
H A D | if_ie.c | 220 * NFRAMES * sizeof(rfd) == NFRAMES*(2+2+2+2+6+6+2+2) == NFRAMES*24 == 384 845 struct ie_recv_frame_desc rfd; local 851 bcopy((v_caddr_t) (sc->rframes[num]), &rfd, 864 if (rfd.ie_fd_status & IE_FD_OK) { 1382 volatile struct ie_recv_frame_desc *rfd = (volatile void *)ptr; local 1388 sc->rframes[i] = rfd; 1389 bzero((volatile char *) rfd, sizeof *rfd); /* ignore cast-qual */ 1390 rfd++; 1393 ptr = Alignvol(rfd); /* ignor [all...] |
/freebsd-10.0-release/contrib/binutils/bfd/ |
H A D | ecofflink.c | 192 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_BIG) 200 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_LITTLE) 231 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_BIG; 232 ext->r_bits[1] = (((intern->rfd << RNDX_BITS1_RFD_SH_BIG) 239 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_LITTLE; 240 ext->r_bits[1] = (((intern->rfd >> RNDX_BITS1_RFD_SH_LEFT_LITTLE) 397 struct shuffle *rfd; 527 ainfo->rfd = NULL; 680 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz)) 760 RFDT rfd; 394 struct shuffle *rfd; member in struct:accumulate 757 RFDT rfd; local [all...] |
H A D | ecoffswap.h | 637 *intern = H_GET_32 (abfd, ext->rfd); 652 H_PUT_32 (abfd, *intern, ext->rfd); 744 intern->rfd = H_GET_32 (abfd, ext->d_rfd); 764 H_PUT_32 (abfd, intern->rfd, ext->d_rfd);
|
/freebsd-10.0-release/usr.sbin/pmcstat/ |
H A D | pmcstat.c | 559 int pipefd[2], rfd; local 1115 rfd = pmcstat_open_log(args.pa_inputpath, 1117 if ((args.pa_logparser = pmclog_open(rfd)) == NULL) 1119 if (fcntl(rfd, F_SETFL, O_NONBLOCK) < 0) 1121 EV_SET(&kev, rfd, EVFILT_READ, EV_ADD,
|
/freebsd-10.0-release/contrib/gcc/ |
H A D | mips-tdump.c | 528 2nd word is file index if 1st word rfd is ST_RFDESCAPE. */ 533 if (aux_ptr[index].rndx.rfd == ST_RFDESCAPE) 541 2nd word is file index if 1st word rfd is ST_RFDESCAPE. */ 546 if (aux_ptr[index].rndx.rfd == ST_RFDESCAPE) 554 2nd word is file index if 1st word rfd is ST_RFDESCAPE. */ 559 if (aux_ptr[index].rndx.rfd == ST_RFDESCAPE) 1056 (long) u.rndx.rfd, 1076 unsigned int ifd = u.rndx.rfd; 1086 || (u.rndx.rfd == ST_RFDESCAPE && index == 0))
|
/freebsd-10.0-release/contrib/gdb/gdb/ |
H A D | mdebugread.c | 178 complaint (&symfile_complaints, "bad rfd entry for %s: file %d, index %d", 383 RFDT rfd; 394 &rfd); 395 return fdrs + rfd; 1566 if (rn->rfd == 0xfff) 1572 rf = rn->rfd; 1789 rf = rndx.rfd; 4218 if (rn->rfd == 0xfff) 4221 rf = rn->rfd; 4250 if (rn->rfd 378 RFDT rfd; local [all...] |
/freebsd-10.0-release/sys/dev/stge/ |
H A D | if_stge.c | 1583 struct stge_rfd *rfd; local 1585 rfd = &sc->sc_rdata.stge_rx_ring[idx]; 1586 rfd->rfd_status = 0; 2436 struct stge_rfd *rfd; local 2473 rfd = &sc->sc_rdata.stge_rx_ring[idx]; 2474 rfd->rfd_frag.frag_word0 = 2476 rfd->rfd_status = 0;
|