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

1 2 3 4 5 6 7

  /external/chromium_org/native_client_sdk/src/libraries/nacl_io/syscalls/
poll.c 8 int poll(struct pollfd *fds, nfds_t nfds, int timeout) {
9 return ki_poll(fds, nfds, timeout);
select.c 8 int select(int nfds, fd_set* readfds, fd_set* writefds,
10 return ki_select(nfds, readfds, writefds, exceptfds, timeout);
  /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/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...]
  /bionic/libc/upstream-netbsd/libc/gen/
ftw.c 39 int nfds)
47 /* XXX - nfds is currently unused */
48 if (nfds < 1 || nfds > OPEN_MAX) {
nftw.c 40 struct FTW *), int nfds, int ftwflags)
49 /* XXX - nfds is currently unused */
50 if (nfds < 1 || nfds > OPEN_MAX) {
  /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...]
  /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/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);
mDNSPosix.h 71 // 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);
  /external/openssh/openbsd-compat/
bsd-poll.c 40 poll(struct pollfd *fds, nfds_t nfds, int timeout)
48 for (i = 0; i < nfds; i++) {
67 for (i = 0; i < nfds; i++) {
92 for (i = 0; i < nfds; i++) {
  /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...]
  /device/generic/goldfish/opengl/system/OpenglSystemCommon/
gralloc_cb.h 25 #define CB_HANDLE_NUM_INTS(nfds) (int)((sizeof(cb_handle_t) - (nfds)*sizeof(int)) / sizeof(int))
  /development/ndk/sources/android/libportable/arch-mips/
poll.c 109 int WRAP(poll)(struct pollfd *fds, nfds_t nfds, long timeout)
114 for (i = 0; i < nfds; i++)
117 ret = REAL(poll)(fds, nfds, timeout);
119 for (i = 0; i < nfds; i++) {
  /external/chromium_org/third_party/npapi/npspy/extern/nspr/md/
_freebsd.h 254 #define _MD_SELECT(nfds,r,w,e,tv) syscall(SYS_select,nfds,r,w,e,tv)
258 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
_hpux.h 245 #define _MD_SELECT(nfds,r,w,e,tv) syscall(SYS_select,nfds,r,w,e,tv)
248 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
_openbsd.h 227 #define _MD_SELECT(nfds,r,w,e,tv) syscall(SYS_select,nfds,r,w,e,tv)
229 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
_sunos4.h 230 #define _MD_SELECT(nfds,r,w,e,tv) syscall(SYS_select,nfds,r,w,e,tv)
231 #define _MD_POLL(fds,nfds,timeout) syscall(SYS_poll,fds,nfds,timeout)
  /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);
  /system/core/toolbox/
getevent.c 18 static int nfds; variable
338 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
344 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1));
352 printf("add device %d: %s\n", nfds, device);
379 ufds[nfds].fd = fd;
380 ufds[nfds].events = POLLIN;
381 device_names[nfds] = strdup(device);
382 nfds++;
390 for(i = 1; i < nfds; i++) {
392 int count = nfds - i - 1
    [all...]

Completed in 1529 milliseconds

1 2 3 4 5 6 7