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

1 2 3 4 5 6 7 8 91011>>

  /external/strace/tests/
pipe.c 45 int *const fds = tail_alloc(sizeof(*fds) * 2); local
46 if (pipe(fds))
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
pipe2.c 42 int *const fds = tail_alloc(sizeof(*fds) * 2); local
43 int *const efault = fds + 1;
46 rc = syscall(__NR_pipe2, fds, F8ILL_KULONG_MASK | O_NONBLOCK);
49 printf("pipe2([%d, %d], O_NONBLOCK) = 0\n", fds[0], fds[1]);
55 const kernel_ulong_t ill = f8ill_ptr_to_kulong(fds);
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/strace/tests-m32/
pipe.c 45 int *const fds = tail_alloc(sizeof(*fds) * 2); local
46 if (pipe(fds))
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
pipe2.c 42 int *const fds = tail_alloc(sizeof(*fds) * 2); local
43 int *const efault = fds + 1;
46 rc = syscall(__NR_pipe2, fds, F8ILL_KULONG_MASK | O_NONBLOCK);
49 printf("pipe2([%d, %d], O_NONBLOCK) = 0\n", fds[0], fds[1]);
55 const kernel_ulong_t ill = f8ill_ptr_to_kulong(fds);
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);
  /external/strace/tests-mx32/
pipe.c 45 int *const fds = tail_alloc(sizeof(*fds) * 2); local
46 if (pipe(fds))
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
pipe2.c 42 int *const fds = tail_alloc(sizeof(*fds) * 2); local
43 int *const efault = fds + 1;
46 rc = syscall(__NR_pipe2, fds, F8ILL_KULONG_MASK | O_NONBLOCK);
49 printf("pipe2([%d, %d], O_NONBLOCK) = 0\n", fds[0], fds[1]);
55 const kernel_ulong_t ill = f8ill_ptr_to_kulong(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) );
  /external/python/cpython3/Lib/test/subprocessdata/
fd_status.py 15 fds = [] variable
33 fds.append(fd)
34 print(','.join(map(str, fds)))
  /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);
  /external/ltp/lib/tests/
tst_safe_macros.c 19 int fds[2]; local
37 SAFE_PIPE(NULL, fds);
  /external/ltp/testcases/kernel/syscalls/pipe/
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]);
  /external/ltp/testcases/kernel/syscalls/poll/
poll02.c 29 static int fds[2]; variable
36 {.fd = fds[0], .events = POLLIN}
54 SAFE_PIPE(fds);
59 if (fds[0] > 0)
60 SAFE_CLOSE(fds[0]);
62 if (fds[1] > 0)
63 SAFE_CLOSE(fds[1]);
  /external/ltp/testcases/kernel/syscalls/select/
select04.c 30 static int fds[2]; variable
39 FD_SET(fds[0], &sfds);
56 SAFE_PIPE(fds);
61 if (fds[0] > 0)
62 SAFE_CLOSE(fds[0]);
64 if (fds[1] > 0)
65 SAFE_CLOSE(fds[1]);

Completed in 657 milliseconds

1 2 3 4 5 6 7 8 91011>>