Searched refs:rfd (Results 1 - 25 of 42) sorted by relevance

12

/netbsd-6-1-5-RELEASE/tests/lib/libc/sys/
H A Dt_posix_fadvise.c130 int rfd, ret; local
133 RL(rfd = rump_sys_open("/a_file", O_CREAT, 0666));
135 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_NORMAL), 0);
136 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_SEQUENTIAL), 0);
137 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_RANDOM), 0);
138 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_WILLNEED), 0);
139 CE(rump_sys_posix_fadvise(rfd, 0, 0, POSIX_FADV_NOREUSE), 0);
141 CE(rump_sys_posix_fadvise(rfd,
143 CE(rump_sys_posix_fadvise(rfd,
145 CE(rump_sys_posix_fadvise(rfd,
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/wsmuxctl/
H A Dwsmuxctl.c80 int i, rfd; local
92 rfd = open(buf, O_WRONLY, 0);
93 if (rfd < 0)
95 listdevs(rfd, rec, ind+2);
96 close(rfd);
/netbsd-6-1-5-RELEASE/dist/ipf/samples/
H A Drelay.c31 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...]
/netbsd-6-1-5-RELEASE/lib/libc/db/recno/
H A Drec_open.c67 int rfd = -1; /* pacify gcc */ local
76 if ((rfd = open(fname, flags | O_CLOEXEC, mode)) == -1)
79 if (fcntl(rfd, F_SETFD, FD_CLOEXEC) == -1)
125 t->bt_rfd = rfd;
134 if (lseek(rfd, (off_t)0, SEEK_CUR) == -1 && errno == ESPIPE) {
142 slow: if ((t->bt_rfp = fdopen(rfd, "r")) == NULL)
158 if (fstat(rfd, &sb))
182 PROT_READ, MAP_FILE | MAP_PRIVATE, rfd,
227 (void)close(rfd);
/netbsd-6-1-5-RELEASE/usr.sbin/pf/pfs/
H A Dpfs.c176 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...]
/netbsd-6-1-5-RELEASE/tests/include/sys/
H A Dt_socket.c90 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");
/netbsd-6-1-5-RELEASE/sys/arch/acorn32/podulebus/
H A Dif_ie.c765 struct ie_recv_frame_desc rfd; local
766 memset( &rfd, 0, sizeof rfd );
770 rfd.ie_fd_next = ptr + sizeof rfd;
771 host2ie(sc, (char *)&rfd, ptr, sizeof rfd); local
772 ptr += sizeof rfd;
774 rfd.ie_fd_next = sc->rframes[0];
775 rfd
776 host2ie(sc, (char *)&rfd, sc->rframes[NFRAMES-1], sizeof rfd ); local
780 host2ie(sc, (char *)&rfd, sc->rframes[0], sizeof rfd ); local
1245 struct ie_recv_frame_desc rfd; local
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/usr.sbin/mdsetimage/
H A Dmdsetimage.c198 int rfd; local
203 rfd = kfd;
208 rfd = fsfd;
215 if ((rv = read(rfd, buf, todo)) != todo) {
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/include/coff/
H A Dsym.h294 * 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:__anon3468
306 * a rfd of 0xffffffff is an index into the global table.
309 unsigned long rfd; /* index into the file table */ member in struct:__anon3469
H A Dalpha.h365 unsigned char rfd[4]; member in struct:rfd_ext
H A Dmips.h322 unsigned char rfd[4]; member in struct:rfd_ext
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/include/coff/
H A Dsym.h294 * 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:__anon843
306 * a rfd of 0xffffffff is an index into the global table.
309 unsigned long rfd; /* index into the file table */ member in struct:__anon844
H A Dalpha.h365 unsigned char rfd[4]; member in struct:rfd_ext
H A Dmips.h322 unsigned char rfd[4]; member in struct:rfd_ext
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/osf-share/AT386/
H A Dcma_thread_io.h150 * If the file gets closed while waiting for the mutex cma__g_file[rfd]
160 #define cma__fd_reserve(rfd) \
163 __mutex__ = cma__g_file[rfd]->mutex; \
165 if(cma__g_file[rfd] == (cma__t_file_obj *)cma_c_null_ptr) \
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/osf-share/HP800/
H A Dcma_thread_io.h124 * If the file gets closed while waiting for the mutex cma__g_file[rfd]
134 #define cma__fd_reserve(rfd) \
137 __mutex__ = cma__g_file[rfd]->mutex; \
139 if(cma__g_file[rfd] == (cma__t_file_obj *)cma_c_null_ptr) \
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/gdb/osf-share/RIOS/
H A Dcma_thread_io.h121 * If the file gets closed while waiting for the mutex cma__g_file[rfd]
131 #define cma__fd_reserve(rfd) \
134 __mutex__ = cma__g_file[rfd]->mutex; \
136 if(cma__g_file[rfd] == (cma__t_file_obj *)cma_c_null_ptr) \
/netbsd-6-1-5-RELEASE/bin/cat/
H A Dcat.c285 raw_cat(int rfd) argument
308 while ((nr = read(rfd, buf, bsize)) > 0)
/netbsd-6-1-5-RELEASE/crypto/external/bsd/openssh/dist/
H A Dchannels.c228 channel_register_fds(Channel *c, int rfd, int wfd, int efd, argument
232 channel_max_fd = MAX(channel_max_fd, rfd);
236 if (rfd != -1)
237 fcntl(rfd, F_SETFD, FD_CLOEXEC);
238 if (wfd != -1 && wfd != rfd)
240 if (efd != -1 && efd != rfd && efd != wfd)
243 c->rfd = rfd;
245 c->sock = (rfd == wfd) ? rfd
268 channel_new(const char *ctype, int type, int rfd, int wfd, int efd, u_int window, u_int maxpack, int extusage, const char *remote_name, int nonblock) argument
764 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 Dchannels.h98 int rfd; /* read fd */ member in struct:Channel
103 int isatty; /* rfd is a tty */
H A Dnchan.c521 if (channel_close_fd(&c->rfd) < 0)
524 c->self, c->rfd, strerror(errno));
/netbsd-6-1-5-RELEASE/dist/ipf/l4check/
H A Dl4check.c294 fd_set rfd, wfd; local
346 FD_ZERO(&rfd);
363 FD_SET(l4->l4_fd, &rfd);
388 i = select(mfd + 1, &rfd, &wfd, NULL, &tv);
399 if (FD_ISSET(l4->l4_fd, &rfd)) {
/netbsd-6-1-5-RELEASE/external/gpl3/binutils/dist/bfd/
H A Decofflink.c193 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_BIG)
201 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_LITTLE)
232 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_BIG;
233 ext->r_bits[1] = (((intern->rfd << RNDX_BITS1_RFD_SH_BIG)
240 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_LITTLE;
241 ext->r_bits[1] = (((intern->rfd >> RNDX_BITS1_RFD_SH_LEFT_LITTLE)
398 struct shuffle *rfd;
528 ainfo->rfd = NULL;
681 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz))
762 RFDT rfd;
395 struct shuffle *rfd; member in struct:accumulate
759 RFDT rfd; local
[all...]
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/bfd/
H A Decofflink.c193 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_BIG)
201 intern->rfd = (ext->r_bits[0] << RNDX_BITS0_RFD_SH_LEFT_LITTLE)
232 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_BIG;
233 ext->r_bits[1] = (((intern->rfd << RNDX_BITS1_RFD_SH_BIG)
240 ext->r_bits[0] = intern->rfd >> RNDX_BITS0_RFD_SH_LEFT_LITTLE;
241 ext->r_bits[1] = (((intern->rfd >> RNDX_BITS1_RFD_SH_LEFT_LITTLE)
398 struct shuffle *rfd;
528 ainfo->rfd = NULL;
681 if (!add_memory_shuffle (ainfo, &ainfo->rfd, &ainfo->rfd_end, rfd_out, sz))
762 RFDT rfd;
395 struct shuffle *rfd; member in struct:accumulate
759 RFDT rfd; local
[all...]
/netbsd-6-1-5-RELEASE/dist/nvi/common/
H A Dexf.c1094 int flags, maxnum, nr, num, nw, rfd, wfd, version; local
1102 rfd = wfd = -1;
1113 if ((rfd = open(name, O_RDONLY, 0)) < 0) {
1149 (void)close(rfd);
1233 while ((nr = read(rfd, buf, sizeof(buf))) > 0)
1244 if (close(rfd)) {
1257 err: if (rfd != -1)
1258 (void)close(rfd);

Completed in 603 milliseconds

12