HomeSort by relevance Sort by last modified time
    Searched defs:fds (Results 1 - 25 of 229) sorted by null

1 2 3 4 5 6 7 8 910

  /external/strace/tests/
pipe.c 41 int fds[2]; local
42 if (pipe(fds) || fds[0] != 0 || fds[1] != 1)
48 if (pipe2(fds, O_NONBLOCK) || fds[0] != 0 || fds[1] != 1)
fork-f.c 52 int fds[2]; local
54 if (pipe(fds)) {
67 close(fds[1]);
69 if (read(0, fds, sizeof(int)))
80 close(fds[1]);
oldselect.c 43 int fds[2]; local
53 if (pipe(fds))
ppoll.c 41 struct pollfd fds[] = { local
52 return ppoll(fds, sizeof(fds) / sizeof(*fds), &timeout, &mask) == 2 ? 0 : 77;
60 struct pollfd fds[] = { local
70 return ppoll(fds, sizeof(fds) / sizeof(*fds), &timeout, &mask) == 0 ? 0 : 77;
77 int fds[2]; local
83 if (pipe(fds) || pipe(fds)
    [all...]
vfork-f.c 56 int fds[2]; local
58 if (pipe(fds)) {
62 if (fcntl(fds[1], F_SETFD, FD_CLOEXEC)) {
83 close(fds[1]);
wait.c 41 int fds[2]; local
49 assert(!pipe(fds) && fds[0] == 0 && fds[1] == 1);
seccomp.c 102 int fds[2]; local
127 if (pipe(fds) ||
  /external/valgrind/none/tests/
fdleak_pipe.c 6 int fds[2]; local
10 (void) DO( pipe(fds) );
fdleak_socketpair.c 8 int fds[2]; local
12 (void) DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
syscall-restart1.c 18 int fds[2]; local
20 if (pipe(fds) == -1) {
43 close(fds[1]);
44 ret = read(fds[0], &ch, 1);
52 close(fds[0]);
56 if (write(fds[1], "x", 1) != -1 || errno != EPIPE)
syscall-restart2.c 18 int fds[2]; local
20 if (pipe(fds) == -1) {
43 close(fds[1]);
44 ret = read(fds[0], &ch, 1);
52 close(fds[0]);
56 write(fds[1], "x", 1);
  /external/compiler-rt/test/tsan/
fd_location.cc 4 int fds[2]; variable
7 write(fds[1], "a", 1);
14 close(fds[0]);
15 close(fds[1]);
21 pipe(fds);
fd_pipe_race.cc 4 int fds[2]; variable
7 write(fds[1], "a", 1);
14 close(fds[0]);
15 close(fds[1]);
21 pipe(fds);
fd_dup_norace.cc 9 int fds[2]; variable
13 read(fds[0], &buf, 1);
14 close(fds[0]);
19 close(fds[1]);
24 fds[0] = open("/dev/random", O_RDONLY);
25 fds[1] = dup2(fds[0], 100);
fd_pipe_norace.cc 6 int fds[2]; variable
11 write(fds[1], "a", 1);
17 while (read(fds[0], &buf, 1) != 1) {
24 pipe(fds);
fd_socketpair_norace.cc 8 int fds[2]; variable
13 write(fds[1], "a", 1);
14 close(fds[1]);
20 while (read(fds[0], &buf, 1) != 1) {
23 close(fds[0]);
28 socketpair(AF_UNIX, SOCK_STREAM, 0, fds);
fd_tid_recycled.cc 4 int fds[2]; variable
7 pipe(fds);
16 write(fds[1], "a", 1);
23 close(fds[0]);
24 close(fds[1]);
vfork.cc 9 int fds[2]; variable
14 write(fds[1], "a", 1);
20 while (read(fds[0], &buf, 1) != 1) {
27 pipe(fds);
34 // Closing of fds must not affect parent process.
38 close(fds[0]);
39 close(fds[1]);
  /bionic/tests/
sys_epoll_test.cpp 47 int fds[2]; local
48 ASSERT_NE(-1, pipe(fds));
56 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev));
59 ASSERT_EQ(1, write(fds[1], "\n", 1));
66 close(fds[0]);
67 close(fds[1]);
  /external/avahi/avahi-core/
fdutil.c 60 fd_set fds; local
63 FD_ZERO(&fds);
64 FD_SET(fd, &fds);
66 if ((r = select(fd+1, NULL, &fds, NULL, NULL)) < 0)
  /external/dbus/bus/
dir-watch-dnotify.c 40 static int fds[MAX_DIRS_TO_WATCH]; variable
70 fds[num_fds++] = fd;
86 if (close (fds[i]) != 0)
88 _dbus_verbose ("Error closing fd %d for config directory watch\n", fds[i]);
  /external/libbrillo/brillo/
unittest_utils.cc 20 int fds[2]; local
21 if (pipe(fds) != 0) {
24 reader = fds[0];
25 writer = fds[1];
38 int fds[2]; local
39 if (socketpair(PF_LOCAL, SOCK_STREAM, 0, fds) != 0) {
42 left = fds[0];
43 right = fds[1];
  /external/libdaemon/examples/
testd.c 104 fd_set fds; local
106 /* Close FDs */
138 FD_ZERO(&fds);
140 FD_SET(fd, &fds);
143 fd_set fds2 = fds;
  /external/libvncserver/libvncclient/
listen.c 57 fd_set fds;
95 FD_ZERO(&fds);
98 FD_SET(listenSocket, &fds);
100 FD_SET(listen6Socket, &fds);
102 r = select(max(listenSocket, listen6Socket)+1, &fds, NULL, NULL, NULL);
105 if (FD_ISSET(listenSocket, &fds))
107 else if (FD_ISSET(listen6Socket, &fds))
152 fd_set fds; local
190 FD_ZERO(&fds);
193 FD_SET(client->listenSock, &fds);
    [all...]
  /external/tlsdate/src/events/
tlsdate_status.c 97 /* Returns 0 on success and populates |fds| */
99 new_tlsdate_monitor_pipe (int fds[2])
101 if (pipe (fds) < 0)
114 int fds[2] = { -1, -1 }; local
116 if (new_tlsdate_monitor_pipe (fds))
120 verb_debug ("[%s] monitor fd pair (%d, %d)", __func__, fds[0], fds[1]);
122 state->tlsdate_monitor_fd = fds[1];
124 if (fcntl (fds[0], F_SETFL, O_NONBLOCK|O_CLOEXEC) < 0)
129 state->events[E_TLSDATE_STATUS] = event_new (state->base, fds[0]
    [all...]

Completed in 707 milliseconds

1 2 3 4 5 6 7 8 910