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

1 2 3 4 5 6 7 8 91011>>

  /external/strace/tests/
pipe.c 44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 if (pipe(fds))
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
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);
oldselect.c 41 int fds[2]; local
51 if (pipe(fds))
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);
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) || pipe(fds)
    [all...]
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/
pipe.c 44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 if (pipe(fds))
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
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);
oldselect.c 41 int fds[2]; local
51 if (pipe(fds))
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/strace/tests-mx32/
pipe.c 44 int *const fds = tail_alloc(sizeof(*fds) * 2); local
45 if (pipe(fds))
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
  /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/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);
  /bionic/tests/
sys_epoll_test.cpp 53 int fds[2]; local
54 ASSERT_NE(-1, pipe(fds));
62 ASSERT_NE(-1, epoll_ctl(epoll_fd, EPOLL_CTL_ADD, fds[0], &ev));
65 ASSERT_EQ(1, write(fds[1], "\n", 1));
72 close(fds[0]);
73 close(fds[1]);
  /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/openssh/openbsd-compat/regress/
closefromtest.c 39 int i, max, fds[NUM_OPENS]; local
43 if ((fds[i] = open("/dev/null", O_RDONLY)) == -1)
48 closefrom(fds[max]);
49 if (close(fds[max]) != -1)
54 if (read(fds[i], buf, sizeof(buf)) == -1)
57 /* should close all fds */
58 closefrom(fds[0]);
60 if (close(fds[i]) != -1)

Completed in 263 milliseconds

1 2 3 4 5 6 7 8 91011>>