Searched refs:fds (Results 51 - 75 of 163) sorted by relevance

1234567

/external/chromium_org/content/public/common/
H A Dzygote_fork_delegate_linux.h69 const std::vector<int>& fds,
/external/chromium_org/ipc/
H A Dfile_descriptor_set_posix.h83 void ReleaseFDsToClose(std::vector<base::PlatformFile>* fds);
H A Dfile_descriptor_set_posix.cc140 std::vector<base::PlatformFile>* fds) {
144 fds->push_back((*i)->release());
139 ReleaseFDsToClose( std::vector<base::PlatformFile>* fds) argument
/external/chromium_org/content/zygote/
H A Dzygote_linux.h99 ScopedVector<base::ScopedFD> fds,
111 ScopedVector<base::ScopedFD> fds);
H A Dzygote_main_linux.cc490 // fds[0] is the read end, fds[1] is the write end.
491 static void CreateSanitizerCoverageSocketPair(int fds[2]) { argument
492 PCHECK(0 == socketpair(AF_UNIX, SOCK_SEQPACKET, 0, fds));
493 PCHECK(0 == shutdown(fds[0], SHUT_WR));
494 PCHECK(0 == shutdown(fds[1], SHUT_RD));
513 void CloseFdPair(const int fds[2]) { argument
514 PCHECK(0 == IGNORE_EINTR(close(fds[0])));
515 PCHECK(0 == IGNORE_EINTR(close(fds[1])));
/external/e2fsprogs/e2fsck/
H A Dlogfile.c208 int c, fd, fds[2]; local
223 if (pipe(fds) < 0) {
242 close(fds[1]);
243 while (do_read(fds[0]) > 0)
245 close(fds[0]);
275 close(fds[0]);
276 ret = fdopen(fds[1], "w");
278 close(fds[1]);
/external/chromium_org/base/message_loop/
H A Dmessage_pump_libevent.cc174 // It's illegal to use this function to listen on 2 separate fds with the
312 int fds[2]; local
313 if (pipe(fds)) {
317 if (SetNonBlocking(fds[0])) {
321 if (SetNonBlocking(fds[1])) {
325 wakeup_pipe_out_ = fds[0];
326 wakeup_pipe_in_ = fds[1];
/external/lldb/examples/interposing/darwin/fd_interposing/
H A DFDInterposing.cpp693 socketpair$__interposed__ (int domain, int type, int protocol, int fds[2]) argument
699 fds[0] = -1;
700 fds[1] = -1;
701 const int err = socketpair (domain, type, protocol, fds);
703 StringSP description_sp(new String ("pid=%i: socketpair (domain=%i, type=%i, protocol=%i, {fd=%i, fd=%i}) -> err=%i", pid, domain, type, protocol, fds[0], fds[1], err));
706 if (fds[0] >= 0)
707 save_backtrace (fds[0], err_errno.get_errno(), description_sp, true);
708 if (fds[1] >= 0)
709 save_backtrace (fds[
1061 pipe$__interposed__(int fds[2]) argument
[all...]
/external/chromium_org/third_party/libusb/src/libusb/
H A Dio.c1615 /* is someone else waiting to modify poll fds? if so, don't let this thread
1621 usbi_dbg("someone else is modifying poll fds");
1706 /* is someone else waiting to modify poll fds? if so, don't let this thread
1712 usbi_dbg("someone else is modifying poll fds");
1734 /* is someone else waiting to modify poll fds? if so, don't let this thread
1740 usbi_dbg("someone else is modifying poll fds");
1930 struct pollfd *fds = NULL; local
1940 fds = malloc(sizeof(*fds) * nfds);
1941 if (!fds) {
[all...]
/external/fio/os/windows/
H A Dposix.c736 int poll(struct pollfd fds[], nfds_t nfds, int timeout) argument
756 if (fds[i].fd < 0) {
757 fds[i].revents = 0;
761 if (fds[i].events & POLLIN)
762 FD_SET(fds[i].fd, &readfds);
764 if (fds[i].events & POLLOUT)
765 FD_SET(fds[i].fd, &writefds);
767 FD_SET(fds[i].fd, &exceptfds);
774 if (fds[i].fd < 0) {
778 if ((fds[
[all...]
/external/libusb/libusb/
H A Dio.c1451 /* is someone else waiting to modify poll fds? if so, don't let this thread
1457 usbi_dbg("someone else is modifying poll fds");
1542 /* is someone else waiting to modify poll fds? if so, don't let this thread
1548 usbi_dbg("someone else is modifying poll fds");
1570 /* is someone else waiting to modify poll fds? if so, don't let this thread
1576 usbi_dbg("someone else is modifying poll fds");
1781 struct pollfd *fds; local
1790 fds = malloc(sizeof(*fds) * nfds);
1791 if (!fds)
[all...]
/external/libusb/libusb/os/
H A Ddarwin_usb.c244 write (priv->fds[1], &message, sizeof (message));
626 pipe (priv->fds);
629 fcntl (priv->fds[1], F_SETFD, O_NONBLOCK);
631 usbi_add_pollfd(HANDLE_CTX(dev_handle), priv->fds[0], POLLIN);
685 usbi_remove_pollfd (HANDLE_CTX (dev_handle), priv->fds[0]);
686 close (priv->fds[1]);
687 close (priv->fds[0]);
689 priv->fds[0] = priv->fds[1] = -1;
1323 write (priv->fds[
1384 op_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds, int num_ready) argument
[all...]
/external/chromium_org/components/nacl/zygote/
H A Dnacl_fork_delegate_linux.h46 const std::vector<int>& fds,
/external/chromium_org/content/browser/zygote_host/
H A Dzygote_host_impl_linux.h78 // Sends |data| to the zygote via |control_fd_|. If |fds| is non-NULL, the
81 bool SendMessage(const Pickle& data, const std::vector<int>* fds);
/external/chromium_org/third_party/libusb/src/libusb/os/
H A Dlinux_netlink.c307 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 Dlinux_udev.c166 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 Ddarwin_usb.h133 int fds[2]; member in struct:darwin_device_handle_priv
/external/chromium_org/sandbox/linux/services/
H A Dbroker_process.cc324 ScopedVector<base::ScopedFD> fds; local
328 sizeof(buf), &fds);
338 if (msg_len < 0 || fds.size() != 1 || fds[0]->get() < 0) {
343 base::ScopedFD temporary_ipc(fds[0]->Pass());
/external/qemu/
H A Dmain-loop.c80 int fds[2]; local
82 err = pipe(fds);
86 err = fcntl_setfl(fds[0], O_NONBLOCK);
90 err = fcntl_setfl(fds[1], O_NONBLOCK);
94 qemu_set_fd_handler2(fds[0], NULL, qemu_event_read, NULL,
95 (void *)(unsigned long)fds[0]);
97 io_thread_fd = fds[1];
101 close(fds[0]);
102 close(fds[1]);
/external/chromium_org/sandbox/linux/seccomp-bpf/
H A Dsandbox_bpf.cc315 int fds[2]; local
316 if (pipe2(fds, O_NONBLOCK | O_CLOEXEC)) {
320 if (fds[0] <= 2 || fds[1] <= 2) {
347 if (IGNORE_EINTR(close(fds[0]))) {
351 WriteFailedStderrSetupMessage(fds[1]);
355 if (HANDLE_EINTR(dup2(fds[1], 2)) != 2) {
365 WriteFailedStderrSetupMessage(fds[1]);
369 if (IGNORE_EINTR(close(fds[1]))) {
373 WriteFailedStderrSetupMessage(fds[
[all...]
/external/strace/
H A Dnet.c329 int *fds = (int *) CMSG_DATA(cmsg); local
333 while ((char *) fds < ((char *) cmsg + cmsg_len)) {
336 printfd(tcp, *fds++);
847 int fds[2]; local
849 if (umoven(tcp, tcp->u_arg[0], sizeof fds, (char *) fds) < 0)
852 tprintf("[%u, %u]", fds[0], fds[1]);
882 int fds[2]; local
894 if (umoven(tcp, tcp->u_arg[3], sizeof fds, (cha
[all...]
/external/chromium_org/third_party/npapi/npspy/extern/nspr/md/
H A D_hpux.h248 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
H A D_openbsd.h229 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
/external/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform.h196 int ExtractResolvFDs(void *state, int *fds, int nfd);
197 int ExtractRecvmsgFDs(void *msg, int *fds, int nfd);
/external/chromium_org/components/crash/app/
H A Dbreakpad_linux.cc764 int fds[2] = { -1, -1 }; variable
765 if (sys_socketpair(AF_UNIX, SOCK_STREAM, 0, fds) < 0) {
789 iov[2].iov_base = &fds[0];
790 iov[2].iov_len = sizeof(fds[0]);
819 ((int*)CMSG_DATA(hdr))[0] = fds[1];
824 IGNORE_RET(sys_close(fds[0]));
825 IGNORE_RET(sys_close(fds[1]));
828 IGNORE_RET(sys_close(fds[1]));
830 if (HANDLE_EINTR(sys_read(fds[0], &b, 1)) != 1) {
834 IGNORE_RET(sys_close(fds[
1508 int fds[2]; local
[all...]

Completed in 6597 milliseconds

1234567