Searched defs:fds (Results 1 - 25 of 228) sorted by relevance

12345678910

/external/strace/tests/
H A Dpipe.c44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 if (pipe(fds))
H A Dprint_maxfd.c37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
H A Dmmsg-silent.c38 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);
H A Doldselect.c41 int fds[2]; local
51 if (pipe(fds))
H A Dpipe2.c44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 int *const efault = fds + 1;
48 rc = syscall(__NR_pipe2, fds, bogus_zero | O_NONBLOCK);
51 printf("pipe2([%d, %d], O_NONBLOCK) = 0\n", fds[0], fds[1]);
57 const kernel_ulong_t ill = f8ill_ptr_to_kulong(fds);
H A Dppoll.c38 struct pollfd fds[] = { local
50 int rc = ppoll(fds, sizeof(fds) / sizeof(*fds), &timeout, &mask);
60 struct pollfd fds[] = { local
71 int rc = ppoll(fds, sizeof(fds) / sizeof(*fds), &timeout, &mask);
80 int fds[2]; local
86 if (pipe(fds) || pip
[all...]
H A Drecvmmsg-timeout.c38 int fds[2]; local
39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
42 if (send(fds[1], "A", 1, 0) != 1)
59 rc = recv_mmsg(fds[0], &mh, 1, 0, &t);
67 fds[0], rc, (int) t.tv_nsec);
/external/strace/tests-m32/
H A Dpipe.c44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 if (pipe(fds))
H A Dprint_maxfd.c37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
H A Dmmsg-silent.c38 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);
H A Doldselect.c41 int fds[2]; local
51 if (pipe(fds))
H A Dpipe2.c44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 int *const efault = fds + 1;
48 rc = syscall(__NR_pipe2, fds, bogus_zero | O_NONBLOCK);
51 printf("pipe2([%d, %d], O_NONBLOCK) = 0\n", fds[0], fds[1]);
57 const kernel_ulong_t ill = f8ill_ptr_to_kulong(fds);
H A Dppoll.c38 struct pollfd fds[] = { local
50 int rc = ppoll(fds, sizeof(fds) / sizeof(*fds), &timeout, &mask);
60 struct pollfd fds[] = { local
71 int rc = ppoll(fds, sizeof(fds) / sizeof(*fds), &timeout, &mask);
80 int fds[2]; local
86 if (pipe(fds) || pip
[all...]
H A Drecvmmsg-timeout.c38 int fds[2]; local
39 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
42 if (send(fds[1], "A", 1, 0) != 1)
59 rc = recv_mmsg(fds[0], &mh, 1, 0, &t);
67 fds[0], rc, (int) t.tv_nsec);
/external/strace/tests-mx32/
H A Dpipe.c44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 if (pipe(fds))
H A Dprint_maxfd.c37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
H A Dmmsg-silent.c38 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);
H A Doldselect.c41 int fds[2]; local
51 if (pipe(fds))
H A Dpipe2.c44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 int *const efault = fds + 1;
48 rc = syscall(__NR_pipe2, fds, bogus_zero | O_NONBLOCK);
51 printf("pipe2([%d, %d], O_NONBLOCK) = 0\n", fds[0], fds[1]);
57 const kernel_ulong_t ill = f8ill_ptr_to_kulong(fds);
/external/valgrind/none/tests/
H A Dfdleak_pipe.c6 int fds[2]; local
10 (void) DO( pipe(fds) );
H A Dfdleak_socketpair.c8 int fds[2]; local
12 (void) DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
/external/compiler-rt/test/tsan/
H A Dfd_dup_norace.cc9 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);
H A Dfd_location.cc4 int fds[2]; variable
7 write(fds[1], "a", 1);
14 close(fds[0]);
15 close(fds[1]);
21 pipe(fds);
H A Dfd_pipe_race.cc4 int fds[2]; variable
7 write(fds[1], "a", 1);
14 close(fds[0]);
15 close(fds[1]);
21 pipe(fds);
/external/ltp/testcases/kernel/syscalls/pipe/
H A Dpipe01.c26 static int fds[2]; variable
36 TEST(pipe(fds));
43 wr_size = SAFE_WRITE(1, fds[1], wrbuf, sizeof(wrbuf));
44 rd_size = SAFE_READ(0, fds[0], rdbuf, sizeof(rdbuf));
57 SAFE_CLOSE(fds[0]);
58 SAFE_CLOSE(fds[1]);

Completed in 2240 milliseconds

12345678910