HomeSort by: relevance | last modified time | path
    Searched refs:fds (Results 1 - 25 of 239) sorted by relevancy

1 2 3 4 5 6 7 8 910

  /src/tests/lib/libc/sys/
msg.h 45 msg_open(struct msg_fds *fds)
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)
60 CLOSEFD(fds->pfd[0]);
61 CLOSEFD(fds->pfd[1]);
62 CLOSEFD(fds->cfd[0]);
63 CLOSEFD(fds->cfd[1])
    [all...]
  /src/lib/libc/rpc/
svc_fdset.c 92 svc_fdset_print(const char *func, size_t line, struct svc_fdset *fds,
102 fprintf(stderr, "%p[%d] fd_set<", fds->fdset, fds->fdmax);
103 for (int i = 0; i <= fds->fdmax; i++) {
104 if (!FD_ISSET(i, fds->fdset))
111 for (int i = 0; i < fds->fdused; i++) {
112 int fd = fds->fdp[i].fd;
144 svc_fdset_sanitize(struct svc_fdset *fds)
146 while (fds->fdmax >= 0 && !FD_ISSET(fds->fdmax, fds->fdset)
161 struct svc_fdset *fds = v; local
285 struct svc_fdset *fds; local
336 struct svc_fdset *fds = svc_fdset_alloc(0); local
350 struct svc_fdset *fds = svc_fdset_alloc(fd); local
369 struct svc_fdset *fds = svc_fdset_alloc(fd); local
382 struct svc_fdset *fds = svc_fdset_alloc(fd); local
413 struct svc_fdset *fds = svc_fdset_alloc(0); local
426 struct svc_fdset *fds = svc_fdset_alloc(0); local
439 struct svc_fdset *fds = svc_fdset_alloc(fd); local
465 struct svc_fdset *fds = svc_fdset_alloc(0); local
477 struct svc_fdset *fds = svc_fdset_alloc(0); local
487 struct svc_fdset *fds = svc_fdset_alloc(fd); local
    [all...]
  /src/external/ibm-public/postfix/dist/src/util/
duplex_pipe.c 11 /* int duplex_pipe(fds)
12 /* int *fds;
43 int duplex_pipe(int *fds)
46 return (pipe(fds));
48 return (sane_socketpair(AF_UNIX, SOCK_STREAM, 0, fds));
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.reverse/
pipe-reverse.c 31 int fds[2] = { -1, -1 }; variable
37 pipe (fds);
readv-reverse.c 32 int fds[2] = { -1, -1 }; variable
45 pipe (fds);
46 write (fds[1], "UNIX", 4);
47 readv (fds[0], v, 4);
recvmsg-reverse.c 65 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);
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.reverse/
pipe-reverse.c 31 int fds[2] = { -1, -1 }; variable
37 pipe (fds);
readv-reverse.c 32 int fds[2] = { -1, -1 }; variable
45 pipe (fds);
46 write (fds[1], "UNIX", 4);
47 readv (fds[0], v, 4);
recvmsg-reverse.c 65 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);
  /src/external/gpl3/gdb/dist/gdb/testsuite/gdb.base/
catch-fork-kill.c 24 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));
traced-thread.c 28 int fds[2]; variable
61 result = pipe (fds);
68 close (fds[1]);
71 result = read (fds[0], &the_tid, sizeof (the_tid));
88 close (fds[0]);
98 result = write (fds[1], &bg_tid, sizeof (bg_tid));
  /src/external/gpl3/gdb.old/dist/gdb/testsuite/gdb.base/
catch-fork-kill.c 24 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));
traced-thread.c 28 int fds[2]; variable
61 result = pipe (fds);
68 close (fds[1]);
71 result = read (fds[0], &the_tid, sizeof (the_tid));
88 close (fds[0]);
98 result = write (fds[1], &bg_tid, sizeof (bg_tid));
  /src/distrib/utils/sparkcrc/
sparkcrc.c 84 FILE *fds; local
93 if (!(fds = fopen(argv[1], "r")))
95 while ((len = fread(buf, 1, sizeof(buf), fds)))
99 fclose(fds);
  /src/external/bsd/kyua-cli/dist/utils/process/
fdstream_test.cpp 50 int fds[2]; local
51 ATF_REQUIRE(::pipe(fds) != -1);
53 ifdstream rend(fds[0]);
55 systembuf wbuf(fds[1]);
  /src/tests/kernel/kqueue/write/
t_pipe.c 59 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[1]))
124 int fds[2]; local
    [all...]
  /src/crypto/external/bsd/heimdal/dist/lib/roken/
mini_inetd.c 96 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[i])
    [all...]
  /src/lib/libc/sys/
ppoll.c 40 ppoll(struct pollfd * restrict fds, nfds_t nfds,
45 return pollts(fds, nfds, timeout_ts, sigmask);
  /src/sys/external/bsd/libnv/dist/
msgio.h 48 int fd_send(int sock, const int *fds, size_t nfds);
49 int fd_recv(int sock, int *fds, size_t nfds);
  /src/regress/sys/kern/dislodgefd/
dislodgefd.c 40 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]);
  /src/sys/modules/examples/pollpal/
cmd_pollpal.c 76 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) {
  /src/games/sail/
dr_main.c 135 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]);
  /src/tests/kernel/kqueue/read/
t_pipe.c 55 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));
  /src/external/gpl3/gdb/dist/readline/readline/examples/
rl-callbacktest.c 73 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))
  /src/external/gpl3/gdb.old/dist/readline/readline/examples/
rl-callbacktest.c 72 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))

Completed in 48 milliseconds

1 2 3 4 5 6 7 8 910