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

1 2 3 4 5 6 7 8 91011>>

  /external/strace/tests/
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
pipe.c 45 int *const fds = tail_alloc(sizeof(*fds) * 2); local
46 if (pipe(fds))
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);
xselect.c 88 int fds[2]; local
89 if (pipe(fds))
93 const int nfds = fds[1] + 1;
143 *l_rs = (1UL << fds[0]) | (1UL << fds[1]);
147 TEST_SYSCALL_STR, i, fds[0], fds[1],
148 fds[0], fds[1], fds[0], fds[1])
    [all...]
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-m32/
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
pipe.c 45 int *const fds = tail_alloc(sizeof(*fds) * 2); local
46 if (pipe(fds))
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);
xselect.c 88 int fds[2]; local
89 if (pipe(fds))
93 const int nfds = fds[1] + 1;
143 *l_rs = (1UL << fds[0]) | (1UL << fds[1]);
147 TEST_SYSCALL_STR, i, fds[0], fds[1],
148 fds[0], fds[1], fds[0], fds[1])
    [all...]
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/
print_maxfd.c 37 int fds[2]; local
38 pipe_maxfd(fds);
39 printf("%d\n", fds[1]);
pipe.c 45 int *const fds = tail_alloc(sizeof(*fds) * 2); local
46 if (pipe(fds))
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);
xselect.c 88 int fds[2]; local
89 if (pipe(fds))
93 const int nfds = fds[1] + 1;
143 *l_rs = (1UL << fds[0]) | (1UL << fds[1]);
147 TEST_SYSCALL_STR, i, fds[0], fds[1],
148 fds[0], fds[1], fds[0], fds[1])
    [all...]
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/valgrind/none/tests/
fdleak_pipe.c 6 int fds[2]; local
10 (void) DO( pipe(fds) );
  /external/compiler-rt/test/tsan/
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_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);
  /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/webrtc/webrtc/base/
linuxfdwalk_unittest.cc 25 std::set<int> *fds = static_cast<std::set<int> *>(data); local
26 EXPECT_EQ(1U, fds->erase(fd));
30 std::set<int> *fds = static_cast<std::set<int> *>(data); local
31 EXPECT_TRUE(fds->insert(fd).second);
34 // Checks that the set of open fds is exactly the given list.
35 static void CheckOpenFdList(std::set<int> fds) {
36 EXPECT_EQ(0, fdwalk(&FdCheckVisitor, &fds));
37 EXPECT_EQ(0U, fds.size());
40 static void GetOpenFdList(std::set<int> *fds) {
41 fds->clear()
46 std::set<int> fds; local
    [all...]
  /bionic/libc/include/bits/fortify/
poll.h 41 int poll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, int timeout)
43 __clang_error_if(__bos(fds) != __BIONIC_FORTIFY_UNKNOWN_SIZE &&
44 __bos(fds) < sizeof(*fds) * fd_count,
46 size_t bos_fds = __bos(fds);
49 return __call_bypassing_fortify(poll)(fds, fd_count, timeout);
51 return __poll_chk(fds, fd_count, timeout, bos_fds);
55 int ppoll(struct pollfd* const fds __pass_object_size, nfds_t fd_count, const struct timespec* timeout, const sigset_t* mask)
57 __clang_error_if(__bos(fds) != __BIONIC_FORTIFY_UNKNOWN_SIZE &&
58 __bos(fds) < sizeof(*fds) * fd_count
    [all...]
  /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/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/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]);

Completed in 284 milliseconds

1 2 3 4 5 6 7 8 91011>>