/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/ltp/testcases/kernel/syscalls/dup/ |
dup03.c | 124 int nfds = 0; variable 187 for (nfds = 1; nfds <= maxfds; nfds++) 188 if ((fd[nfds - 1] = 194 nfds--; 197 if (nfds == 0) 199 if (nfds > maxfds) 209 for (i = 0; i <= nfds; i++)
|
dup02.c | 129 int nfds = sizeof(Fds) / sizeof(int); local 140 for (ind = 0; ind < nfds; ind++) {
|
/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/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...] |
/external/libcups/cups/ |
http-addrlist.c | 69 nfds, /* Number of file descriptors */ local 112 nfds = 0; 119 while (nfds > 0) 121 nfds --; 122 httpAddrClose(NULL, fds[nfds]); 128 if (addrlist && nfds < (int)(sizeof(fds) / sizeof(fds[0]))) 136 if ((fds[nfds] = (int)socket(httpAddrFamily(&(addrlist->addr)), SOCK_STREAM, 0)) < 0) 154 setsockopt(fds[nfds], SOL_SOCKET, SO_REUSEADDR, CUPS_SOCAST &val, sizeof(val)); 158 setsockopt(fds[nfds], SOL_SOCKET, SO_REUSEPORT, CUPS_SOCAST &val, sizeof(val)); 163 setsockopt(fds[nfds], SOL_SOCKET, SO_NOSIGPIPE, CUPS_SOCAST &val, sizeof(val)) [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);
|
/bionic/libc/bionic/ |
ftw.cpp | 31 int nfds, 33 // TODO: nfds is currently unused. 34 if (nfds < 1) { 117 int ftw(const char* path, int (*ftw_fn)(const char*, const struct stat*, int), int nfds) { 118 return do_nftw(path, ftw_fn, nullptr, nfds, 0); 122 int nfds, int nftw_flags) { 123 return do_nftw(path, nullptr, nftw_fn, nfds, nftw_flags);
|
/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/strace/ |
pathtrace.c | 252 int nfds; local 281 nfds = (int) args[0]; 282 /* Kernel rejects negative nfds, so we don't parse it either. */ 283 if (nfds <= 0) 286 if (nfds > 1024*1024) 287 nfds = 1024*1024; 288 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; 298 j = next_set_bit(fds, j, nfds); 315 unsigned nfds; local 319 nfds = tcp->u_arg[1] [all...] |
poll.c | 55 const unsigned int nfds = tcp->u_arg[1]; local 58 print_array(tcp, addr, nfds, &fds, sizeof(fds), 60 tprintf(", %u, ", nfds); 67 const unsigned int nfds = tcp->u_arg[1]; local 68 const unsigned long size = sizeof(fds) * nfds; 87 if (!verbose(tcp) || !start || !nfds || 88 size / sizeof(fds) != nfds || end < start)
|
desc.c | 78 int nfds, fdsize; local 84 nfds = (int) args[0]; 86 /* Kernel rejects negative nfds, so we don't parse it either. */ 87 if (nfds < 0) 88 nfds = 0; 91 if (nfds > 1024*1024) 92 nfds = 1024*1024; 96 * Instead of args[0], use nfds for fd count, fdsize for array lengths. 98 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize; 116 j = next_set_bit(fds, j, nfds); [all...] |
/external/ltp/testcases/kernel/syscalls/ppoll/ |
ppoll01.c | 47 unsigned int nfds; /* nfds ppoll parameter */ member in struct:test_case 90 * EINVAL v ('nfds' is over the 'RLIMIT_NOFILE' value) 100 .nfds = 1, 108 .nfds = 0, 119 .nfds = 0, 128 .nfds = 1, 136 .nfds = 0, 146 .nfds = 0, 158 .nfds = -1 [all...] |
/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/openssh/openbsd-compat/ |
bsd-poll.c | 41 poll(struct pollfd *fds, nfds_t nfds, int timeout) 49 for (i = 0; i < nfds; i++) { 68 for (i = 0; i < nfds; i++) { 93 for (i = 0; i < nfds; i++) {
|
/external/selinux/mcstrans/src/ |
mcstransd.c | 266 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) 271 for (ii = 0; ii < *nfds; ii++) { 276 if (ii == *nfds) { 278 (*nfds+1)*sizeof(struct pollfd)); 280 syslog(LOG_ERR, "realloc failed for %d fds", *nfds+1); 285 (*nfds)++; 296 adj_pollfds(struct pollfd **ufds, int *nfds) 301 for (ii = 0; ii < *nfds; ii++) { 308 *nfds = jj; 312 process_events(struct pollfd **ufds, int *nfds) 389 int nfds = 1; local [all...] |
/external/ltp/testcases/kernel/syscalls/pselect/ |
pselect02.c | 26 * if nfds was negative. 41 int nfds; member in struct:test_case_t 98 TEST(pselect(test->nfds, test->readfds, NULL, NULL, test->timeout,
|
/libcore/ojluni/src/main/native/ |
PollArrayWrapper.c | 42 ipoll(struct pollfd fds[], unsigned int nfds, int timeout) 53 int res = poll(fds, nfds, remaining);
|
/external/libusb/libusb/os/ |
windows_nt_common.h | 59 int windows_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready);
|
/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);
|