/external/chromium/third_party/libevent/ |
D | epoll.c | 66 int nfds; member 147 epollop->nfds = INITIAL_NFILES; in epoll_init() 159 if (max >= epollop->nfds) { in epoll_recalc() 161 int nfds; in epoll_recalc() local 163 nfds = epollop->nfds; in epoll_recalc() 164 while (nfds <= max) in epoll_recalc() 165 nfds <<= 1; in epoll_recalc() 167 fds = realloc(epollop->fds, nfds * sizeof(struct evepoll)); in epoll_recalc() 173 memset(fds + epollop->nfds, 0, in epoll_recalc() 174 (nfds - epollop->nfds) * sizeof(struct evepoll)); in epoll_recalc() [all …]
|
D | devpoll.c | 64 int nfds; member 169 devpollop->nfds = nfiles; in devpoll_init() 190 if (max >= devpollop->nfds) { in devpoll_recalc() 192 int nfds; in devpoll_recalc() local 194 nfds = devpollop->nfds; in devpoll_recalc() 195 while (nfds <= max) in devpoll_recalc() 196 nfds <<= 1; in devpoll_recalc() 198 fds = realloc(devpollop->fds, nfds * sizeof(struct evdevpoll)); in devpoll_recalc() 204 memset(fds + devpollop->nfds, 0, in devpoll_recalc() 205 (nfds - devpollop->nfds) * sizeof(struct evdevpoll)); in devpoll_recalc() [all …]
|
D | poll.c | 58 int nfds; /* Size of event_* */ member 126 for (i = 0; i < pop->nfds; ++i) { in poll_check_ok() 138 int res, i, j, msec = -1, nfds; in poll_dispatch() local 146 nfds = pop->nfds; in poll_dispatch() 147 res = poll(pop->event_set, nfds, msec); in poll_dispatch() 163 if (res == 0 || nfds == 0) in poll_dispatch() 166 i = random() % nfds; in poll_dispatch() 167 for (j = 0; j < nfds; j++) { in poll_dispatch() 170 if (++i == nfds) in poll_dispatch() 217 if (pop->nfds + 1 >= pop->event_count) { in poll_add() [all …]
|
/external/ipsec-tools/src/racoon/ |
D | session.c | 112 static int nfds = 0; variable 195 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout); in session() 267 nfds = 0; in initfds() 284 nfds = (nfds > lcconf->sock_admin ? nfds : lcconf->sock_admin); in initfds() 293 nfds = (nfds > lcconf->sock_pfkey ? nfds : lcconf->sock_pfkey); in initfds() 300 nfds = (nfds > lcconf->rtsock ? nfds : lcconf->rtsock); in initfds() 311 nfds = (nfds > p->sock ? nfds : p->sock); in initfds() 313 nfds++; in initfds()
|
D | schedule.c | 333 int nfds = 0; in main() local 340 nfds = 1; in main() 350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout); in main()
|
/external/dhcpcd/ |
D | eloop.c | 285 nfds_t nfds, i; in start_eloop() local 321 nfds = 0; in start_eloop() 323 nfds++; in start_eloop() 324 if (msecs == -1 && nfds == 0) { in start_eloop() 328 if (nfds > fds_len) { in start_eloop() 331 fds_len = nfds + 5; in start_eloop() 334 nfds = 0; in start_eloop() 336 fds[nfds].fd = e->fd; in start_eloop() 337 fds[nfds].events = POLLIN; in start_eloop() 338 fds[nfds].revents = 0; in start_eloop() [all …]
|
/external/mdnsresponder/mDNSPosix/ |
D | ExampleClientApp.c | 51 int nfds = 0; in ExampleClientEventLoop() local 68 mDNSPosixGetFDSet(m, &nfds, &readfds, &timeout); in ExampleClientEventLoop() 71 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec); in ExampleClientEventLoop() 72 result = select(nfds, &readfds, NULL, NULL, &timeout); in ExampleClientEventLoop()
|
D | Responder.c | 711 int nfds = 0; in main() local 728 mDNSPosixGetFDSet(&mDNSStorage, &nfds, &readfds, &timeout); in main() 731 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec); in main() 732 result = select(nfds, &readfds, NULL, NULL, &timeout); in main()
|
D | mDNSPosix.h | 73 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout);
|
D | Identify.c | 187 int nfds = 0; in WaitForAnswer() local 202 mDNSPosixGetFDSet(m, &nfds, &readfds, &remain); in WaitForAnswer() 203 result = select(nfds, &readfds, NULL, NULL, &remain); in WaitForAnswer()
|
D | mDNSPosix.c | 1411 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s) in mDNSPosixAddToFDSet() argument 1413 if (*nfds < s + 1) *nfds = s + 1; in mDNSPosixAddToFDSet() 1417 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout) in mDNSPosixGetFDSet() argument 1427 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4); in mDNSPosixGetFDSet() 1429 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6); in mDNSPosixGetFDSet() 1433 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4); in mDNSPosixGetFDSet() 1435 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6); in mDNSPosixGetFDSet()
|
/external/libppp/src/ |
D | main.c | 541 int i, nfds, nothing_done; in DoLoop() local 562 nfds = 0; in DoLoop() 568 descriptor_UpdateSet(&bundle->desc, rfds, wfds, efds, &nfds); in DoLoop() 571 descriptor_UpdateSet(&server.desc, rfds, NULL, NULL, &nfds); in DoLoop() 589 i = select(nfds, rfds, wfds, efds, NULL); in DoLoop() 596 for (i = 0; i <= nfds; i++) { in DoLoop() 601 if (select(nfds, rfds, wfds, efds, &t) != -1) { in DoLoop() 610 if (select(nfds, rfds, wfds, efds, &t) != -1) { in DoLoop() 619 if (select(nfds, rfds, wfds, efds, &t) != -1) { in DoLoop() 636 for (i = 0; i <= nfds; i++) in DoLoop() [all …]
|
/external/openssh/openbsd-compat/ |
D | bsd-poll.c | 40 poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll() argument 48 for (i = 0; i < nfds; i++) { in poll() 67 for (i = 0; i < nfds; i++) { in poll() 92 for (i = 0; i < nfds; i++) { in poll()
|
/external/strace/ |
D | stream.c | 303 unsigned nfds; in decode_poll() local 308 nfds = tcp->u_arg[1]; in decode_poll() 309 size = sizeof(fds) * nfds; in decode_poll() 312 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) { in decode_poll() 314 tcp->u_arg[0], nfds); in decode_poll() 350 tprintf(", %d, ", nfds); in decode_poll() 365 nfds = tcp->u_arg[1]; in decode_poll() 366 size = sizeof(fds) * nfds; in decode_poll() 369 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) in decode_poll()
|
D | desc.c | 492 int i, j, nfds; in decode_select() local 504 nfds = args[0]; in decode_select() 505 tprintf("%d", nfds); in decode_select() 521 for (j = 0, sep = ""; j < nfds; j++) { in decode_select() 542 if ((nfds = tcp->u_rval) == 0) { in decode_select() 577 nfds--; in decode_select() 582 if (nfds == 0) in decode_select()
|
/external/chromium/net/tools/flip_server/ |
D | epoll_server.cc | 651 int nfds = epoll_wait_impl(epoll_fd_, in WaitForEventsAndCallHandleEvents() local 655 VLOG(3) << "nfds=" << nfds; in WaitForEventsAndCallHandleEvents() 658 event_recorder_.RecordEpollWaitEvent(timeout_in_ms, nfds); in WaitForEventsAndCallHandleEvents() 669 if (nfds > 0) { in WaitForEventsAndCallHandleEvents() 670 for (int i = 0; i < nfds; ++i) { in WaitForEventsAndCallHandleEvents() 675 } else if (nfds < 0) { in WaitForEventsAndCallHandleEvents()
|
/external/libusb/libusb/ |
D | io.c | 1780 nfds_t nfds = 0; in handle_events() local 1787 nfds++; in handle_events() 1790 fds = malloc(sizeof(*fds) * nfds); in handle_events() 1810 usbi_dbg("poll() %d fds with timeout in %dms", nfds, timeout_ms); in handle_events() 1811 r = poll(fds, nfds, timeout_ms); in handle_events() 1867 r = usbi_backend->handle_events(ctx, fds, nfds, r); in handle_events()
|
/external/libusb_aah/libusb/ |
D | io.c | 1938 POLL_NFDS_TYPE nfds = 0; in handle_events() local 1945 nfds++; in handle_events() 1948 fds = malloc(sizeof(*fds) * nfds); in handle_events() 1970 usbi_dbg("poll() %d fds with timeout in %dms", nfds, timeout_ms); in handle_events() 1971 r = usbi_poll(fds, nfds, timeout_ms); in handle_events() 2027 r = usbi_backend->handle_events(ctx, fds, nfds, r); in handle_events()
|
/external/libusb_aah/libusb/os/ |
D | poll_windows.c | 520 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout) in usbi_poll() argument 532 handles_to_wait_on = (HANDLE*) calloc(nfds+1, sizeof(HANDLE)); // +1 for fd_update in usbi_poll() 533 handle_to_index = (int*) calloc(nfds, sizeof(int)); in usbi_poll() 540 for (i = 0; i < nfds; ++i) { in usbi_poll()
|
D | poll_windows.h | 78 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout);
|
/external/kernel-headers/original/linux/ |
D | poll.h | 115 extern int do_sys_poll(struct pollfd __user * ufds, unsigned int nfds,
|
/external/qemu/slirp/ |
D | slirp.c | 214 #define UPD_NFDS(x) if (nfds < (x)) nfds = (x) 246 int nfds; in slirp_select_fill() local 254 nfds = *pnfds; in slirp_select_fill() 388 *pnfds = nfds; in slirp_select_fill()
|
/external/qemu/slirp-android/ |
D | slirp.c | 274 #define UPD_NFDS(x) if (nfds < (x)) nfds = (x) 306 int nfds; in slirp_select_fill() local 314 nfds = *pnfds; in slirp_select_fill() 460 proxy_manager_select_fill(&nfds, readfds, writefds, xfds); in slirp_select_fill() 462 *pnfds = nfds; in slirp_select_fill()
|
/external/valgrind/main/include/ |
D | pub_tool_libcfile.h | 89 extern Int VG_(poll) (struct vki_pollfd *fds, Int nfds, Int timeout);
|
/external/linux-tools-perf/util/ |
D | evlist.c | 103 int nfds = evlist->cpus->nr * evlist->threads->nr * evlist->nr_entries; in perf_evlist__alloc_pollfd() local 104 evlist->pollfd = malloc(sizeof(struct pollfd) * nfds); in perf_evlist__alloc_pollfd()
|