Searched refs:fds (Results 1 - 25 of 229) sorted by relevance

12345678910

/netbsd-current/tests/lib/libc/sys/
H A Dmsg.h45 msg_open(struct msg_fds *fds) argument
47 if (pipe(fds->pfd) == -1)
49 if (pipe(fds->cfd) == -1) {
50 close(fds->pfd[0]);
51 close(fds->pfd[1]);
58 msg_close(struct msg_fds *fds) argument
60 CLOSEFD(fds->pfd[0]);
61 CLOSEFD(fds->pfd[1]);
62 CLOSEFD(fds->cfd[0]);
63 CLOSEFD(fds
67 msg_write_child(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
85 msg_write_parent(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
103 msg_read_parent(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
121 msg_read_child(const char *info, struct msg_fds *fds, void *msg, size_t len) argument
[all...]
/netbsd-current/lib/libc/rpc/
H A Dsvc_fdset.c90 svc_fdset_print(const char *func, size_t line, struct svc_fdset *fds, argument
100 fprintf(stderr, "%p[%d] fd_set<", fds->fdset, fds->fdmax);
101 for (int i = 0; i <= fds->fdmax; i++) {
102 if (!FD_ISSET(i, fds->fdset))
109 for (int i = 0; i < fds->fdused; i++) {
110 int fd = fds->fdp[i].fd;
142 svc_fdset_sanitize(struct svc_fdset *fds) argument
144 while (fds->fdmax >= 0 && !FD_ISSET(fds
158 struct svc_fdset *fds = v; local
177 svc_pollfd_alloc(struct svc_fdset *fds) argument
192 svc_pollfd_add(int fd, struct svc_fdset *fds) argument
223 svc_pollfd_del(int fd, struct svc_fdset *fds) argument
253 svc_fdset_resize(int fd, struct svc_fdset *fds) argument
280 struct svc_fdset *fds; local
326 struct svc_fdset *fds = svc_fdset_alloc(0); local
340 struct svc_fdset *fds = svc_fdset_alloc(fd); local
359 struct svc_fdset *fds = svc_fdset_alloc(fd); local
372 struct svc_fdset *fds = svc_fdset_alloc(fd); local
403 struct svc_fdset *fds = svc_fdset_alloc(0); local
416 struct svc_fdset *fds = svc_fdset_alloc(0); local
429 struct svc_fdset *fds = svc_fdset_alloc(fd); local
455 struct svc_fdset *fds = svc_fdset_alloc(0); local
467 struct svc_fdset *fds = svc_fdset_alloc(0); local
477 struct svc_fdset *fds = svc_fdset_alloc(fd); local
[all...]
/netbsd-current/external/ibm-public/postfix/dist/src/util/
H A Dduplex_pipe.c11 /* int duplex_pipe(fds)
12 /* int *fds;
43 int duplex_pipe(int *fds) argument
46 return (pipe(fds));
48 return (sane_socketpair(AF_UNIX, SOCK_STREAM, 0, fds));
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/
H A Dpipe-reverse.c31 int fds[2] = { -1, -1 }; variable
37 pipe (fds);
H A Dreadv-reverse.c32 int fds[2] = { -1, -1 }; variable
45 pipe (fds);
46 write (fds[1], "UNIX", 4);
47 readv (fds[0], v, 4);
H A Drecvmsg-reverse.c65 int fds[2]; variable
88 socketpair (AF_UNIX, SOCK_DGRAM, 0, fds);
89 setsockopt (fds[0], SOL_SOCKET, SO_PASSCRED, &itrue, sizeof itrue);
90 sendmsg (fds[1], &wmsg, 0);
91 recvmsg (fds[0], &rmsg, 0);
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/
H A Dpipe-reverse.c31 int fds[2] = { -1, -1 }; variable
37 pipe (fds);
H A Dreadv-reverse.c32 int fds[2] = { -1, -1 }; variable
45 pipe (fds);
46 write (fds[1], "UNIX", 4);
47 readv (fds[0], v, 4);
H A Drecvmsg-reverse.c65 int fds[2]; variable
88 socketpair (AF_UNIX, SOCK_DGRAM, 0, fds);
89 setsockopt (fds[0], SOL_SOCKET, SO_PASSCRED, &itrue, sizeof itrue);
90 sendmsg (fds[1], &wmsg, 0);
91 recvmsg (fds[0], &rmsg, 0);
/netbsd-current/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
H A Dcatch-fork-kill.c24 int fds[2] = { -1, -1 }; variable
51 pipe (fds);
62 close (fds[0]);
73 close (fds[1]);
80 close (fds[1]);
87 close (fds[1]);
89 nbytes = read (fds[0], readbuffer, sizeof (readbuffer));
/netbsd-current/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
H A Dcatch-fork-kill.c24 int fds[2] = { -1, -1 }; variable
51 pipe (fds);
62 close (fds[0]);
73 close (fds[1]);
80 close (fds[1]);
87 close (fds[1]);
89 nbytes = read (fds[0], readbuffer, sizeof (readbuffer));
/netbsd-current/distrib/utils/sparkcrc/
H A Dsparkcrc.c84 FILE *fds; local
93 if (!(fds = fopen(argv[1], "r")))
95 while ((len = fread(buf, 1, sizeof(buf), fds)))
99 fclose(fds);
/netbsd-current/external/bsd/kyua-cli/dist/utils/process/
H A Dfdstream_test.cpp50 int fds[2]; local
51 ATF_REQUIRE(::pipe(fds) != -1);
53 ifdstream rend(fds[0]);
55 systembuf wbuf(fds[1]);
/netbsd-current/external/bsd/tmux/dist/compat/
H A Dsystemd.c29 int fds; local
34 fds = sd_listen_fds(0);
35 if (fds > 1) { /* too many file descriptors */
40 if (fds == 1) { /* socket-activated */
/netbsd-current/tests/kernel/kqueue/write/
H A Dt_pipe.c59 int fds[2]; local
62 RL(pipe(fds));
64 RL(close(fds[0]));
66 EV_SET(&event[0], fds[1], EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0);
83 int fds[2]; local
88 RL(pipe(fds));
91 EV_SET(&event[0], fds[1], EVFILT_WRITE, EV_ADD|EV_ENABLE, 0, 0, 0);
97 int sz = read(fds[0], buffer, 128);
108 RL(n = write(fds[1], "foo", 3));
109 RL(close(fds[
124 int fds[2]; local
[all...]
/netbsd-current/crypto/external/bsd/heimdal/dist/lib/roken/
H A Dmini_inetd.c96 rk_socket_t *fds; local
103 fds = malloc (nalloc * sizeof(*fds));
104 if (fds == NULL) {
112 fds[i] = socket (a->ai_family, a->ai_socktype, a->ai_protocol);
113 if (rk_IS_BAD_SOCKET(fds[i]))
115 socket_set_reuseaddr (fds[i], 1);
116 socket_set_ipv6only(fds[i], 1);
117 if (rk_IS_SOCKET_ERROR(bind (fds[i], a->ai_addr, a->ai_addrlen))) {
119 rk_closesocket(fds[
[all...]
/netbsd-current/sys/external/bsd/libnv/dist/
H A Dmsgio.h48 int fd_send(int sock, const int *fds, size_t nfds);
49 int fd_recv(int sock, int *fds, size_t nfds);
/netbsd-current/lib/libc/sys/
H A Dppoll.c40 ppoll(struct pollfd * restrict fds, nfds_t nfds, argument
45 return pollts(fds, nfds, timeout_ts, sigmask);
/netbsd-current/regress/sys/kern/dislodgefd/
H A Ddislodgefd.c40 int fds[2]; variable
49 if (read(fds[0], buf, sizeof(buf)) == -1)
62 if (pipe(fds))
65 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, fds) < 0)
75 close(fds[0]);
/netbsd-current/sys/modules/examples/pollpal/
H A Dcmd_pollpal.c76 struct pollfd fds; local
87 fds.fd = fd;
88 fds.events = POLLOUT|POLLIN;
92 ret = poll(&fds, 1, TIMEOUT);
105 if (fds.revents & (POLLERR | POLLHUP | POLLNVAL))
108 if (fds.revents & POLLOUT) {
118 if (fds.revents & POLLIN) {
/netbsd-current/games/sail/
H A Ddr_main.c135 int fds[2]; local
138 if (pipe(fds)) {
146 close(fds[0]);
147 driver_wait_fd = fds[1];
152 close(fds[0]);
153 close(fds[1]);
158 close(fds[1]);
159 read(fds[0], &c, 1);
160 close(fds[0]);
/netbsd-current/tests/kernel/kqueue/read/
H A Dt_pipe.c55 int fds[2]; local
58 RL(pipe(fds));
61 EV_SET(&event[0], fds[0], EVFILT_READ, EV_ADD|EV_ENABLE, 0, 0, 0);
65 RL(write(fds[1], "foo", 3));
72 RL(n = read(fds[0], buffer, event[0].data));
/netbsd-current/external/gpl3/gdb/dist/readline/readline/examples/
H A Drl-callbacktest.c72 fd_set fds; local
91 FD_ZERO (&fds);
92 FD_SET (fileno (rl_instream), &fds); local
94 r = select (FD_SETSIZE, &fds, NULL, NULL, NULL);
109 if (FD_ISSET (fileno (rl_instream), &fds))
/netbsd-current/external/gpl3/gdb.old/dist/readline/readline/examples/
H A Drl-callbacktest.c72 fd_set fds; local
91 FD_ZERO (&fds);
92 FD_SET (fileno (rl_instream), &fds); local
94 r = select (FD_SETSIZE, &fds, NULL, NULL, NULL);
109 if (FD_ISSET (fileno (rl_instream), &fds))
/netbsd-current/crypto/external/bsd/openssl.old/dist/crypto/async/
H A Dasync_wait.c28 curr = ctx->fds;
60 fdlookup->next = ctx->fds;
61 ctx->fds = fdlookup;
71 curr = ctx->fds;
93 curr = ctx->fds;
122 curr = ctx->fds;
125 /* We ignore fds that have been marked as both added and deleted */
144 curr = ctx->fds;
156 if (ctx->fds == curr) {
157 ctx->fds
[all...]

Completed in 325 milliseconds

12345678910