HomeSort by relevance Sort by last modified time
    Searched defs:nfds (Results 1 - 25 of 38) sorted by null

1 2

  /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 711 int nfds = 0; local
728 mDNSPosixGetFDSet(&mDNSStorage, &nfds, &readfds, &timeout);
731 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec);
732 result = select(nfds, &readfds, NULL, NULL, &timeout);
  /external/chromium_org/tools/android/forwarder2/
forwarder.cc 113 const int nfds = Socket::GetHighestFileDescriptor(*socket1_, *socket2_) + 1; local
132 if (HANDLE_EINTR(select(nfds, &read_fds, &write_fds, NULL, NULL)) <= 0) {
  /frameworks/base/core/jni/
com_android_internal_os_ZygoteInit.cpp 202 int nfds = 0; local
218 if (fd >= nfds) {
219 nfds = fd + 1;
225 err = select (nfds, &fdset, NULL, NULL, NULL);
  /external/chromium/third_party/libevent/
devpoll.c 64 int nfds; member in struct:devpollop
169 devpollop->nfds = nfiles;
190 if (max >= devpollop->nfds) {
192 int nfds; local
194 nfds = devpollop->nfds;
195 while (nfds <= max)
196 nfds <<= 1;
198 fds = realloc(devpollop->fds, nfds * sizeof(struct evdevpoll));
204 memset(fds + devpollop->nfds, 0
    [all...]
epoll.c 66 int nfds; member in struct:epollop
147 epollop->nfds = INITIAL_NFILES;
159 if (max >= epollop->nfds) {
161 int nfds; local
163 nfds = epollop->nfds;
164 while (nfds <= max)
165 nfds <<= 1;
167 fds = realloc(epollop->fds, nfds * sizeof(struct evepoll));
173 memset(fds + epollop->nfds, 0
    [all...]
poll.c 58 int nfds; /* Size of event_* */ member in struct:pollop
126 for (i = 0; i < pop->nfds; ++i) {
138 int res, i, j, msec = -1, nfds; local
146 nfds = pop->nfds;
147 res = poll(pop->event_set, nfds, msec);
163 if (res == 0 || nfds == 0)
166 i = random() % nfds;
167 for (j = 0; j < nfds; j++) {
170 if (++i == nfds)
    [all...]
  /external/chromium_org/third_party/libevent/
devpoll.c 64 int nfds; member in struct:devpollop
169 devpollop->nfds = nfiles;
190 if (max >= devpollop->nfds) {
192 int nfds; local
194 nfds = devpollop->nfds;
195 while (nfds <= max)
196 nfds <<= 1;
198 fds = realloc(devpollop->fds, nfds * sizeof(struct evdevpoll));
204 memset(fds + devpollop->nfds, 0
    [all...]
epoll.c 66 int nfds; member in struct:epollop
147 epollop->nfds = INITIAL_NFILES;
159 if (max >= epollop->nfds) {
161 int nfds; local
163 nfds = epollop->nfds;
164 while (nfds <= max)
165 nfds <<= 1;
167 fds = realloc(epollop->fds, nfds * sizeof(struct evepoll));
173 memset(fds + epollop->nfds, 0
    [all...]
poll.c 58 int nfds; /* Size of event_* */ member in struct:pollop
126 for (i = 0; i < pop->nfds; ++i) {
138 int res, i, j, msec = -1, nfds; local
146 nfds = pop->nfds;
147 res = poll(pop->event_set, nfds, msec);
163 if (res == 0 || nfds == 0)
166 i = random() % nfds;
167 for (j = 0; j < nfds; j++) {
170 if (++i == 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.c 17 static int nfds; variable
57 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
63 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1));
69 ufds[nfds].fd = fd;
70 ufds[nfds].events = POLLIN;
71 device_names[nfds] = strdup(device);
72 nfds++;
80 for(i = 1; i < nfds; i++) {
82 int count = nfds - i - 1;
86 nfds--
    [all...]
  /external/libppp/src/
main.c 541 int i, nfds, nothing_done; local
562 nfds = 0;
568 descriptor_UpdateSet(&bundle->desc, rfds, wfds, efds, &nfds);
571 descriptor_UpdateSet(&server.desc, rfds, NULL, NULL, &nfds);
589 i = select(nfds, rfds, wfds, efds, NULL);
596 for (i = 0; i <= nfds; i++) {
601 if (select(nfds, rfds, wfds, efds, &t) != -1) {
610 if (select(nfds, rfds, wfds, efds, &t) != -1) {
619 if (select(nfds, rfds, wfds, efds, &t) != -1) {
636 for (i = 0; i <= nfds; i++
    [all...]
  /external/linux-tools-perf/util/
evlist.c 103 int nfds = evlist->cpus->nr * evlist->threads->nr * evlist->nr_entries; local
104 evlist->pollfd = malloc(sizeof(struct pollfd) * nfds);
  /hardware/ril/libril/
ril_event.cpp 69 static int nfds = 0; variable
144 if (ev->fd+1 == nfds) {
154 nfds = n + 1;
155 dlog("~~~~ nfds = %d ~~~~", nfds);
277 if (ev->fd >= nfds) nfds = ev->fd+1;
278 dlog("~~~~ nfds = %d ~~~~", nfds);
367 n = select(nfds, &rfds, NULL, NULL, ptv)
    [all...]
  /external/chromium_org/third_party/libusb/src/libusb/
io.c 1925 POLL_NFDS_TYPE nfds = 0; local
    [all...]
  /external/chromium_org/tools/android/forwarder/
forwarder.cc 199 int nfds = socket1 > socket2 ? socket1 + 1 : socket2 + 1; local
218 if (HANDLE_EINTR(select(nfds, &read_fds, &write_fds, NULL, NULL)) <= 0) {
  /external/libusb/libusb/
io.c 1780 nfds_t nfds = 0; local
    [all...]
  /external/strace/
desc.c 492 int i, j, nfds; local
504 nfds = args[0];
505 tprintf("%d", nfds);
521 for (j = 0, sep = ""; j < nfds; j++) {
542 if ((nfds = tcp->u_rval) == 0) {
577 nfds--;
582 if (nfds == 0)
stream.c 303 unsigned nfds; local
308 nfds = tcp->u_arg[1];
309 size = sizeof(fds) * nfds;
312 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) {
314 tcp->u_arg[0], nfds);
350 tprintf(", %d, ", nfds);
365 nfds = tcp->u_arg[1];
366 size = sizeof(fds) * nfds;
369 if (nfds == 0 || size / sizeof(fds) != nfds || end < start
    [all...]
  /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);

Completed in 397 milliseconds

1 2