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

1 2 3 4 5 6

  /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/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);
  /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);
  /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/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/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))
excallback.c 107 fd_set fds; local
133 FD_ZERO(&fds);
134 FD_SET(fileno(stdin), &fds); local
136 if( select(FD_SETSIZE, &fds, NULL, NULL, NULL) < 0) {
141 if( FD_ISSET(fileno(stdin), &fds) ) {
  /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/external/gpl3/gdb.old/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))
excallback.c 107 fd_set fds; local
133 FD_ZERO(&fds);
134 FD_SET(fileno(stdin), &fds); local
136 if( select(FD_SETSIZE, &fds, NULL, NULL, NULL) < 0) {
141 if( FD_ISSET(fileno(stdin), &fds) ) {
  /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));
  /src/regress/sys/kern/latency1/
latency1.c 54 int fds[2]; variable
75 if (read(fds[0], buf, sizeof(buf)) == -1) {
100 if (pipe(fds)) {
136 if (write(fds[1], buf, sizeof(buf)) == -1) {
  /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/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/tests/lib/libc/sys/
t_pollts.c 58 int fds[2]; local
63 ATF_REQUIRE_EQ(pipe(fds), 0);
65 pfds[0].fd = fds[0];
67 pfds[1].fd = fds[1];
104 ATF_REQUIRE_EQ(write(fds[1], "", 1), 1);
116 ATF_REQUIRE_EQ(close(fds[0]), 0);
117 ATF_REQUIRE_EQ(close(fds[1]), 0);
  /src/tests/lib/libc/ttyio/
t_ptm.c 129 int fdm, fds; local
152 REQUIRE_ERRNO((fds = open(pty, O_RDWR|O_NOCTTY)), -1);
153 REQUIRE_ERRNO(fstat(fds, &sts), -1);
  /src/usr.sbin/mopd/common/
loop-linux2.c 98 fd_set fds, listeners; local
118 FD_ZERO(&fds);
121 FD_SET(ii->fd, &fds);
127 listeners = fds;
  /src/crypto/external/bsd/heimdal/dist/lib/kadm5/
ipropd_common.c 112 int fds[2]; local
117 fds[0] = -1;
118 fds[1] = -1;
126 if (fds[1] != -1)
127 (void) close(fds[1]);
132 if (pipe(fds) == -1) {
152 (void) close(fds[1]);
154 return fds[0];
159 (void) close(fds[0]);
  /src/external/bsd/libarchive/dist/libarchive/
filter_fork_posix.c 233 struct pollfd fds[2]; local
238 fds[idx].fd = in;
239 fds[idx].events = POLLOUT;
243 fds[idx].fd = out;
244 fds[idx].events = POLLIN;
248 poll(fds, idx, -1); /* -1 == INFTIM, wait forever */
  /src/external/gpl3/gdb.old/dist/gdb/
ser-event.c 61 int fds[2]; local
63 if (gdb_pipe_cloexec (fds) == -1)
66 gdb::fcntl (fds[0], F_SETFL, O_NONBLOCK);
67 gdb::fcntl (fds[1], F_SETFL, O_NONBLOCK);
69 scb->fd = fds[0];
70 state->write_fd = fds[1];

Completed in 29 milliseconds

1 2 3 4 5 6