Searched defs:nfds (Results 1 - 25 of 74) sorted by relevance

123

/external/c-ares/
H A Dares_fds.c30 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;
H A Dahost.c68 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/dhcpcd-6.8.2/compat/
H A Dpollts.c42 pollts(struct pollfd *__restrict fds, nfds_t nfds, argument
58 r = poll(fds, nfds, timeout);
H A Dpselect.c39 pollts(struct pollfd *__restrict fds, nfds_t nfds, argument
48 for (n = 0; n < nfds; n++) {
58 for (n = 0; n < nfds; n++) {
/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);
/external/libdrm/tests/kms/
H A Dkms-steal-crtc.c118 int nfds = STDIN_FILENO + 1; local
129 err = select(nfds, &fds, NULL, NULL, &timeout);
/external/ltp/testcases/kernel/syscalls/dup/
H A Ddup02.c129 int nfds = sizeof(Fds) / sizeof(int); local
140 for (ind = 0; ind < nfds; ind++) {
H A Ddup03.c124 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++)
/external/openssh/openbsd-compat/
H A Dbsd-poll.c43 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
51 for (i = 0; i < nfds; i++) {
70 for (i = 0; i < nfds; i++) {
95 for (i = 0; i < nfds; i++) {
/external/ltp/testcases/kernel/syscalls/pselect/
H A Dpselect02.c26 * if nfds was negative.
41 int nfds; member in struct:test_case_t
98 TEST(pselect(test->nfds, test->readfds, NULL, NULL, test->timeout,
/external/strace/
H A Ddesc.c77 int nfds, fdsize; local
83 nfds = (int) args[0];
85 /* Kernel rejects negative nfds, so we don't parse it either. */
86 if (nfds < 0)
87 nfds = 0;
90 if (nfds > 1024*1024)
91 nfds = 1024*1024;
95 * Instead of args[0], use nfds for fd count, fdsize for array lengths.
97 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize;
115 j = next_set_bit(fds, j, nfds);
[all...]
H A Dpoll.c54 const unsigned int nfds = tcp->u_arg[1]; local
57 print_array(tcp, addr, nfds, &fds, sizeof(fds),
59 tprintf(", %u, ", nfds);
66 const unsigned int nfds = tcp->u_arg[1]; local
67 const unsigned long size = sizeof(fds) * nfds;
86 if (!verbose(tcp) || !start || !nfds ||
87 size / sizeof(fds) != nfds || end < start)
H A Dpathtrace.c250 int nfds; local
279 nfds = (int) args[0];
280 /* Kernel rejects negative nfds, so we don't parse it either. */
281 if (nfds <= 0)
284 if (nfds > 1024*1024)
285 nfds = 1024*1024;
286 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize;
296 j = next_set_bit(fds, j, nfds);
313 unsigned nfds; local
317 nfds
[all...]
/external/curl/lib/
H A Dselect.c386 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) argument
404 for(i = 0; i < nfds; i++) {
433 r = poll(ufds, nfds, pending_ms);
453 for(i = 0; i < nfds; i++) {
469 for(i = 0; i < nfds; i++) {
541 for(i = 0; i < nfds; i++) {
/external/curl/tests/libtest/
H A Dfirst.c45 int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc, argument
48 if(nfds < 0) {
58 if(!nfds) {
63 return select(nfds, rd, wr, exc, tv);
/external/ipsec-tools/src/racoon/
H A Dschedule.c333 int nfds = 0; local
340 nfds = 1;
350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
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...]
/external/libcups/cups/
H A Dsidechannel.c110 int nfds; /* Number of file descriptors */ local
138 while ((nfds = poll(&pfd, 1,
150 while ((nfds = select(CUPS_SC_FD + 1, &input_set, NULL, NULL,
157 if (nfds < 1)
160 *status = nfds==0 ? CUPS_SC_STATUS_TIMEOUT : CUPS_SC_STATUS_IO_ERROR;
H A Dhttp-addrlist.c69 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_SOCKE
[all...]
/external/libevent/
H A Dpoll.c58 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;
[all...]
H A Dselect.c131 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/toybox/lib/
H A Dnet.c48 int xpoll(struct pollfd *fds, int nfds, int timeout) argument
53 if (0>(i = poll(fds, nfds, timeout))) {
/external/dhcpcd-6.8.2/
H A Deloop.c92 struct pollfd *nfds; local
152 nfds = realloc(ctx->fds, sizeof(*ctx->fds) * (ctx->fds_len+5));
153 if (nfds == NULL)
156 ctx->fds = nfds;
/external/libusb/libusb/os/
H A Dpoll_windows.c509 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout) argument
521 handles_to_wait_on = (HANDLE*) calloc(nfds+1, sizeof(HANDLE)); // +1 for fd_update
522 handle_to_index = (int*) calloc(nfds, sizeof(int));
529 for (i = 0; i < nfds; ++i) {
/external/libvncserver/libvncserver/
H A Dhttpd.c169 int nfds; local
195 nfds = select(max(rfbScreen->httpListen6Sock, max(rfbScreen->httpSock,rfbScreen->httpListenSock)) + 1, &fds, NULL, NULL, &tv);
196 if (nfds == 0) {
199 if (nfds < 0) {

Completed in 583 milliseconds

123