Searched refs:fds (Results 1 - 25 of 163) sorted by relevance

1234567

/external/valgrind/main/none/tests/
H A Dfdleak_pipe.c6 int fds[2]; local
10 (void) DO( pipe(fds) );
H A Dfdleak_socketpair.c8 int fds[2]; local
12 (void) DO( socketpair(AF_UNIX, SOCK_STREAM, PF_UNSPEC, fds) );
H A Dsyscall-restart1.c18 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)
H A Dsyscall-restart2.c18 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/
H A Dpoll.c10 int poll(struct pollfd *fds, nfds_t nfds, int timeout) { argument
11 return ki_poll(fds, nfds, timeout);
/external/compiler-rt/test/tsan/
H A Dfd_dup_norace.cc9 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);
H A Dfd_location.cc6 int fds[2]; variable
9 write(fds[1], "a", 1);
15 close(fds[0]);
16 close(fds[1]);
21 pipe(fds);
H A Dfd_pipe_race.cc6 int fds[2]; variable
9 write(fds[1], "a", 1);
15 close(fds[0]);
16 close(fds[1]);
21 pipe(fds);
H A Dfd_socketpair_norace.cc8 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);
H A Dvfork.cc8 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]);
H A Dfd_pipe_norace.cc6 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/
H A Dlinuxfdwalk_unittest.cc25 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) { argument
36 EXPECT_EQ(0, fdwalk(&FdCheckVisitor, &fds));
37 EXPECT_EQ(0U, fds.size());
40 static void GetOpenFdList(std::set<int> *fds) { argument
41 fds
46 std::set<int> fds; local
[all...]
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
H A Devent_test.cc240 void SetFDs(int* fds, int cnt) { argument
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) { argument
259 kp->close(fds[index]);
273 int fds[2]; local
276 fds[
302 int fds[2]; local
344 int fds[2]; local
[all...]
/external/chromium_org/remoting/host/setup/
H A Dtest_util.cc26 int fds[2];
27 if (pipe(fds) == 0) {
28 *read_file = base::File(fds[0]);
29 *write_file = base::File(fds[1]);
/external/dhcpcd/
H A Dcontrol.h38 extern struct fd_list *fds;
/external/fio/os/windows/posix/include/sys/
H A Dpoll.h13 int poll(struct pollfd fds[], nfds_t nfds, int timeout);
/external/e2fsprogs/lib/
H A Dfpopen.c42 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/
H A Dunix_domain_socket_linux_unittest.cc28 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[
83 int fds[2]; local
110 int fds[2]; local
140 int fds[2]; local
[all...]
/external/chromium_org/content/browser/renderer_host/
H A Dsandbox_ipc_linux.h41 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,
H A Drender_sandbox_host_linux.cc28 int fds[2]; local
35 CHECK(socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds) == 0);
37 renderer_socket_ = fds[0];
42 const int browser_socket = fds[1];
/external/qemu/include/hw/block/
H A Dfdc.h8 BlockDriverState **fds);
10 BlockDriverState **fds, qemu_irq *fdc_tc);
/external/chromium_org/content/renderer/pepper/
H A Dpepper_broker_unittest.cc43 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]));
/external/chromium_org/mojo/embedder/
H A Dplatform_channel_pair_posix.cc38 int fds[2]; local
40 PCHECK(socketpair(AF_UNIX, SOCK_STREAM, 0, fds) == 0);
41 PCHECK(fcntl(fds[0], F_SETFL, O_NONBLOCK) == 0);
42 PCHECK(fcntl(fds[1], F_SETFL, O_NONBLOCK) == 0);
51 fds[0], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, sizeof(no_sigpipe)) ==
55 fds[1], SOL_SOCKET, SO_NOSIGPIPE, &no_sigpipe, sizeof(no_sigpipe)) ==
59 server_handle_.reset(PlatformHandle(fds[0]));
61 client_handle_.reset(PlatformHandle(fds[1]));
/external/qemu/util/
H A Dcompatfd.c77 int fds[2]; local
85 if (pipe(fds) == -1) {
90 qemu_set_cloexec(fds[0]);
91 qemu_set_cloexec(fds[1]);
94 info->fd = fds[1];
98 return fds[0];
/external/strace/
H A Dstream.c236 struct pollfd fds; local
243 size = sizeof(fds) * nfds;
246 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) {
252 abbrev_end = start + max_strlen * sizeof(fds);
259 for (cur = start; cur < end; cur += sizeof(fds)) {
266 if (umoven(tcp, cur, sizeof fds, (char *) &fds) < 0) {
271 if (fds.fd < 0) {
272 tprintf("{fd=%d}", fds.fd);
276 printfd(tcp, fds
[all...]

Completed in 636 milliseconds

1234567