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

1 2 3 4 5 6 7 8 9

  /external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
poll.c 8 int poll(struct pollfd *fds, nfds_t nfds, int timeout) {
9 return ki_poll(fds, nfds, timeout);
  /external/valgrind/main/none/tests/
fdleak_pipe.c 6 int fds[2]; local
10 DO( pipe(fds) );
fdleak_socketpair.c 8 int fds[2]; local
12 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/compiler-rt/lib/tsan/lit_tests/
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);
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/libjingle/source/talk/base/
linuxfdwalk_unittest.cc 42 std::set<int> *fds = static_cast<std::set<int> *>(data); local
43 EXPECT_EQ(1U, fds->erase(fd));
47 std::set<int> *fds = static_cast<std::set<int> *>(data); local
48 EXPECT_TRUE(fds->insert(fd).second);
51 // Checks that the set of open fds is exactly the given list.
52 static void CheckOpenFdList(std::set<int> fds) {
53 EXPECT_EQ(0, fdwalk(&FdCheckVisitor, &fds));
54 EXPECT_EQ(0U, fds.size());
57 static void GetOpenFdList(std::set<int> *fds) {
58 fds->clear()
63 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, long 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);
  /external/chromium_org/remoting/host/setup/
test_util.cc 20 int fds[2];
21 if (pipe(fds) == 0) {
22 *read_handle = fds[0];
23 *write_handle = 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)
  /external/dhcpcd/
control.h 38 extern struct fd_list *fds;
  /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 26 int fds[2]; local
27 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds));
28 file_util::ScopedFD scoped_fd0(&fds[0]);
29 file_util::ScopedFD scoped_fd1(&fds[1]);
36 fds[1], static_cast<uint8_t*>(NULL), 0U, static_cast<int*>(NULL),
43 UnixDomainSocket::RecvMsg(fds[0], buffer, sizeof(buffer),
63 int fds[2]; local
64 ASSERT_EQ(0, socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds));
65 file_util::ScopedFD scoped_fd1(&fds[1]);
66 ASSERT_EQ(0, IGNORE_EINTR(close(fds[0])))
    [all...]
unix_domain_socket_linux.cc 23 const std::vector<int>& fds) {
30 if (fds.size()) {
31 const unsigned control_len = CMSG_SPACE(sizeof(int) * fds.size());
40 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * fds.size());
41 memcpy(CMSG_DATA(cmsg), &fds[0], sizeof(int) * fds.size()); local
60 std::vector<int>* fds) {
61 return UnixDomainSocket::RecvMsgWithFlags(fd, buf, length, 0, fds);
69 std::vector<int>* fds) {
70 fds->clear()
133 int fds[2]; local
    [all...]
  /external/qemu/hw/
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]));
  /external/chromium_org/native_client_sdk/src/tests/nacl_io_test/
event_test.cc 236 void SetFDs(int* fds, int cnt) {
242 EXPECT_NE(-1, fds[index]);
243 FD_SET(fds[index], &rd_set);
244 FD_SET(fds[index], &wr_set);
245 FD_SET(fds[index], &ex_set);
247 pollfds[index].fd = fds[index];
253 void CloseFDs(int* fds, int cnt) {
255 kp->close(fds[index]);
269 int fds[2]; local
271 // Both FDs for regular files should be read/write but not exception
298 int fds[2]; local
    [all...]
  /frameworks/native/libs/input/tests/
TestHelpers.h 32 int fds[2]; local
33 ::pipe(fds);
35 receiveFd = fds[0];
36 sendFd = fds[1];
  /frameworks/wilhelm/tests/sandbox/
getch.c 38 fd_set fds; local
39 FD_ZERO(&fds); // not in original posting to stackoverflow
40 FD_SET(0, &fds);
41 return select(1, &fds, NULL, NULL, &tv);
  /system/core/libutils/tests/
TestHelpers.h 30 int fds[2]; local
31 ::pipe(fds);
33 receiveFd = fds[0];
34 sendFd = fds[1];
  /external/qemu/
compatfd.c 75 int fds[2]; local
83 if (pipe(fds) == -1) {
88 qemu_set_cloexec(fds[0]);
89 qemu_set_cloexec(fds[1]);
92 info->fd = fds[1];
101 return fds[0];

Completed in 474 milliseconds

1 2 3 4 5 6 7 8 9