/external/strace/tests/ |
filter-unavailable.c | 50 int fds[2]; local 56 if (pipe(fds)) 62 assert(read(0, fds, 1) == 1);
|
ppoll.c | 75 struct pollfd *fds; local 126 fds = efault - sizeof(fds1); 127 memcpy(fds, fds1, sizeof(fds1)); 134 rc = sys_ppoll((unsigned long) fds, 163 fds[3].fd = PATH_TRACING_FD; 165 rc = sys_ppoll((unsigned long) fds, 196 fds = efault - sizeof(fds2); 197 memcpy(fds, fds2, sizeof(fds2)); 205 rc = sys_ppoll((unsigned long) fds, 220 sys_ppoll(f8ill_ptr_to_kulong(fds), ARRAY_SIZE(fds2) [all...] |
pselect6.c | 53 int fds[2]; local 69 if (pipe(fds)) 75 FD_SET(fds[0], set[0]); 76 FD_SET(fds[1], set[0]); 77 FD_SET(fds[0], set[1]); 78 FD_SET(fds[1], set[1]); 81 int rc = pselect(fds[1] + 1, set[0], set[1], set[2], NULL, NULL); 87 fds[1] + 1, fds[0], fds[1] [all...] |
seccomp-filter-v.c | 105 int fds[2]; local 106 if (pipe(fds))
|
vmsplice.c | 46 int fds[2]; local 47 if (pipe(fds)) 49 assert(0 == fds[0]); 50 assert(1 == fds[1]);
|
waitid.c | 168 int fds[2]; local 169 if (pipe(fds)) 220 if (pipe(fds))
|
/external/strace/tests-m32/ |
filter-unavailable.c | 50 int fds[2]; local 56 if (pipe(fds)) 62 assert(read(0, fds, 1) == 1);
|
ppoll.c | 75 struct pollfd *fds; local 126 fds = efault - sizeof(fds1); 127 memcpy(fds, fds1, sizeof(fds1)); 134 rc = sys_ppoll((unsigned long) fds, 163 fds[3].fd = PATH_TRACING_FD; 165 rc = sys_ppoll((unsigned long) fds, 196 fds = efault - sizeof(fds2); 197 memcpy(fds, fds2, sizeof(fds2)); 205 rc = sys_ppoll((unsigned long) fds, 220 sys_ppoll(f8ill_ptr_to_kulong(fds), ARRAY_SIZE(fds2) [all...] |
pselect6.c | 53 int fds[2]; local 69 if (pipe(fds)) 75 FD_SET(fds[0], set[0]); 76 FD_SET(fds[1], set[0]); 77 FD_SET(fds[0], set[1]); 78 FD_SET(fds[1], set[1]); 81 int rc = pselect(fds[1] + 1, set[0], set[1], set[2], NULL, NULL); 87 fds[1] + 1, fds[0], fds[1] [all...] |
seccomp-filter-v.c | 105 int fds[2]; local 106 if (pipe(fds))
|
vmsplice.c | 46 int fds[2]; local 47 if (pipe(fds)) 49 assert(0 == fds[0]); 50 assert(1 == fds[1]);
|
waitid.c | 168 int fds[2]; local 169 if (pipe(fds)) 220 if (pipe(fds))
|
/external/strace/tests-mx32/ |
filter-unavailable.c | 50 int fds[2]; local 56 if (pipe(fds)) 62 assert(read(0, fds, 1) == 1);
|
ppoll.c | 75 struct pollfd *fds; local 126 fds = efault - sizeof(fds1); 127 memcpy(fds, fds1, sizeof(fds1)); 134 rc = sys_ppoll((unsigned long) fds, 163 fds[3].fd = PATH_TRACING_FD; 165 rc = sys_ppoll((unsigned long) fds, 196 fds = efault - sizeof(fds2); 197 memcpy(fds, fds2, sizeof(fds2)); 205 rc = sys_ppoll((unsigned long) fds, 220 sys_ppoll(f8ill_ptr_to_kulong(fds), ARRAY_SIZE(fds2) [all...] |
pselect6.c | 53 int fds[2]; local 69 if (pipe(fds)) 75 FD_SET(fds[0], set[0]); 76 FD_SET(fds[1], set[0]); 77 FD_SET(fds[0], set[1]); 78 FD_SET(fds[1], set[1]); 81 int rc = pselect(fds[1] + 1, set[0], set[1], set[2], NULL, NULL); 87 fds[1] + 1, fds[0], fds[1] [all...] |
seccomp-filter-v.c | 105 int fds[2]; local 106 if (pipe(fds))
|
vmsplice.c | 46 int fds[2]; local 47 if (pipe(fds)) 49 assert(0 == fds[0]); 50 assert(1 == fds[1]);
|
waitid.c | 168 int fds[2]; local 169 if (pipe(fds)) 220 if (pipe(fds))
|
/external/toybox/toys/net/ |
microcom.c | 57 struct pollfd fds[2]; local 79 fds[0].fd = TT.fd; 80 fds[0].events = POLLIN; 81 fds[1].fd = 0; 82 fds[1].events = POLLIN; 84 while (poll(fds, 2, -1) > 0) { 88 if (fds[0].revents) { 95 if (fds[1].revents) {
|
/external/v4l2_codec2/vda/ |
native_pixmap_handle.h | 51 std::vector<base::FileDescriptor> fds; member in struct:media::NativePixmapHandle
|
/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...] |
/frameworks/native/cmds/bugreportz/ |
bugreportz_test.cpp | 36 int fds[2]; local 37 ASSERT_EQ(0, pipe(fds)); 38 read_fd_ = fds[0]; 39 write_fd_ = fds[1]; 42 // Closes the pipe FDs.
|
/hardware/interfaces/dumpstate/1.0/vts/functional/ |
VtsHalDumpstateV1_0TargetTest.cpp | 79 int fds[2]; local 80 ASSERT_EQ(0, pipe2(fds, O_NONBLOCK)) << errno; 84 handle->data[0] = fds[1]; 91 ASSERT_EQ(1, read(fds[0], &buff, 1)) << "dumped nothing"; 96 // Positive test: make sure dumpstateBoard() doesn't crash with two FDs.
|
/system/core/adb/ |
sysdeps_test.cpp | 29 int fds[2]; local 30 ASSERT_EQ(0, adb_socketpair(fds)) << strerror(errno); 31 ASSERT_TRUE(WriteFdExactly(fds[0], "foo", 4)); 32 ASSERT_TRUE(WriteFdExactly(fds[1], "bar", 4)); 35 ASSERT_TRUE(ReadFdExactly(fds[1], buf, 4)); 37 ASSERT_TRUE(ReadFdExactly(fds[0], buf, 4)); 39 ASSERT_EQ(0, adb_close(fds[0])); 40 ASSERT_EQ(0, adb_close(fds[1])); 44 std::vector<int> fds; local 48 fds.push_back(socketpair[0]) 65 int fds[2]; member in class:sysdeps_poll [all...] |
/system/core/libappfuse/tests/ |
FuseBufferTest.cc | 196 base::unique_fd fds[2]; local 197 SetupMessageSockets(&fds); 199 std::thread thread([&fds] { 202 ASSERT_TRUE(request.Read(fds[1])); 208 ASSERT_TRUE(request.Write(fds[0]));
|