/external/valgrind/main/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) );
|
syscall-restart1.c | 18 int fds[2]; local 20 if (pipe(fds) == -1) { 43 close(fds[1]); 44 ret = read(fds[0], &ch, 1); 52 close(fds[0]); 56 if (write(fds[1], "x", 1) != -1 || errno != EPIPE)
|
syscall-restart2.c | 18 int fds[2]; local 20 if (pipe(fds) == -1) { 43 close(fds[1]); 44 ret = read(fds[0], &ch, 1); 52 close(fds[0]); 56 write(fds[1], "x", 1);
|
/external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/ |
poll.c | 10 int poll(struct pollfd *fds, nfds_t nfds, int timeout) { 11 return ki_poll(fds, nfds, timeout);
|
/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 | 6 int fds[2]; variable 9 write(fds[1], "a", 1); 15 close(fds[0]); 16 close(fds[1]); 21 pipe(fds);
|
fd_pipe_race.cc | 6 int fds[2]; variable 9 write(fds[1], "a", 1); 15 close(fds[0]); 16 close(fds[1]); 21 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);
|
vfork.cc | 8 int fds[2]; variable 13 write(fds[1], "a", 1); 19 while (read(fds[0], &buf, 1) != 1) { 26 pipe(fds); 33 // Closing of fds must not affect parent process. 37 close(fds[0]); 38 close(fds[1]);
|
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);
|
/external/chromium_org/third_party/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...] |
/development/ndk/sources/android/libportable/arch-mips/ |
poll.c | 109 int WRAP(poll)(struct pollfd *fds, nfds_t nfds, int timeout) 115 fds->events = mips_change_portable_events(fds->events); 117 ret = REAL(poll)(fds, nfds, timeout); 120 fds->events = change_mips_events(fds->events); 121 fds->revents = change_mips_events(fds->revents);
|
/system/core/fastbootd/ |
socket_client.c | 49 struct pollfd fds[2]; local 60 fds[0].fd = STDIN_FD; 61 fds[0].events = POLLIN; 62 fds[1].fd = fd; 63 fds[1].events = POLLIN; 66 if (poll(fds, 2, -1) <= 0) { 71 if (fds[0].revents & POLLIN) { 81 if (fds[1].revents & POLLIN) {
|
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
event_test.cc | 240 void SetFDs(int* fds, int cnt) { 246 EXPECT_NE(-1, fds[index]); 247 FD_SET(fds[index], &rd_set); 248 FD_SET(fds[index], &wr_set); 249 FD_SET(fds[index], &ex_set); 251 pollfds[index].fd = fds[index]; 257 void CloseFDs(int* fds, int cnt) { 259 kp->close(fds[index]); 273 int fds[2]; local 275 // Both FDs for regular files should be read/write but not exception 302 int fds[2]; local 344 int fds[2]; local [all...] |
/external/chromium_org/remoting/host/setup/ |
test_util.cc | 26 int fds[2]; 27 if (pipe(fds) == 0) { 28 *read_file = base::File(fds[0]); 29 *write_file = base::File(fds[1]);
|
/external/dhcpcd/ |
control.h | 38 extern struct fd_list *fds;
|
/external/fio/os/windows/posix/include/sys/ |
poll.h | 13 int poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
/external/e2fsprogs/lib/ |
fpopen.c | 42 int fds[2]; local 92 if (pipe(fds) < 0) 101 close(fds[1]); 102 dup2(fds[0], 0); 104 close(fds[0]); 105 dup2(fds[1], 1); 107 dup2(fds[1], 2); 113 return fdopen(do_stdin ? fds[1] : fds[0], mode);
|
/external/chromium_org/base/posix/ |
unix_domain_socket_linux_unittest.cc | 28 int fds[2]; local 29 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds)); 30 ScopedFD scoped_fd0(fds[0]); 31 ScopedFD scoped_fd1(fds[1]); 38 fds[1], static_cast<uint8_t*>(NULL), 0U, static_cast<int*>(NULL), 45 UnixDomainSocket::RecvMsg(fds[0], buffer, sizeof(buffer), 65 int fds[2]; local 66 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds)); 67 ScopedFD scoped_fd1(fds[1]); 68 ASSERT_EQ(0, IGNORE_EINTR(close(fds[0]))) 83 int fds[2]; local 110 int fds[2]; local 140 int fds[2]; local [all...] |
unix_domain_socket_linux.h | 34 const std::vector<int>& fds); 41 ScopedVector<base::ScopedFD>* fds); 50 ScopedVector<base::ScopedFD>* fds, 91 ScopedVector<base::ScopedFD>* fds,
|
/bionic/tests/ |
sys_select_test.cpp | 27 fd_set fds; local 28 FD_ZERO(&fds); 31 EXPECT_FALSE(FD_ISSET(i, &fds)); 34 FD_SET(0, &fds); 35 EXPECT_TRUE(FD_ISSET(0, &fds)); 36 EXPECT_FALSE(FD_ISSET(1, &fds)); 37 FD_SET(1, &fds); 38 EXPECT_TRUE(FD_ISSET(0, &fds)); 39 EXPECT_TRUE(FD_ISSET(1, &fds)); 40 FD_CLR(0, &fds); 51 int fds[2]; local [all...] |
/external/chromium_org/content/browser/renderer_host/ |
sandbox_ipc_linux.h | 41 const std::vector<base::ScopedFD*>& fds); 46 const std::vector<base::ScopedFD*>& fds); 51 const std::vector<base::ScopedFD*>& fds); 56 const std::vector<base::ScopedFD*>& fds); 61 const std::vector<base::ScopedFD*>& fds); 66 const std::vector<base::ScopedFD*>& fds); 71 const std::vector<base::ScopedFD*>& fds); 73 void SendRendererReply(const std::vector<base::ScopedFD*>& fds,
|
/external/qemu/include/hw/block/ |
fdc.h | 8 BlockDriverState **fds); 10 BlockDriverState **fds, qemu_irq *fdc_tc);
|
/external/chromium_org/content/renderer/pepper/ |
pepper_broker_unittest.cc | 43 int fds[2] = {-1, -1}; local 44 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_STREAM, 0, fds)); 46 ASSERT_EQ(0, fcntl(fds[1], F_SETFL, O_NONBLOCK)); 47 base::FileDescriptor file_descriptor(fds[1], true); // Auto close. 56 EXPECT_EQ(0, ::close(fds[0]));
|