/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/strace/ |
D | pathtrace.c | 265 int nfds; in pathtrace_match() local 282 nfds = (int) args[0]; in pathtrace_match() 284 if (nfds <= 0) in pathtrace_match() 287 if (nfds > 1024*1024) in pathtrace_match() 288 nfds = 1024*1024; in pathtrace_match() 289 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; in pathtrace_match() 302 j = next_set_bit(fds, j, nfds); in pathtrace_match() 319 unsigned nfds; in pathtrace_match() local 323 nfds = tcp->u_arg[1]; in pathtrace_match() 325 end = start + sizeof(fds) * nfds; in pathtrace_match() [all …]
|
D | stream.c | 233 unsigned nfds; in decode_poll() local 238 nfds = tcp->u_arg[1]; in decode_poll() 239 size = sizeof(fds) * nfds; in decode_poll() 242 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) { in decode_poll() 244 tcp->u_arg[0], nfds); in decode_poll() 280 tprintf(", %d, ", nfds); in decode_poll() 295 nfds = tcp->u_arg[1]; in decode_poll() 296 size = sizeof(fds) * nfds; in decode_poll() 299 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) in decode_poll()
|
D | desc.c | 309 int nfds, fdsize; in decode_select() local 315 nfds = (int) args[0]; in decode_select() 318 if (nfds < 0) in decode_select() 319 nfds = 0; in decode_select() 322 if (nfds > 1024*1024) in decode_select() 323 nfds = 1024*1024; in decode_select() 329 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; in decode_select() 355 j = next_set_bit(fds, j, nfds); in decode_select() 396 j = next_set_bit(fds, j, nfds); in decode_select()
|
/external/selinux/policycoreutils/mcstrans/src/ |
D | mcstransd.c | 285 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument 290 for (ii = 0; ii < *nfds; ii++) { in add_pollfd() 295 if (ii == *nfds) { in add_pollfd() 297 (*nfds+1)*sizeof(struct pollfd)); in add_pollfd() 299 syslog(LOG_ERR, "realloc failed for %d fds", *nfds+1); in add_pollfd() 304 (*nfds)++; in add_pollfd() 315 adj_pollfds(struct pollfd **ufds, int *nfds) in adj_pollfds() argument 320 for (ii = 0; ii < *nfds; ii++) { in adj_pollfds() 327 *nfds = jj; in adj_pollfds() 331 process_events(struct pollfd **ufds, int *nfds) in process_events() argument [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 | 715 int nfds = 0; in main() local 732 mDNSPosixGetFDSet(&mDNSStorage, &nfds, &readfds, &timeout); in main() 735 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec); in main() 736 result = select(nfds, &readfds, NULL, NULL, &timeout); in main()
|
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.h | 73 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout);
|
D | mDNSPosix.c | 1443 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s) in mDNSPosixAddToFDSet() argument 1445 if (*nfds < s + 1) *nfds = s + 1; in mDNSPosixAddToFDSet() 1449 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout) in mDNSPosixGetFDSet() argument 1459 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4); in mDNSPosixGetFDSet() 1461 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6); in mDNSPosixGetFDSet() 1465 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4); in mDNSPosixGetFDSet() 1467 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6); in mDNSPosixGetFDSet()
|
/external/openssh/openbsd-compat/ |
D | bsd-poll.c | 43 poll(struct pollfd *fds, nfds_t nfds, int timeout) in poll() argument 51 for (i = 0; i < nfds; i++) { in poll() 70 for (i = 0; i < nfds; i++) { in poll() 95 for (i = 0; i < nfds; i++) { in poll()
|
/external/lldb/source/Core/ |
D | ConnectionFileDescriptor.cpp | 675 const int nfds = std::max<int>(data_fd, pipe_fd) + 1; in BytesAvailable() local 677 read_fds.resize((nfds/FD_SETSIZE) + 1); in BytesAvailable() 693 this, nfds, data_fd, pipe_fd, tv_ptr); in BytesAvailable() 696 this, nfds, data_fd, tv_ptr); in BytesAvailable() 699 const int num_set_fds = ::select (nfds, read_fds.data(), NULL, NULL, tv_ptr); in BytesAvailable() 709 … this, nfds, data_fd, pipe_fd, tv_ptr, num_set_fds, error.AsCString()); in BytesAvailable() 712 this, nfds, data_fd, tv_ptr, num_set_fds, error.AsCString()); in BytesAvailable() 841 const int nfds = std::max<int>(data_fd, pipe_fd) + 1; in BytesAvailable() local 849 this, nfds, data_fd, pipe_fd, tv_ptr); in BytesAvailable() 852 this, nfds, data_fd, tv_ptr); in BytesAvailable() [all …]
|
/external/libvncserver/libvncserver/ |
D | sockets.c | 260 int nfds; in rfbCheckFds() local 279 nfds = select(rfbScreen->maxFd + 1, &fds, NULL, NULL /* &fds */, &tv); in rfbCheckFds() 280 if (nfds == 0) { in rfbCheckFds() 293 if (nfds < 0) { in rfbCheckFds() 302 result += nfds; in rfbCheckFds() 310 if (--nfds == 0) in rfbCheckFds() 320 if (--nfds == 0) in rfbCheckFds() 356 if (--nfds == 0) in rfbCheckFds()
|
D | httpd.c | 157 int nfds; in rfbHttpCheckFds() local 183 …nfds = select(max(rfbScreen->httpListen6Sock, max(rfbScreen->httpSock,rfbScreen->httpListenSock)) … in rfbHttpCheckFds() 184 if (nfds == 0) { in rfbHttpCheckFds() 187 if (nfds < 0) { in rfbHttpCheckFds()
|
/external/fio/os/windows/posix/include/sys/ |
D | poll.h | 13 int poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
/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/compiler-rt/lib/dfsan/ |
D | dfsan_custom.cc | 648 int __dfsw_poll(struct pollfd *fds, nfds_t nfds, int timeout, in __dfsw_poll() argument 651 int ret = poll(fds, nfds, timeout); in __dfsw_poll() 653 for (; nfds > 0; --nfds) { in __dfsw_poll() 654 dfsan_set_label(0, &fds[nfds - 1].revents, sizeof(fds[nfds - 1].revents)); in __dfsw_poll() 662 int __dfsw_select(int nfds, fd_set *readfds, fd_set *writefds, in __dfsw_select() argument 667 int ret = select(nfds, readfds, writefds, exceptfds, timeout); in __dfsw_select()
|
/external/toybox/toys/pending/ |
D | syslogd.c | 409 int nfds, retval, last_len=0; in syslogd_main() local 439 nfds = 0; in syslogd_main() 455 nfds++; in syslogd_main() 457 if (!nfds) { in syslogd_main()
|
/external/libvncserver/x11vnc/ |
D | win_utils.c | 457 int nfds; in pick_windowid() local 463 nfds = select(fileno(p)+1, &set, NULL, NULL, &tv); in pick_windowid() 465 if (nfds == 0 || nfds < 0) { in pick_windowid()
|
/external/valgrind/include/ |
D | pub_tool_libcfile.h | 92 extern SysRes VG_(poll) (struct vki_pollfd *fds, Int nfds, Int timeout);
|
/external/fio/os/windows/ |
D | posix.c | 736 int poll(struct pollfd fds[], nfds_t nfds, int timeout) in poll() argument 754 for (i = 0; i < nfds; i++) in poll() 769 rc = select(nfds, &readfds, &writefds, &exceptfds, to); in poll() 772 for (i = 0; i < nfds; i++) in poll()
|
/external/ppp/pppd/ |
D | tty.c | 982 int n, nfds; local 1083 nfds = (ofd > pty_master? ofd: pty_master) + 1; 1114 if (select(nfds, &ready, &writey, NULL, top) < 0) {
|
/external/valgrind/coregrind/ |
D | m_libcfile.c | 520 SysRes VG_(poll) (struct vki_pollfd *fds, Int nfds, Int timeout) in VG_() 531 (UWord)fds, nfds, in VG_() 535 res = VG_(do_syscall3)(__NR_poll, (UWord)fds, nfds, timeout); in VG_() 537 res = VG_(do_syscall3)(__NR_poll_nocancel, (UWord)fds, nfds, timeout); in VG_()
|