| /src/external/bsd/blocklist/lib/ |
| blocklist.c | 50 blocklist_sa(int action, int rfd, const struct sockaddr *sa, socklen_t salen, 57 rv = blocklist_sa_r(bl, action, rfd, sa, salen, msg); 63 blocklist_sa_r(struct blocklist *bl, int action, int rfd, 86 return bl_send(bl, internal_action, rfd, sa, slen, msg); 90 blocklist(int action, int rfd, const char *msg) 92 return blocklist_sa(action, rfd, NULL, 0, msg); 96 blocklist_r(struct blocklist *bl, int action, int rfd, const char *msg) 98 return blocklist_sa_r(bl, action, rfd, NULL, 0, msg);
|
| /src/tests/lib/libc/sys/ |
| t_posix_fadvise.c | 127 int rfd, ret; local 130 RL(rfd = rump_sys_open("/a_file", O_CREAT, 0666)); 132 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_NORMAL), 0); 133 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_SEQUENTIAL), 0); 134 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_RANDOM), 0); 135 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_WILLNEED), 0); 136 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_NOREUSE), 0); 138 CE(rump_sys_posix_fadvise(rfd, 140 CE(rump_sys_posix_fadvise(rfd, 142 CE(rump_sys_posix_fadvise(rfd, [all...] |
| t_poll.c | 275 int rfd, wfd; local 283 RL(rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)); 293 pfd[0].fd = rfd; 319 RL(nread = read(rfd, buf, 1)); 341 RL(nread = read(rfd, buf, 1)); 361 RL(nread = read(rfd, buf, pipe_buf - 1)); 373 while (read(rfd, buf, pipe_buf) != -1) { 386 RL(close(rfd)); 404 int rfd, wfd; local 410 RL(rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) 454 int rfd, wfd; local [all...] |
| /src/external/gpl3/gcc.old/dist/gcc/ |
| opts-jobserver.h | 37 int rfd = -1; member in struct:jobserver_info
|
| /src/tests/kernel/kqueue/read/ |
| t_fifo.c | 78 int rfd, wfd, kq; local 84 ATF_REQUIRE((rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) >= 0); 95 EV_SET(&event[0], rfd, EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0); 106 ATF_REQUIRE(event[0].ident == (uintptr_t)rfd); 111 ATF_REQUIRE(read(rfd, buf, 1) == 1); 119 ATF_REQUIRE(event[0].ident == (uintptr_t)rfd); 131 (void)close(rfd);
|
| /src/tests/kernel/kqueue/write/ |
| t_fifo.c | 78 int rfd, wfd, kq; local 84 ATF_REQUIRE((rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) >= 0); 117 ATF_REQUIRE(read(rfd, buf, 1) == 1); 130 ATF_REQUIRE(read(rfd, buf, pipe_buf - 1) == pipe_buf - 1); 136 (void)close(rfd);
|
| /src/external/bsd/ipf/dist/samples/ |
| 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, irt, irh - irt) [all...] |
| /src/lib/libc/db/recno/ |
| rec_open.c | 67 int rfd = -1; /* pacify gcc */ local 73 if ((rfd = __dbopen(fname, flags, mode, NULL)) == -1) 118 t->bt_rfd = rfd; 127 if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) { 135 slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL) 151 if (fstat(rfd, &sb)) 175 PROT_READ, MAP_FILE | MAP_PRIVATE, rfd, 220 (void)close(rfd);
|
| /src/usr.sbin/wsmuxctl/ |
| wsmuxctl.c | 82 int i, rfd; local 101 rfd = open(buf, O_WRONLY, 0); 102 if (rfd < 0) 104 listdevs(rfd, rec, ind+2); 105 close(rfd);
|
| /src/usr.sbin/pf/pfs/ |
| pfs.c | 176 int rfd; local 183 rfd = open(filename, O_RDONLY, 0600); 184 if (rfd == -1) 187 if (read(rfd, &nb_states, sizeof(nb_states)) != sizeof(nb_states)) { 189 close(rfd); 198 close(rfd); 206 if (read(rfd, &p[i], sizeof(*p)) != sizeof(*p)) { 208 close(rfd); 217 close(rfd); 224 close(rfd); [all...] |
| /src/tests/include/sys/ |
| t_socket.c | 90 int rfd, fd[2], storage; local 170 rfd = *(int *)CMSG_DATA(cmp); 174 if (rump_sys_read(rfd, buf, sizeof(buf)) == -1) 175 atf_tc_fail_errno("read rfd");
|
| /src/sys/arch/acorn32/podulebus/ |
| if_ie.c | 760 struct ie_recv_frame_desc rfd; local 761 memset( &rfd, 0, sizeof rfd ); 765 rfd.ie_fd_next = ptr + sizeof rfd; 766 host2ie(sc, (char *)&rfd, ptr, sizeof rfd); local 767 ptr += sizeof rfd; 769 rfd.ie_fd_next = sc->rframes[0]; 770 rfd.ie_fd_last |= IE_FD_LAST 771 host2ie(sc, (char *)&rfd, sc->rframes[NFRAMES-1], sizeof rfd ); local 775 host2ie(sc, (char *)&rfd, sc->rframes[0], sizeof rfd ); local 1239 struct ie_recv_frame_desc rfd; local [all...] |
| /src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/ |
| tsan_fd.h | 48 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
|
| /src/usr.sbin/mdsetimage/ |
| mdsetimage.c | 187 int rfd; local 192 rfd = kfd; 197 rfd = fsfd; 204 if ((rv = read(rfd, buf, todo)) != todo) {
|
| /src/external/bsd/wpa/dist/src/common/ |
| wpa_helpers.c | 104 fd_set rfd; local 118 FD_ZERO(&rfd); 119 FD_SET(fd, &rfd); 122 ret = select(fd + 1, &rfd, NULL, NULL, &tv);
|
| /src/external/gpl3/gcc.old/dist/libsanitizer/tsan/ |
| tsan_fd.h | 47 void FdPipeCreate(ThreadState *thr, uptr pc, int rfd, int wfd);
|
| /src/external/bsd/unbound/dist/testcode/ |
| streamtcp.c | 383 fd_set rfd; local 385 memset(&rfd, 0, sizeof(rfd)); 387 FD_ZERO(&rfd); 388 FD_SET(fd, &rfd); 391 ret = select(fd+1, &rfd, NULL, NULL, waittv);
|
| dohclient.c | 262 fd_set rfd; variable 274 memset(&rfd, 0, sizeof(rfd)); 275 FD_ZERO(&rfd); variable 276 FD_SET(h2_session->fd, &rfd); 277 r = select(h2_session->fd+1, &rfd, NULL, NULL, waittv);
|
| /src/tests/kernel/ |
| t_execregs.c | 49 readregs(int rfd, register_t regs[static NEXECREGS]) 58 RL(nread = read(rfd, p, n));
|
| /src/external/gpl3/binutils/dist/include/coff/ |
| 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:__anon8057 306 * a rfd of 0xffffffff is an index into the global table. 309 unsigned long rfd; /* index into the file table */ member in struct:__anon8058
|
| /src/external/gpl3/binutils.old/dist/include/coff/ |
| 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:__anon9521 306 * a rfd of 0xffffffff is an index into the global table. 309 unsigned long rfd; /* index into the file table */ member in struct:__anon9522
|
| /src/lib/librumphijack/ |
| hijack.c | 1196 int fd, rfd; local 1215 rfd = fd_rump2host(fd); 1217 rfd = fd_host2host(fd); 1219 DPRINTF((" <- %d/%d (%s)\n", fd, rfd, whichfd(rfd))); 1220 return rfd; 1416 int fd, rfd; local 1428 rfd = fd_rump2host(fd); 1430 rfd = fd_host2host(fd); 1431 DPRINTF(("socket <- %d/%d (%s)\n", fd, rfd, whichfd(rfd))) 1440 int fd, rfd; local 1470 int fd, rfd; local [all...] |
| /src/bin/cat/ |
| cat.c | 282 raw_cat(int rfd) 311 while ((nr = read(rfd, buf, bsize)) > 0)
|
| /src/external/bsd/ntp/dist/ntpd/ |
| ntp_ppsdev.c | 124 int rfd , 132 if (-1 == (dfd = openat(rfd, path, OModeF)) || -1 == fstat(dfd, &sb))
|
| /src/external/bsd/nvi/dist/common/ |
| exf.c | 1037 int flags, maxnum, nr, num, nw, rfd, wfd, version; local 1045 rfd = wfd = -1; 1056 if ((rfd = open(name, O_RDONLY, 0)) < 0) { 1092 (void)close(rfd); 1176 while ((nr = read(rfd, buf, sizeof(buf))) > 0) 1187 if (close(rfd)) { 1202 err: if (rfd != -1) 1203 (void)close(rfd);
|