/external/c-ares/ |
ares_fds.c | 30 ares_socket_t nfds; local 36 nfds = 0; 46 if (server->udp_socket >= nfds) 47 nfds = server->udp_socket + 1; 58 if (server->tcp_socket >= nfds) 59 nfds = server->tcp_socket + 1; 62 return (int)nfds;
|
ahost.c | 68 int status, nfds, c, addr_family = AF_INET; local 147 nfds = ares_fds(channel, &read_fds, &write_fds); 148 if (nfds == 0) 151 select(nfds, &read_fds, &write_fds, NULL, tvp);
|
/external/fio/os/windows/posix/include/sys/ |
poll.h | 13 int poll(struct pollfd fds[], nfds_t nfds, int timeout);
|
/external/dhcpcd-6.8.2/compat/ |
pselect.c | 39 pollts(struct pollfd *__restrict fds, nfds_t nfds, 48 for (n = 0; n < nfds; n++) { 58 for (n = 0; n < nfds; n++) {
|
pollts.c | 42 pollts(struct pollfd *__restrict fds, nfds_t nfds, 58 r = poll(fds, nfds, timeout);
|
/external/strace/ |
poll.c | 50 const unsigned int nfds = tcp->u_arg[1]; local 51 const unsigned long size = sizeof(fds) * nfds; 56 if (!verbose(tcp) || !start || !nfds || 57 size / sizeof(fds) != nfds || end < start) { 59 tprintf(", %u, ", nfds); 73 tprintf(", %u, ", nfds); 92 tprintf("], %u, ", nfds); 101 const unsigned int nfds = tcp->u_arg[1]; local 102 const unsigned long size = sizeof(fds) * nfds; 118 if (!verbose(tcp) || !start || !nfds || [all...] |
pathtrace.c | 249 int nfds; local 266 nfds = (int) args[0]; 267 /* Kernel rejects negative nfds, so we don't parse it either. */ 268 if (nfds <= 0) 271 if (nfds > 1024*1024) 272 nfds = 1024*1024; 273 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; 284 j = next_set_bit(fds, j, nfds); 301 unsigned nfds; local 305 nfds = tcp->u_arg[1] [all...] |
desc.c | 84 int nfds, fdsize; local 90 nfds = (int) args[0]; 92 /* Kernel rejects negative nfds, so we don't parse it either. */ 93 if (nfds < 0) 94 nfds = 0; 97 if (nfds > 1024*1024) 98 nfds = 1024*1024; 102 * Instead of args[0], use nfds for fd count, fdsize for array lengths. 104 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; 122 j = next_set_bit(fds, j, nfds); [all...] |
/external/libevent/ |
poll.c | 58 int nfds; /* Highest number used */ member in struct:pollop 109 for (i = 0; i < pop->nfds; ++i) { 121 int res, i, j, nfds; local 128 nfds = pop->nfds; 148 sizeof(struct pollfd)*nfds); 165 res = poll(event_set, nfds, msec); 180 if (res == 0 || nfds == 0) 183 i = random() % nfds; 184 for (j = 0; j < nfds; j++) [all...] |
select.c | 131 int res=0, i, j, nfds; local 157 nfds = sop->event_fds+1; 161 res = select(nfds, sop->event_readset_out, 180 i = random() % nfds; 181 for (j = 0; j < nfds; ++j) { 182 if (++i >= nfds)
|
/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);
|
/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/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...] |
/bionic/libc/upstream-netbsd/lib/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/curl/tests/libtest/ |
first.c | 45 int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc, 48 if(nfds < 0) { 58 if(!nfds) { 63 return select(nfds, rd, wr, exc, tv);
|
/external/selinux/policycoreutils/mcstrans/src/ |
mcstransd.c | 267 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) 272 for (ii = 0; ii < *nfds; ii++) { 277 if (ii == *nfds) { 279 (*nfds+1)*sizeof(struct pollfd)); 281 syslog(LOG_ERR, "realloc failed for %d fds", *nfds+1); 286 (*nfds)++; 297 adj_pollfds(struct pollfd **ufds, int *nfds) 302 for (ii = 0; ii < *nfds; ii++) { 309 *nfds = jj; 313 process_events(struct pollfd **ufds, int *nfds) 390 int nfds = 1; local [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))
|
/external/toybox/lib/ |
net.c | 46 int xpoll(struct pollfd *fds, int nfds, int timeout) 51 if (0>(i = poll(fds, nfds, timeout))) {
|
/external/avahi/avahi-common/ |
simple-watch.h | 63 typedef int (*AvahiPollFunc)(struct pollfd *ufds, unsigned int nfds, int timeout, void *userdata);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/sysroot/usr/include/pulse/ |
mainloop.h | 123 typedef int (*pa_poll_func)(struct pollfd *ufds, unsigned long nfds, int timeout, void*userdata);
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/pulse/ |
mainloop.h | 126 typedef int (*pa_poll_func)(struct pollfd *ufds, unsigned long nfds, int timeout, void*userdata);
|
/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...] |
/libcore/ojluni/src/main/native/ |
PollArrayWrapper.c | 46 ipoll(struct pollfd fds[], unsigned int nfds, int timeout) 57 int res = poll(fds, nfds, remaining);
|