HomeSort by relevance Sort by last modified time
    Searched defs:fds (Results 126 - 150 of 393) sorted by null

1 2 3 4 56 7 8 91011>>

  /external/libmojo/mojo/edk/embedder/
platform_channel_utils_posix.cc 238 const int* fds = reinterpret_cast<int*>(CMSG_DATA(cmsg)); local
240 platform_handles->push_back(PlatformHandle(fds[i]));
  /external/libusb/libusb/os/
linux_udev.c 166 struct pollfd fds[] = { local
175 while (poll(fds, 2, -1) >= 0) {
176 if (fds[0].revents & POLLIN) {
184 if (fds[1].revents & POLLIN) {
  /external/ltp/testcases/kernel/syscalls/epoll_wait/
epoll_wait01.c 33 static int write_size, epfd, fds[2]; variable
40 {.fd = fds[1], .events = POLLOUT},
46 write_size += SAFE_WRITE(0, fds[1], buf, sizeof(buf));
54 SAFE_READ(1, fds[0], read_buf, sizeof(read_buf));
68 SAFE_PIPE(fds);
70 epevs[0].data.fd = fds[0];
71 epevs[1].data.fd = fds[1];
79 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[0], &epevs[0]) ||
80 epoll_ctl(epfd, EPOLL_CTL_ADD, fds[1], &epevs[1])) {
125 if (ret_evs.data.fd != fds[1])
    [all...]
epoll_wait03.c 45 static int page_size, fds[2], epfd, inv_epfd, bad_epfd = -1; variable
109 SAFE_PIPE(NULL, fds);
117 epevs[0].data.fd = fds[1];
119 if (epoll_ctl(epfd, EPOLL_CTL_ADD, fds[1], &epevs[0])) {
148 if (close(fds[0]))
149 tst_resm(TWARN | TERRNO, "close(fds[0]) failed");
151 if (close(fds[1]))
152 tst_resm(TWARN | TERRNO, "close(fds[1]) failed");
  /external/ltp/testcases/kernel/syscalls/fchownat/
fchownat01.c 55 int *fds; member in struct:test_case_t
108 TEST(fchownat(*(test->fds), test->filenames, geteuid(),
  /external/ltp/testcases/kernel/syscalls/fstatat/
fstatat01.c 56 static int fds[TEST_CASES]; variable
100 TEST(fstatat(fds[i], filenames[i], &statbuf, flags[i]));
128 fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY);
129 fds[1] = fds[4] = fds[0];
134 fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600);
136 fds[3] = 100;
137 fds[5] = AT_FDCWD;
148 if (fds[0] > 0
    [all...]
  /external/ltp/testcases/kernel/syscalls/unlinkat/
unlinkat01.c 61 static int fds[TEST_CASES]; variable
87 TEST(myunlinkat(fds[i], filenames[i], flags[i]));
118 fds[0] = SAFE_OPEN(cleanup, pathname, O_DIRECTORY);
119 fds[1] = fds[4] = fds[6] = fds[0];
124 fds[2] = SAFE_OPEN(cleanup, testfile3, O_CREAT | O_RDWR, 0600);
126 fds[3] = 100;
127 fds[5] = AT_FDCWD
    [all...]
  /external/nos/host/android/citadel/libnos_datagram/
citadel.c 127 struct pollfd fds = {fd, POLLIN, 0}; local
130 rv = poll(&fds, 1 /*nfds*/, msecs);
  /external/strace/
desc.c 80 fd_set *fds = NULL; local
105 fds = malloc(fdsize);
109 if (!fds) {
113 if (umoven_or_printaddr(tcp, addr, fdsize, fds))
117 j = next_set_bit(fds, j, nfds);
126 free(fds);
144 fds = malloc(fdsize);
152 if (!addr || !fds || umoven(tcp, addr, fdsize, fds) < 0)
155 j = next_set_bit(fds, j, nfds)
    [all...]
pathtrace.c 159 fd_set *fds = xmalloc(fdsize); local
164 if (umoven(tcp, args[i], fdsize, fds) < 0)
167 j = next_set_bit(fds, j, nfds);
171 free(fds);
177 free(fds);
311 struct pollfd fds; local
320 end = start + sizeof(fds) * nfds;
325 for (cur = start; cur < end; cur += sizeof(fds)) {
326 if (umove(tcp, cur, &fds))
328 if (fdmatch(tcp, fds.fd, set)
    [all...]
poll.c 39 const struct pollfd *fds = elem_buf; local
42 printfd(tcp, fds->fd);
43 if (fds->fd >= 0) {
45 printflags(pollflags, (unsigned short) fds->events, "POLL???");
57 struct pollfd fds; local
59 print_array(tcp, addr, nfds, &fds, sizeof(fds),
67 struct pollfd fds; local
69 const unsigned long size = sizeof(fds) * nfds;
89 size / sizeof(fds) != nfds || end < start
    [all...]
  /external/strace/tests/
fanotify_mark.c 92 static const kernel_ulong_t fds[] = { local
155 for (i = 0; i < ARRAY_SIZE(fds); i++) {
160 do_call(fds[i],
mmsg_name.c 223 int fds[2]; local
224 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
233 if (bind(fds[1], (const void *) &un, sizeof(un)))
237 test_mmsg_name(fds[1], fds[0]);
poll.c 180 int fds[2]; local
181 if (pipe(fds) || pipe(fds))
188 { .fd = fds[0], .events = POLLIN | POLLPRI },
189 { .fd = fds[1], .events = POLLOUT },
readv.c 43 int fds[2]; local
44 pipe_maxfd(fds);
61 rc = writev(fds[1], efault, 42);
63 fds[1], efault, rc, errno2name());
65 rc = readv(fds[0], efault, 42);
67 fds[0], efault, rc, errno2name());
89 fds[1], (long) writev(fds[1], w_iov, 0));
91 rc = writev(fds[1], w_iov + ARRAY_SIZE(w_iov_) - 1, 2);
94 fds[1], w2_c, LENGTH_OF(w2_c), w_iov + ARRAY_SIZE(w_iov_)
    [all...]
threads-execve.c 103 static int fds[2]; variable
127 if (read(fds[0], fds, sizeof(fds[0])))
205 if (pipe(fds))
225 close(fds[1]);
231 close(fds[1]);
238 close(fds[1]);
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...]
  /external/strace/tests-m32/
fanotify_mark.c 92 static const kernel_ulong_t fds[] = { local
155 for (i = 0; i < ARRAY_SIZE(fds); i++) {
160 do_call(fds[i],
mmsg_name.c 223 int fds[2]; local
224 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
233 if (bind(fds[1], (const void *) &un, sizeof(un)))
237 test_mmsg_name(fds[1], fds[0]);
poll.c 180 int fds[2]; local
181 if (pipe(fds) || pipe(fds))
188 { .fd = fds[0], .events = POLLIN | POLLPRI },
189 { .fd = fds[1], .events = POLLOUT },
readv.c 43 int fds[2]; local
44 pipe_maxfd(fds);
61 rc = writev(fds[1], efault, 42);
63 fds[1], efault, rc, errno2name());
65 rc = readv(fds[0], efault, 42);
67 fds[0], efault, rc, errno2name());
89 fds[1], (long) writev(fds[1], w_iov, 0));
91 rc = writev(fds[1], w_iov + ARRAY_SIZE(w_iov_) - 1, 2);
94 fds[1], w2_c, LENGTH_OF(w2_c), w_iov + ARRAY_SIZE(w_iov_)
    [all...]
threads-execve.c 103 static int fds[2]; variable
127 if (read(fds[0], fds, sizeof(fds[0])))
205 if (pipe(fds))
225 close(fds[1]);
231 close(fds[1]);
238 close(fds[1]);
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...]
  /external/strace/tests-mx32/
fanotify_mark.c 92 static const kernel_ulong_t fds[] = { local
155 for (i = 0; i < ARRAY_SIZE(fds); i++) {
160 do_call(fds[i],
mmsg_name.c 223 int fds[2]; local
224 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds))
233 if (bind(fds[1], (const void *) &un, sizeof(un)))
237 test_mmsg_name(fds[1], fds[0]);

Completed in 142 milliseconds

1 2 3 4 56 7 8 91011>>