/external/libevent/ |
D | poll.c | 58 int nfds; /* Highest number used */ member 109 for (i = 0; i < pop->nfds; ++i) { in poll_check_ok() 121 int res, i, j, nfds; in poll_dispatch() local 128 nfds = pop->nfds; in poll_dispatch() 148 sizeof(struct pollfd)*nfds); in poll_dispatch() 165 res = poll(event_set, nfds, msec); in poll_dispatch() 180 if (res == 0 || nfds == 0) in poll_dispatch() 183 i = random() % nfds; in poll_dispatch() 184 for (j = 0; j < nfds; j++) { in poll_dispatch() 186 if (++i == nfds) in poll_dispatch() [all …]
|
D | select.c | 131 int res=0, i, j, nfds; in select_dispatch() local 157 nfds = sop->event_fds+1; in select_dispatch() 161 res = select(nfds, sop->event_readset_out, in select_dispatch() 180 i = random() % nfds; in select_dispatch() 181 for (j = 0; j < nfds; ++j) { in select_dispatch() 182 if (++i >= nfds) in select_dispatch()
|
/external/c-ares/ |
D | ares_fds.c | 30 ares_socket_t nfds; in ares_fds() local 36 nfds = 0; in ares_fds() 46 if (server->udp_socket >= nfds) in ares_fds() 47 nfds = server->udp_socket + 1; in ares_fds() 58 if (server->tcp_socket >= nfds) in ares_fds() 59 nfds = server->tcp_socket + 1; in ares_fds() 62 return (int)nfds; in ares_fds()
|
D | ahost.c | 68 int status, nfds, c, addr_family = AF_INET; in main() local 147 nfds = ares_fds(channel, &read_fds, &write_fds); in main() 148 if (nfds == 0) in main() 151 select(nfds, &read_fds, &write_fds, NULL, tvp); in main()
|
D | acountry.c | 206 int nfds; in wait_ares() local 210 nfds = ares_fds(channel, &read_fds, &write_fds); in wait_ares() 211 if (nfds == 0) in wait_ares() 214 select(nfds, &read_fds, &write_fds, NULL, tvp); in wait_ares()
|
/external/strace/ |
D | poll.c | 50 const unsigned int nfds = tcp->u_arg[1]; in decode_poll_entering() local 51 const unsigned long size = sizeof(fds) * nfds; in decode_poll_entering() 56 if (!verbose(tcp) || !start || !nfds || in decode_poll_entering() 57 size / sizeof(fds) != nfds || end < start) { in decode_poll_entering() 59 tprintf(", %u, ", nfds); in decode_poll_entering() 73 tprintf(", %u, ", nfds); in decode_poll_entering() 92 tprintf("], %u, ", nfds); in decode_poll_entering() 101 const unsigned int nfds = tcp->u_arg[1]; in decode_poll_exiting() local 102 const unsigned long size = sizeof(fds) * nfds; in decode_poll_exiting() 118 if (!verbose(tcp) || !start || !nfds || in decode_poll_exiting() [all …]
|
D | pathtrace.c | 249 int nfds; in pathtrace_match() local 266 nfds = (int) args[0]; in pathtrace_match() 268 if (nfds <= 0) in pathtrace_match() 271 if (nfds > 1024*1024) in pathtrace_match() 272 nfds = 1024*1024; in pathtrace_match() 273 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; in pathtrace_match() 284 j = next_set_bit(fds, j, nfds); in pathtrace_match() 301 unsigned nfds; in pathtrace_match() local 305 nfds = tcp->u_arg[1]; in pathtrace_match() 307 end = start + sizeof(fds) * nfds; in pathtrace_match() [all …]
|
D | desc.c | 84 int nfds, fdsize; in decode_select() local 90 nfds = (int) args[0]; in decode_select() 93 if (nfds < 0) in decode_select() 94 nfds = 0; in decode_select() 97 if (nfds > 1024*1024) in decode_select() 98 nfds = 1024*1024; in decode_select() 104 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; in decode_select() 122 j = next_set_bit(fds, j, nfds); in decode_select() 160 j = next_set_bit(fds, j, nfds); in decode_select()
|
/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/selinux/policycoreutils/mcstrans/src/ |
D | mcstransd.c | 267 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) in add_pollfd() argument 272 for (ii = 0; ii < *nfds; ii++) { in add_pollfd() 277 if (ii == *nfds) { in add_pollfd() 279 (*nfds+1)*sizeof(struct pollfd)); in add_pollfd() 281 syslog(LOG_ERR, "realloc failed for %d fds", *nfds+1); in add_pollfd() 286 (*nfds)++; in add_pollfd() 297 adj_pollfds(struct pollfd **ufds, int *nfds) in adj_pollfds() argument 302 for (ii = 0; ii < *nfds; ii++) { in adj_pollfds() 309 *nfds = jj; in adj_pollfds() 313 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()
|
/external/curl/tests/libtest/ |
D | first.c | 41 int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc, in select_wrapper() argument 44 if(nfds < 0) { in select_wrapper() 54 if(!nfds) { in select_wrapper() 59 return select(nfds, rd, wr, exc, tv); in select_wrapper()
|
/external/dhcpcd-6.8.2/compat/ |
D | pselect.c | 39 pollts(struct pollfd *__restrict fds, nfds_t nfds, in pollts() argument 48 for (n = 0; n < nfds; n++) { in pollts() 58 for (n = 0; n < nfds; n++) { in pollts()
|
D | pollts.c | 42 pollts(struct pollfd *__restrict fds, nfds_t nfds, in pollts() argument 58 r = poll(fds, nfds, timeout); in pollts()
|
/external/curl/lib/ |
D | select.c | 386 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) in Curl_poll() argument 404 for(i = 0; i < nfds; i++) { in Curl_poll() 433 r = poll(ufds, nfds, pending_ms); in Curl_poll() 453 for(i = 0; i < nfds; i++) { in Curl_poll() 469 for(i = 0; i < nfds; i++) { in Curl_poll() 541 for(i = 0; i < nfds; i++) { in Curl_poll()
|
D | multi.c | 803 unsigned int nfds = 0; in curl_multi_wait() local 827 ++nfds; in curl_multi_wait() 831 ++nfds; in curl_multi_wait() 842 curlfds = nfds; /* number of internal file descriptors */ in curl_multi_wait() 843 nfds += extra_nfds; /* add the externally provided ones */ in curl_multi_wait() 845 if(nfds || extra_nfds) { in curl_multi_wait() 846 ufds = malloc(nfds * sizeof(struct pollfd)); in curl_multi_wait() 850 nfds = 0; in curl_multi_wait() 865 ufds[nfds].fd = sockbunch[i]; in curl_multi_wait() 866 ufds[nfds].events = POLLIN; in curl_multi_wait() [all …]
|
D | asyn-ares.c | 253 int nfds; in waitperform() local 281 nfds = Curl_poll(pfd, num, timeout_ms); in waitperform() 283 nfds = 0; in waitperform() 285 if(!nfds) in waitperform() 299 return nfds; in waitperform()
|
/external/avahi/avahi-sharp/ |
D | Client.cs | 45 internal delegate int PollCallback (IntPtr ufds, uint nfds, int timeout); in PollCallback() argument 185 private static extern int poll(IntPtr ufds, uint nfds, int timeout); in poll() argument 365 private int OnPollCallback (IntPtr ufds, uint nfds, int timeout) { in OnPollCallback() argument 367 int result = poll (ufds, nfds, timeout); in OnPollCallback()
|
/external/toybox/lib/ |
D | net.c | 46 int xpoll(struct pollfd *fds, int nfds, int timeout) in xpoll() argument 51 if (0>(i = poll(fds, nfds, timeout))) { in xpoll()
|
/external/libvncserver/libvncserver/ |
D | sockets.c | 285 int nfds; in rfbCheckFds() local 304 nfds = select(rfbScreen->maxFd + 1, &fds, NULL, NULL /* &fds */, &tv); in rfbCheckFds() 305 if (nfds == 0) { in rfbCheckFds() 318 if (nfds < 0) { in rfbCheckFds() 327 result += nfds; in rfbCheckFds() 335 if (--nfds == 0) in rfbCheckFds() 345 if (--nfds == 0) in rfbCheckFds() 381 if (--nfds == 0) in rfbCheckFds()
|
D | httpd.c | 169 int nfds; in rfbHttpCheckFds() local 195 …nfds = select(max(rfbScreen->httpListen6Sock, max(rfbScreen->httpSock,rfbScreen->httpListenSock)) … in rfbHttpCheckFds() 196 if (nfds == 0) { in rfbHttpCheckFds() 199 if (nfds < 0) { in rfbHttpCheckFds()
|
/external/libdrm/tests/kms/ |
D | kms-steal-crtc.c | 118 int nfds = STDIN_FILENO + 1; in main() local 129 err = select(nfds, &fds, NULL, NULL, &timeout); in main()
|
/external/avahi/avahi-common/ |
D | thread-watch.c | 48 static int poll_func(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata) { in poll_func() argument 56 r = poll(ufds, nfds, timeout); in poll_func()
|
/external/curl/tests/server/ |
D | sockfilt.c | 675 static int select_ws(int nfds, fd_set *readfds, fd_set *writefds, in select_ws() argument 691 if(nfds < 0) { in select_ws() 697 if(!nfds) { in select_ws() 710 data = malloc(nfds * sizeof(struct select_ws_data)); in select_ws() 717 handles = malloc(nfds * sizeof(HANDLE)); in select_ws() 725 memset(data, 0, nfds * sizeof(struct select_ws_data)); in select_ws() 726 memset(handles, 0, nfds * sizeof(HANDLE)); in select_ws() 729 for(fds = 0; fds < nfds; fds++) { in select_ws()
|