Searched refs:nfds (Results 1 - 25 of 45) sorted by relevance

12

/external/bluetooth/bluez/src/
H A Dppoll.h7 static inline int compat_ppoll(struct pollfd *fds, nfds_t nfds, argument
11 return poll(fds, nfds, -1);
13 return poll(fds, nfds, 500);
15 return poll(fds, nfds, timeout->tv_sec * 1000);
/external/bluetooth/glib/glib/
H A Dgpoll.c62 /* The poll() emulation on OS/X doesn't handle fds=NULL, nfds=0,
95 * @nfds: the number of file descriptors in @fds
124 guint nfds,
127 return poll ((struct pollfd *)fds, nfds, timeout);
139 guint nfds,
206 for (f = fds; f < &fds[nfds]; ++f)
219 recursed_result = poll_rest (FALSE, handles, nhandles, fds, nfds, 0);
224 for (f = fds; f < &fds[nfds]; ++f)
245 recursed_result = poll_rest (FALSE, handles, nhandles, fds, nfds, 0);
256 guint nfds,
123 g_poll(GPollFD *fds, guint nfds, gint timeout) argument
135 poll_rest(gboolean poll_msgs, HANDLE *handles, gint nhandles, GPollFD *fds, guint nfds, gint timeout) argument
255 g_poll(GPollFD *fds, guint nfds, gint timeout) argument
375 g_poll(GPollFD *fds, guint nfds, gint timeout) argument
[all...]
H A Dgpoll.h88 guint nfds,
/external/mdnsresponder/mDNSPosix/
H A DExampleClientApp.c51 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);
H A DmDNSPosix.h71 // After calling mDNSPosixGetFDSet(), call select(nfds, &readfds, NULL, NULL, &timeout); as usual
73 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout);
H A DResponder.c711 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);
H A DIdentify.c187 int nfds = 0; local
202 mDNSPosixGetFDSet(m, &nfds, &readfds, &remain);
203 result = select(nfds, &readfds, NULL, NULL, &remain);
H A DmDNSPosix.c1411 mDNSlocal void mDNSPosixAddToFDSet(int *nfds, fd_set *readfds, int s) argument
1413 if (*nfds < s + 1) *nfds = s + 1;
1417 mDNSexport void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout) argument
1427 if (m->p->unicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket4);
1429 if (m->p->unicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, m->p->unicastSocket6);
1433 if (info->multicastSocket4 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket4);
1435 if (info->multicastSocket6 != -1) mDNSPosixAddToFDSet(nfds, readfds, info->multicastSocket6);
/external/chromium/third_party/libevent/
H A Ddevpoll.c64 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,
[all...]
H A Depoll.c66 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,
[all...]
H A Dpoll.c58 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/ipsec-tools/src/racoon/
H A Dsession.c112 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
[all...]
H A Dschedule.c333 int nfds = 0; local
340 nfds = 1;
350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
/external/dhcpcd/
H A Deloop.c285 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]
[all...]
/external/openssh/openbsd-compat/
H A Dbsd-poll.c40 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
48 for (i = 0; i < nfds; i++) {
67 for (i = 0; i < nfds; i++) {
92 for (i = 0; i < nfds; i++) {
/external/bluetooth/hcidump/src/
H A Dhcidump.c158 int nfds = 0; local
221 fds[nfds].fd = fd;
222 fds[nfds].events = POLLIN;
223 fds[nfds].revents = 0;
224 nfds++;
227 fds[nfds].fd = sock;
228 fds[nfds].events = POLLIN;
229 fds[nfds].revents = 0;
230 nfds++;
233 int i, n = poll(fds, nfds,
660 unsigned int nfds = 0; local
[all...]
/external/kernel-headers/original/linux/
H A Dpoll.h115 extern int do_sys_poll(struct pollfd __user * ufds, unsigned int nfds,
/external/strace/
H A Dstream.c303 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
[all...]
H A Ddesc.c492 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)
/external/chromium/net/tools/flip_server/
H A Depoll_server.cc651 int nfds = epoll_wait_impl(epoll_fd_, local
655 VLOG(3) << "nfds=" << nfds;
658 event_recorder_.RecordEpollWaitEvent(timeout_in_ms, nfds);
669 if (nfds > 0) {
670 for (int i = 0; i < nfds; ++i) {
675 } else if (nfds < 0) {
/external/valgrind/main/include/
H A Dpub_tool_libcfile.h90 extern Int VG_(poll) (struct vki_pollfd *fds, Int nfds, Int timeout);
/external/libusb/libusb/
H A Dio.c1780 nfds_t nfds = 0; local
1787 nfds++;
1790 fds = malloc(sizeof(*fds) * nfds);
1810 usbi_dbg("poll() %d fds with timeout in %dms", nfds, timeout_ms);
1811 r = poll(fds, nfds, timeout_ms);
1867 r = usbi_backend->handle_events(ctx, fds, nfds, r);
/external/qemu/slirp/
H A Dslirp.c214 #define UPD_NFDS(x) if (nfds < (x)) nfds = (x)
246 int nfds; local
254 nfds = *pnfds;
388 *pnfds = nfds;
/external/qemu/slirp-android/
H A Dslirp.c274 #define UPD_NFDS(x) if (nfds < (x)) nfds = (x)
306 int nfds; local
314 nfds = *pnfds;
460 proxy_manager_select_fill(&nfds, readfds, writefds, xfds);
462 *pnfds = nfds;
/external/valgrind/main/coregrind/m_syswrap/
H A Dsyswrap-aix5.c566 struct pollfd *, ufds, unsigned int, nfds, long, timeout);
589 UInt nfds, nmqids; local
598 nfds = ((UInt)ARG1) & 0xFFFF;
604 ARG2, nfds/8 /* __FD_SETSIZE/8 */ );
607 ARG3, nfds/8 /* __FD_SETSIZE/8 */ );
610 ARG4, nfds/8 /* __FD_SETSIZE/8 */ );

Completed in 519 milliseconds

12