HomeSort by relevance Sort by last modified time
    Searched defs:fds (Results 26 - 50 of 393) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/strace/tests-m32/
msg_name.c 143 int fds[2]; local
144 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
153 if (bind(fds[1], (const void *) &un, sizeof(un)))
157 test_msg_name(fds[1], fds[0]);
recvmmsg-timeout.c 39 int fds[2]; local
40 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
43 if (send(fds[1], "A", 1, 0) != 1)
62 rc = recv_mmsg(fds[0], &mh, 1, 0, ts);
70 fds[0], rc, (int) ts->tv_nsec);
75 rc = recv_mmsg(fds[0], &mh, 1, 0, ts);
77 fds[0], &mh, (long long) ts->tv_sec,
83 rc = recv_mmsg(fds[0], &mh, 1, 0, ts);
85 fds[0], &mh, (long long) ts->tv_sec,
prctl-seccomp-filter-v.c 100 int fds[2]; local
126 if (pipe(fds))
readahead.c 59 static const int fds[] = { variable
94 for (i = 0; i < ARRAY_SIZE(fds); i++)
97 rc = readahead(fds[i], offsets[j], counts[k]);
100 fds[i], (long long) offsets[j],
scm_rights.c 40 int fds[ac]; local
71 assert((fds[0] = open("/dev/null", O_RDWR)) == 4);
73 assert((fds[i] = open(av[i], O_RDONLY)) == i + 4);
75 unsigned int cmsg_size = CMSG_SPACE(sizeof(fds));
80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds));
81 memcpy(CMSG_DATA(cmsg), fds, sizeof(fds)); local
92 assert(close(fds[i]) == 0);
93 fds[i] = 0;
siginfo.c 50 int fds[2]; local
51 if (pipe(fds))
96 if (pipe(fds))
126 if (pipe(fds))
  /external/strace/tests-mx32/
mmsg-silent.c 38 int fds[2]; local
39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
51 int rc = send_mmsg(fds[1], &mh, 1, MSG_DONTWAIT);
54 printf("sendmmsg(%d, %p, 1, MSG_DONTWAIT) = %d\n", fds[1], &mh, rc);
57 rc = recv_mmsg(fds[0], &mh, 1, MSG_DONTWAIT, &t);
59 fds[0], &mh, &t, rc);
msg_name.c 143 int fds[2]; local
144 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
153 if (bind(fds[1], (const void *) &un, sizeof(un)))
157 test_msg_name(fds[1], fds[0]);
recvmmsg-timeout.c 39 int fds[2]; local
40 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
43 if (send(fds[1], "A", 1, 0) != 1)
62 rc = recv_mmsg(fds[0], &mh, 1, 0, ts);
70 fds[0], rc, (int) ts->tv_nsec);
75 rc = recv_mmsg(fds[0], &mh, 1, 0, ts);
77 fds[0], &mh, (long long) ts->tv_sec,
83 rc = recv_mmsg(fds[0], &mh, 1, 0, ts);
85 fds[0], &mh, (long long) ts->tv_sec,
  /external/valgrind/none/tests/
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);
  /bionic/tests/
sys_epoll_test.cpp 60 int fds[2]; local
61 ASSERT_NE(-1, pipe(fds));
69 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev));
72 ASSERT_EQ(1, write(fds[1], "\n", 1));
79 close(fds[0]);
80 close(fds[1]);
  /external/compiler-rt/test/tsan/
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 8 int fds[2]; variable
13 write(fds[1], "a", 1);
19 while (read(fds[0], &buf, 1) != 1) {
26 pipe(fds);
33 // Closing of fds must not affect parent process.
37 close(fds[0]);
38 close(fds[1]);
  /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/linux-kselftest/tools/testing/selftests/powerpc/pmu/
lib.h 19 int fds[2]; member in union:pipe
  /external/ltp/testcases/kernel/syscalls/epoll_wait/
epoll_wait02.c 30 static int epfd, fds[2]; variable
55 SAFE_PIPE(fds);
61 epevs[0].data.fd = fds[0];
63 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0]))
72 if (fds[0] > 0)
73 SAFE_CLOSE(fds[0]);
75 if (fds[1] > 0)
76 SAFE_CLOSE(fds[1]);
  /external/ltp/testcases/kernel/syscalls/pipe2/
pipe2_02.c 122 int fds[2], fl, i; local
136 if (ltp_syscall(__NR_pipe2, fds, 0) == -1) {
140 fl = fcntl(fds[i], F_GETFL);
147 cleanup, "pipe2(0) set non-blocking mode for fds[%d]",
150 close(fds[i]);
153 if (ltp_syscall(__NR_pipe2, fds, O_NONBLOCK) == -1) {
158 fl = fcntl(fds[i], F_GETFL);
165 cleanup, "pipe2(O_NONBLOCK) does not set non-blocking mode for fds[%d]\n",
168 close(fds[i]);
  /external/strace/tests/
prctl-seccomp-filter-v.c 100 int fds[2]; local
126 if (pipe(fds))
readahead.c 59 static const int fds[] = { variable
94 for (i = 0; i < ARRAY_SIZE(fds); i++)
97 rc = readahead(fds[i], offsets[j], counts[k]);
100 fds[i], (long long) offsets[j],
scm_rights.c 40 int fds[ac]; local
71 assert((fds[0] = open("/dev/null", O_RDWR)) == 4);
73 assert((fds[i] = open(av[i], O_RDONLY)) == i + 4);
75 unsigned int cmsg_size = CMSG_SPACE(sizeof(fds));
80 cmsg->cmsg_len = CMSG_LEN(sizeof(fds));
81 memcpy(CMSG_DATA(cmsg), fds, sizeof(fds)); local
92 assert(close(fds[i]) == 0);
93 fds[i] = 0;
siginfo.c 50 int fds[2]; local
51 if (pipe(fds))
96 if (pipe(fds))
126 if (pipe(fds))
wait4.c 105 int fds[2]; local
106 if (pipe(fds))
155 if (pipe(fds))

Completed in 320 milliseconds

12 3 4 5 6 7 8 91011>>