/src/lib/libc/db/recno/ |
rec_open.c | 67 int rfd = -1; /* pacify gcc */ local in function:__rec_open 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/tests/lib/libc/sys/ |
t_posix_fadvise.c | 127 int rfd, ret; local in function:ATF_TC_BODY 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 in function:ATF_TC_BODY 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 in function:ATF_TC_BODY 410 RL(rfd = open(fifo_path, O_RDONLY | O_NONBLOCK)) 454 int rfd, wfd; local in function:ATF_TC_BODY [all...] |
/src/tests/kernel/kqueue/write/ |
t_fifo.c | 78 int rfd, wfd, kq; local in function:ATF_TC_BODY 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/tests/kernel/kqueue/read/ |
t_fifo.c | 78 int rfd, wfd, kq; local in function:ATF_TC_BODY 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/include/sys/ |
t_socket.c | 90 int rfd, fd[2], storage; local in function:ATF_TC_BODY 170 rfd = *(int *)CMSG_DATA(cmp); 174 if (rump_sys_read(rfd, buf, sizeof(buf)) == -1) 175 atf_tc_fail_errno("read rfd");
|
/src/usr.sbin/wsmuxctl/ |
wsmuxctl.c | 82 int i, rfd; local in function:listdevs 101 rfd = open(buf, O_WRONLY, 0); 102 if (rfd < 0) 104 listdevs(rfd, rec, ind+2); 105 close(rfd);
|
/src/usr.sbin/mdsetimage/ |
mdsetimage.c | 187 int rfd; local in function:main 192 rfd = kfd; 197 rfd = fsfd; 204 if ((rv = read(rfd, buf, todo)) != todo) {
|
/src/sys/dev/ic/ |
i82596.c | 183 * list already processed / the number of the RFD that has to be checked for 186 * cluster is allocated and the RFD / RBD are reinitialized accordingly. 188 * When a RFD list overrun occurred the whole RFD and RBD lists are 196 struct iee_rfd *rfd; local in function:iee_intr 214 rfd = SC_RFD(sc, sc->sc_rx_done); 217 status = rfd->rfd_status; 222 rfd->rfd_status = 0; 296 rfd = SC_RFD(sc, n); 298 rfd->rfd_cmd = IEE_RFD_SF [all...] |
/src/usr.sbin/pf/pfs/ |
pfs.c | 176 int rfd; local in function:restore_states_binary 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/sys/kern/ |
uipc_syscalls.c | 1275 unsigned rfd, wfd; local in function:pipe1 1289 error = fsocreate(AF_LOCAL, &rso, SOCK_STREAM|soflags, 0, &rfd, &rf, 1329 fd_affix(p, rf, rfd); 1330 fildes[0] = rfd; 1338 fd_abort(p, rf, rfd);
|
/src/sys/arch/acorn32/podulebus/ |
if_ie.c | 760 struct ie_recv_frame_desc rfd; local in function:setup_rfa 761 memset( &rfd, 0, sizeof rfd ); 765 rfd.ie_fd_next = ptr + sizeof rfd; 766 host2ie(sc, (char *)&rfd, ptr, sizeof rfd); 767 ptr += sizeof rfd; 769 rfd.ie_fd_next = sc->rframes[0]; 770 rfd.ie_fd_last |= IE_FD_LAST 1239 struct ie_recv_frame_desc rfd; local in function:ie_read_frame [all...] |
/src/sbin/fdisk/ |
fdisk.c | 207 static int fd = -1, wfd = -1, *rfd = &fd; variable in typeref:typename:int * 490 rfd = &wfd; 2533 if (*rfd == -1) 2543 if (lseek(*rfd, rnd, SEEK_SET) == (off_t)-1) 2547 return read(*rfd, buf, secsize); 2549 if ((nr = read(*rfd, iobuf, secsize)) != secsize)
|
/src/lib/librumphijack/ |
hijack.c | 1196 int fd, rfd; local in function:open 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 in function:REALSOCKET 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 in function:accept 1470 int fd, rfd; local in function:paccept [all...] |