/external/bluetooth/bluez/src/ |
ppoll.h | 7 static inline int compat_ppoll(struct pollfd *fds, nfds_t nfds, 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/ |
gpoll.c | 62 /* 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, [all...] |
gpoll.h | 88 guint nfds,
|
/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/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/ipsec-tools/src/racoon/ |
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...] |
schedule.c | 333 int nfds = 0; local 340 nfds = 1; 350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
|
/system/core/toolbox/ |
getevent.c | 16 static int nfds; variable 165 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1)); 171 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1)); 179 printf("add device %d: %s\n", nfds, device); 199 ufds[nfds].fd = fd; 200 ufds[nfds].events = POLLIN; 201 device_names[nfds] = strdup(device); 202 nfds++; 210 for(i = 1; i < nfds; i++) { 212 int count = nfds - i - 1 [all...] |
/external/bluetooth/hcidump/src/ |
hcidump.c | 177 int nfds = 0; local 243 fds[nfds].fd = fd; 244 fds[nfds].events = POLLIN; 245 fds[nfds].revents = 0; 246 nfds++; 249 fds[nfds].fd = sock; 250 fds[nfds].events = POLLIN; 251 fds[nfds].revents = 0; 252 nfds++; 255 int i, n = poll(fds, nfds, -1) 747 int err, opt, datagram, nfds = 0; local [all...] |
/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); 366 n = select(nfds, &rfds, NULL, NULL, ptv) [all...] |
/frameworks/base/core/jni/ |
com_android_internal_os_ZygoteInit.cpp | 274 int nfds = 0; local 290 if (fd >= nfds) { 291 nfds = fd + 1; 297 err = select (nfds, &fdset, NULL, NULL, NULL);
|
/device/samsung/crespo/alsa-lib/include/ |
pcm_ioplug.h | 183 int (*poll_revents)(snd_pcm_ioplug_t *io, struct pollfd *pfd, unsigned int nfds, unsigned short *revents);
|
hwdep.h | 100 int snd_hwdep_poll_descriptors_revents(snd_hwdep_t *hwdep, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
/external/kernel-headers/original/linux/ |
poll.h | 115 extern int do_sys_poll(struct pollfd __user * ufds, unsigned int nfds,
|
/external/strace/ |
desc.c | 407 int i, j, nfds; local 426 nfds = args[0]; 427 tprintf("%d", nfds); 443 for (j = 0, sep = ""; j < nfds; j++) { 477 if ((nfds = tcp->u_rval) == 0) { 511 nfds--; 516 if (nfds == 0)
|
stream.c | 302 unsigned nfds; local 309 nfds = tcp->u_arg[1]; 310 size = sizeof(fds) * nfds; 313 if (nfds == 0 || size / sizeof(fds) != nfds || end < start) { 315 tcp->u_arg[0], nfds, tcp->u_arg[2]); 353 tprintf(", %d, ", nfds);
|
/external/chromium/net/tools/flip_server/ |
epoll_server.cc | 633 int nfds = epoll_wait_impl(epoll_fd_, local 637 VLOG(3) << "nfds=" << nfds; 640 event_recorder_.RecordEpollWaitEvent(timeout_in_ms, nfds); 651 if (nfds > 0) { 652 for (int i = 0; i < nfds; ++i) { 657 } else if (nfds < 0) {
|
/system/bluetooth/tools/ |
asocket_test.c | 79 static void print_fds(struct pollfd *ufds, nfds_t nfds) { 81 for (i=0; i<nfds; i++) 297 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { 302 print_fds(ufds, nfds); 304 ret = poll(ufds, nfds, timeout); 308 for (i=0; i<nfds; i++) {
|
socktest.c | 78 static void print_fds(struct pollfd *ufds, nfds_t nfds) { 80 for (i=0; i<nfds; i++) 311 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { 316 print_fds(ufds, nfds); 318 ret = poll(ufds, nfds, timeout); 322 for (i=0; i<nfds; i++) {
|
pipetest.c | 55 static int _poll(struct pollfd *ufds, nfds_t nfds, int timeout) { 59 ret = poll(ufds, nfds, timeout); 63 for (i=0; i<nfds; i++) {
|
/device/samsung/crespo/alsa-lib/src/control/ |
control_local.h | 54 int (*poll_revents)(snd_ctl_t *handle, struct pollfd *pfds, unsigned int nfds, unsigned short *revents);
|
control_ext.c | 392 static int snd_ctl_ext_poll_revents(snd_ctl_t *handle, struct pollfd *pfds, unsigned int nfds, unsigned short *revents) 397 return ext->callback->poll_revents(ext, pfds, nfds, revents); 398 if (nfds == 1) {
|
/external/dhcpcd/ |
client.c | 754 int i, r, nfds = 0, msecs = -1; local 764 fds[nfds].fd = state->signal_fd; 765 fds[nfds].events = POLLIN; 766 nfds++; 769 fds[nfds].fd = iface->link_fd; 770 fds[nfds].events = POLLIN; 771 nfds++; 793 fds[nfds].fd = iface->raw_fd; 794 fds[nfds].events = POLLIN; 795 nfds++ [all...] |