/external/mdnsresponder/mDNSPosix/ |
ExampleClientApp.c | 51 int nfds = 0; local 68 mDNSPosixGetFDSet(m, &nfds, &readfds, &timeout); 71 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec); 72 result = select(nfds, &readfds, NULL, NULL, &timeout);
|
Identify.c | 187 int nfds = 0; local 202 mDNSPosixGetFDSet(m, &nfds, &readfds, &remain); 203 result = select(nfds, &readfds, NULL, NULL, &remain);
|
Responder.c | 715 int nfds = 0; local 732 mDNSPosixGetFDSet(&mDNSStorage, &nfds, &readfds, &timeout); 735 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec); 736 result = select(nfds, &readfds, NULL, NULL, &timeout);
|
/external/strace/ |
pathtrace.c | 265 int nfds; local 282 nfds = (int) args[0]; 283 /* Kernel rejects negative nfds, so we don't parse it either. */ 284 if (nfds <= 0) 287 if (nfds > 1024*1024) 288 nfds = 1024*1024; 289 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; 302 j = next_set_bit(fds, j, nfds); 319 unsigned nfds; local 323 nfds = tcp->u_arg[1] [all...] |
stream.c | 233 unsigned nfds; local 238 nfds = tcp->u_arg[1]; 239 size = sizeof(fds) * nfds; 242 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) { 244 tcp->u_arg[0], nfds); 280 tprintf(", %d, ", nfds); 295 nfds = tcp->u_arg[1]; 296 size = sizeof(fds) * nfds; 299 if (nfds == 0 || size / sizeof(fds) != nfds || end < start [all...] |
desc.c | 309 int nfds, fdsize; local 315 nfds = (int) args[0]; 317 /* Kernel rejects negative nfds, so we don't parse it either. */ 318 if (nfds < 0) 319 nfds = 0; 322 if (nfds > 1024*1024) 323 nfds = 1024*1024; 327 * Instead of args[0], use nfds for fd count, fdsize for array lengths. 329 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; 355 j = next_set_bit(fds, j, nfds); [all...] |
/external/dhcpcd/ |
eloop.c | 285 nfds_t nfds, i; local 321 nfds = 0; 323 nfds++; 324 if (msecs == -1 && nfds == 0) { 328 if (nfds > fds_len) { 331 fds_len = nfds + 5; 334 nfds = 0; 336 fds[nfds].fd = e->fd; 337 fds[nfds].events = POLLIN; 338 fds[nfds].revents = 0 [all...] |
/external/ipsec-tools/src/racoon/ |
schedule.c | 333 int nfds = 0; local 340 nfds = 1; 350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
|
session.c | 112 static int nfds = 0; variable 195 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout); 267 nfds = 0; 284 nfds = (nfds > lcconf->sock_admin ? nfds : lcconf->sock_admin); 293 nfds = (nfds > lcconf->sock_pfkey ? nfds : lcconf->sock_pfkey); 300 nfds = (nfds > lcconf->rtsock ? nfds : lcconf->rtsock) [all...] |
/system/core/debuggerd/ |
getevent.cpp | 33 static int nfds; variable 69 new_ufds = reinterpret_cast<pollfd*>(realloc(ufds, sizeof(ufds[0]) * (nfds + 1))); 76 device_names, sizeof(device_names[0]) * (nfds + 1))); 82 ufds[nfds].fd = fd; 83 ufds[nfds].events = POLLIN; 84 device_names[nfds] = strdup(device); 85 nfds++; 92 for (i = 1; i < nfds; i++) { 94 int count = nfds - i - 1; 98 nfds-- [all...] |
/external/libvncserver/libvncserver/ |
httpd.c | 157 int nfds; local 183 nfds = select(max(rfbScreen->httpListen6Sock, max(rfbScreen->httpSock,rfbScreen->httpListenSock)) + 1, &fds, NULL, NULL, &tv); 184 if (nfds == 0) { 187 if (nfds < 0) {
|
sockets.c | 260 int nfds; local 279 nfds = select(rfbScreen->maxFd + 1, &fds, NULL, NULL /* &fds */, &tv); 280 if (nfds == 0) { 293 if (nfds < 0) { 302 result += nfds; 310 if (--nfds == 0) 320 if (--nfds == 0) 356 if (--nfds == 0)
|
/external/lldb/source/Core/ |
ConnectionFileDescriptor.cpp | 675 const int nfds = std::max<int>(data_fd, pipe_fd) + 1; local 677 read_fds.resize((nfds/FD_SETSIZE) + 1); 692 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds=%i, fds={%i, %i}, NULL, NULL, timeout=%p)...", 693 this, nfds, data_fd, pipe_fd, tv_ptr); 695 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds=%i, fds={%i}, NULL, NULL, timeout=%p)...", 696 this, nfds, data_fd, tv_ptr); 699 const int num_set_fds = ::select (nfds, read_fds.data(), NULL, NULL, tv_ptr); 708 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds=%i, fds={%i, %i}, NULL, NULL, timeout=%p) => %d, error = %s", 709 this, nfds, data_fd, pipe_fd, tv_ptr, num_set_fds, error.AsCString()); 711 log->Printf("%p ConnectionFileDescriptor::BytesAvailable() ::select (nfds=%i, fds={%i}, NULL, NULL, timeout=%p) => %d, error = %s" [all...] |
/external/selinux/policycoreutils/mcstrans/src/ |
mcstransd.c | 285 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) 290 for (ii = 0; ii < *nfds; ii++) { 295 if (ii == *nfds) { 297 (*nfds+1)*sizeof(struct pollfd)); 299 syslog(LOG_ERR, "realloc failed for %d fds", *nfds+1); 304 (*nfds)++; 315 adj_pollfds(struct pollfd **ufds, int *nfds) 320 for (ii = 0; ii < *nfds; ii++) { 327 *nfds = jj; 331 process_events(struct pollfd **ufds, int *nfds) 408 int nfds = 1; local [all...] |
/hardware/ril/libril/ |
ril_event.cpp | 69 static int nfds = 0; variable 142 if (ev->fd+1 == nfds) { 152 nfds = n + 1; 153 dlog("~~~~ nfds = %d ~~~~", nfds); 276 if (ev->fd >= nfds) nfds = ev->fd+1; 277 dlog("~~~~ nfds = %d ~~~~", nfds); 366 n = select(nfds, &rfds, NULL, NULL, ptv) [all...] |
/external/libusb/libusb/ |
io.c | 1780 nfds_t nfds = 0; local [all...] |
/external/libvncserver/x11vnc/ |
win_utils.c | 457 int nfds; local 463 nfds = select(fileno(p)+1, &set, NULL, NULL, &tv); 465 if (nfds == 0 || nfds < 0) {
|
/external/toybox/toys/pending/ |
syslogd.c | 409 int nfds, retval, last_len=0; local 439 nfds = 0; 455 nfds++; 457 if (!nfds) {
|
/hardware/qcom/audio/legacy/libalsa-intf/ |
aplay.c | 174 int nfds = 1; local 313 poll(pfd, nfds, TIMEOUT_INFINITE); 425 poll(pfd, nfds, TIMEOUT_INFINITE);
|
arec.c | 182 int nfds = 1; local 304 poll(pfd, nfds, TIMEOUT_INFINITE);
|
/system/core/liblog/ |
log_read_kern.c | 506 nfds_t nfds; local 521 nfds = 0; 523 ++nfds; 525 if (nfds <= 0) { 545 pollfds = calloc(nfds, sizeof(struct pollfd)); 564 poll(pollfds, nfds, logger_list->timeout_ms));
|
/system/core/toolbox/ |
getevent.c | 37 static int nfds; variable 363 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 369 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); 377 printf("add device %d: %s\n", nfds, device); 404 ufds[nfds].fd = fd; 405 ufds[nfds].events = POLLIN; 406 device_names[nfds] = strdup(device); 407 nfds++; 415 for(i = 1; i < nfds; i++) { 417 int count = nfds - i - 1 [all...] |
/external/linux-tools-perf/src/tools/perf/util/ |
evlist.c | 328 int nfds = nr_cpus * nr_threads * evlist->nr_entries; local 329 evlist->pollfd = malloc(sizeof(struct pollfd) * nfds);
|
/external/ppp/pppd/ |
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) { [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
AudioUsbALSA.cpp | 380 int nfds = 1; local 483 poll(pfdUsbRecording, nfds, TIMEOUT_INFINITE); 519 poll(pfdProxyRecording, nfds, TIMEOUT_INFINITE); [all...] |