/external/strace/tests/ |
H A D | pipe.c | 44 int *const fds = tail_alloc(sizeof(*fds) * 2); local 45 if (pipe(fds))
|
H A D | print_maxfd.c | 37 int fds[2]; local 38 pipe_maxfd(fds); 39 printf("%d\n", fds[1]);
|
H A D | 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);
|
H A D | oldselect.c | 41 int fds[2]; local 51 if (pipe(fds))
|
H A D | pipe2.c | 44 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 D | ppoll.c | 38 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 D | recvmmsg-timeout.c | 38 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 D | pipe.c | 44 int *const fds = tail_alloc(sizeof(*fds) * 2); local 45 if (pipe(fds))
|
H A D | print_maxfd.c | 37 int fds[2]; local 38 pipe_maxfd(fds); 39 printf("%d\n", fds[1]);
|
H A D | 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);
|
H A D | oldselect.c | 41 int fds[2]; local 51 if (pipe(fds))
|
H A D | pipe2.c | 44 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 D | ppoll.c | 38 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 D | recvmmsg-timeout.c | 38 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 D | pipe.c | 44 int *const fds = tail_alloc(sizeof(*fds) * 2); local 45 if (pipe(fds))
|
H A D | print_maxfd.c | 37 int fds[2]; local 38 pipe_maxfd(fds); 39 printf("%d\n", fds[1]);
|
H A D | 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);
|
H A D | oldselect.c | 41 int fds[2]; local 51 if (pipe(fds))
|
H A D | pipe2.c | 44 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 D | fdleak_pipe.c | 6 int fds[2]; local 10 (void) DO( pipe(fds) );
|
H A D | fdleak_socketpair.c | 8 int fds[2]; local 12 (void) DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
|
/external/compiler-rt/test/tsan/ |
H A D | 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);
|
H A D | 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);
|
H A D | 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);
|
/external/ltp/testcases/kernel/syscalls/pipe/ |
H A D | pipe01.c | 26 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]);
|