/external/chromium/third_party/libevent/ |
H A D | epoll.c | 65 struct evepoll *fds; member in struct:epollop 141 epollop->fds = calloc(INITIAL_NFILES, sizeof(struct evepoll)); 142 if (epollop->fds == NULL) { 160 struct evepoll *fds; local 167 fds = realloc(epollop->fds, nfds * sizeof(struct evepoll)); 168 if (fds == NULL) { 172 epollop->fds = fds; 173 memset(fds [all...] |
/external/chromium_org/third_party/libevent/ |
H A D | devpoll.c | 63 struct evdevpoll *fds; member in struct:devpollop 162 devpollop->fds = calloc(nfiles, sizeof(struct evdevpoll)); 163 if (devpollop->fds == NULL) { 173 free(devpollop->fds); 191 struct evdevpoll *fds; local 198 fds = realloc(devpollop->fds, nfds * sizeof(struct evdevpoll)); 199 if (fds == NULL) { 203 devpollop->fds = fds; [all...] |
H A D | epoll.c | 65 struct evepoll *fds; member in struct:epollop 141 epollop->fds = calloc(INITIAL_NFILES, sizeof(struct evepoll)); 142 if (epollop->fds == NULL) { 160 struct evepoll *fds; local 167 fds = realloc(epollop->fds, nfds * sizeof(struct evepoll)); 168 if (fds == NULL) { 172 epollop->fds = fds; 173 memset(fds [all...] |
/external/chromium_org/third_party/libusb/src/libusb/os/ |
H A D | linux_netlink.c | 307 struct pollfd fds[] = { local 317 while (poll(fds, 2, -1) >= 0) { 318 if (fds[0].revents & POLLIN) { 326 if (fds[1].revents & POLLIN) {
|
H A D | 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) {
|
H A D | darwin_usb.h | 133 int fds[2]; member in struct:darwin_device_handle_priv
|
H A D | poll_windows.c | 36 * pollable fds 74 CRITICAL_SECTION mutex; // lock for fds 314 * if you plan to do R/W on the same handle, you MUST create 2 fds: one for 335 "If you want to poll for R/W simultaneously, create multiple fds from the same handle."); 505 * (but you can create multiple fds from the same handle for read and write) 507 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout) argument 528 fds[i].revents = 0; 531 if ((fds[i].events & ~POLLIN) && (!(fds[i].events & POLLOUT))) { 532 fds[ [all...] |
/external/dhcpcd/ |
H A D | eloop.c | 59 static struct pollfd *fds; variable in typeref:struct:pollfd 277 free(fds); 329 free(fds); 332 fds = xmalloc(sizeof(*fds) * fds_len); 336 fds[nfds].fd = e->fd; 337 fds[nfds].events = POLLIN; 338 fds[nfds].revents = 0; 341 n = poll(fds, nfds, msecs); 356 if (!(fds[ [all...] |
/external/dropbear/ |
H A D | common-session.c | 288 fd_set fds; local 297 FD_ZERO(&fds); 304 FD_SET(fd, &fds); 308 if (select(fd+1, &fds, NULL, NULL, &timeout) < 0) { 321 if (FD_ISSET(fd, &fds)) {
|
H A D | svr-main.c | 113 fd_set fds; local 176 FD_ZERO(&fds); 183 FD_SET(listensocks[i], &fds); 189 FD_SET(childpipes[i], &fds); 194 val = select(maxsock+1, &fds, NULL, NULL, &seltimeout); 213 /* close fds which have been authed or closed - svr-auth.c handles 216 if (childpipes[i] >= 0 && FD_ISSET(childpipes[i], &fds)) { 234 if (!FD_ISSET(listensocks[i], &fds))
|
/external/libusb/libusb/os/ |
H A D | darwin_usb.h | 130 int fds[2]; member in struct:darwin_device_handle_priv
|
/external/qemu/android/utils/ |
H A D | tempfile.c | 138 int fds[ MAX_ATEXIT_FDS ]; member in struct:__anon25116 145 t->fds[t->count++] = fd; 157 if (t->fds[nn] == fd) { 160 t->fds[nn] = t->fds[t->count]; 170 close(t->fds[nn]);
|
/external/qemu/ |
H A D | cpus.c | 132 int fds[2]; local 134 err = pipe(fds); 138 err = fcntl_setfl(fds[0], O_NONBLOCK); 142 err = fcntl_setfl(fds[1], O_NONBLOCK); 146 qemu_set_fd_handler2(fds[0], NULL, qemu_event_read, NULL, 147 (void *)(unsigned long)fds[0]); 149 io_thread_fd = fds[1]; 153 close(fds[0]); 154 close(fds[1]);
|
/external/chromium/base/ |
H A D | message_pump_glib.cc | 148 int fds[2]; local 149 CHECK_EQ(pipe(fds), 0); 150 wakeup_pipe_read_ = fds[0]; 151 wakeup_pipe_write_ = fds[1];
|
H A D | message_pump_libevent.cc | 166 // It's illegal to use this function to listen on 2 separate fds with the 298 int fds[2]; local 299 if (pipe(fds)) { 303 if (SetNonBlocking(fds[0])) { 307 if (SetNonBlocking(fds[1])) { 311 wakeup_pipe_out_ = fds[0]; 312 wakeup_pipe_in_ = fds[1];
|
/external/chromium_org/base/message_loop/ |
H A D | message_pump_glib.cc | 143 int fds[2]; local 144 int ret = pipe(fds); 148 wakeup_pipe_read_ = fds[0]; 149 wakeup_pipe_write_ = fds[1];
|
H A D | message_pump_libevent.cc | 174 // It's illegal to use this function to listen on 2 separate fds with the 314 int fds[2]; local 315 if (pipe(fds)) { 319 if (SetNonBlocking(fds[0])) { 323 if (SetNonBlocking(fds[1])) { 327 wakeup_pipe_out_ = fds[0]; 328 wakeup_pipe_in_ = fds[1];
|
/external/chromium_org/components/breakpad/browser/ |
H A D | crash_handler_host_linux.cc | 89 int fds[2]; local 96 CHECK_EQ(socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds), 0); 100 CHECK_EQ(setsockopt(fds[1], SOL_SOCKET, SO_PASSCRED, &on, sizeof(on)), 0); 102 process_socket_ = fds[0]; 103 browser_socket_ = fds[1];
|
/external/chromium_org/components/nacl/loader/ |
H A D | nacl_helper_linux.cc | 120 LOG(ERROR) << "nacl_helper: unexpected number of fds, got " 138 // looking for the child's pid in /proc. Also close other fds. 229 std::vector<int> fds; local 232 &buf, sizeof(buf), &fds); 256 return HonorRequestAndReply(zygote_ipc_fd, command_type, fds, system_info,
|
/external/chromium_org/components/nacl/zygote/ |
H A D | nacl_fork_delegate_linux.cc | 113 int fds[2]; local 122 CHECK(socketpair(PF_UNIX, SOCK_SEQPACKET, 0, fds) == 0); 124 fds_to_map.push_back(std::make_pair(fds[1], kNaClZygoteDescriptor)); 209 if (IGNORE_EINTR(close(fds[1])) != 0) 210 LOG(ERROR) << "close(fds[1]) failed"; 216 const ssize_t nread = HANDLE_EINTR(read(fds[0], buf, sizeof(buf))); 221 fd_ = fds[0]; 231 if (IGNORE_EINTR(close(fds[0])) != 0) 232 LOG(ERROR) << "close(fds[0]) failed"; 263 pid_t NaClForkDelegate::Fork(const std::vector<int>& fds) { argument [all...] |
/external/chromium_org/ipc/ |
H A D | ipc_channel_nacl.cc | 28 std::vector<int> fds; member in struct:IPC::MessageContents 39 contents->fds.resize(FileDescriptorSet::kMaxDescriptorsPerMessage); 43 &iov, 1, &contents->fds[0], contents->fds.size() 52 contents->fds.clear(); 56 // Resize the buffers down to the number of bytes and fds we actually read. 58 contents->fds.resize(msg.desc_length); 215 contents->fds.begin(), contents->fds.end()); 216 contents->fds 263 int fds[FileDescriptorSet::kMaxDescriptorsPerMessage]; local [all...] |
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/ |
H A D | event_test.cc | 236 void SetFDs(int* fds, int cnt) { argument 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) { argument 255 kp->close(fds[index]); 269 int fds[2]; local 272 fds[ 298 int fds[2]; local [all...] |
H A D | kernel_wrap_test.cc | 388 int fds[] = {1, 2}; local 389 EXPECT_CALL(mock, pipe(fds)).WillOnce(Return(kDummyInt)); 390 EXPECT_EQ(kDummyInt, pipe(fds)); 546 struct pollfd fds; local 547 EXPECT_CALL(mock, poll(&fds, kDummyInt, kDummyInt2)) 549 EXPECT_EQ(kDummyInt3, poll(&fds, kDummyInt, kDummyInt2));
|
/external/chromium_org/sandbox/linux/seccomp-bpf/ |
H A D | demo.cc | 383 int fds[2 + kNumFds]; local 384 if (socketpair(AF_UNIX, SOCK_STREAM, 0, fds)) { 390 if (!SendFds(fds[0], "test", 4, fds[1], fds[1], fds[1], -1) || 391 !GetFds(fds[1], buf, &len, fds+2, fds+3, fds 475 int fds[3]; local [all...] |
/external/chromium_org/sandbox/linux/tests/ |
H A D | unit_tests.cc | 123 int fds[2]; local 124 ASSERT_EQ(0, pipe(fds)); 126 SANDBOX_ASSERT(fds[0] > 2 && fds[1] > 2); 134 SANDBOX_ASSERT(dup2(fds[1], 2) == 2); 135 SANDBOX_ASSERT(!close(fds[0])); 136 SANDBOX_ASSERT(!close(fds[1])); 153 close(fds[1]); 159 const int fcntl_ret = fcntl(fds[0], F_SETFL, O_NONBLOCK); 161 struct pollfd poll_fd = {fds[ [all...] |