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

1 2 3

  /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);
acountry.c 206 int nfds; local
210 nfds = ares_fds(channel, &read_fds, &write_fds);
211 if (nfds == 0)
214 select(nfds, &read_fds, &write_fds, NULL, tvp);
  /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);
  /external/ltp/testcases/kernel/syscalls/dup/
dup02.c 129 int nfds = sizeof(Fds) / sizeof(int); local
140 for (ind = 0; ind < nfds; ind++) {
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++)
  /external/libdrm/tests/kms/
kms-steal-crtc.c 118 int nfds = STDIN_FILENO + 1; local
129 err = select(nfds, &fds, NULL, NULL, &timeout);
  /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,
  /device/linaro/hikey/bluetooth/
async_fd_watcher.cc 134 int nfds = std::max(notification_listen_fd_, max_read_fd); local
135 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr);
  /external/libcups/cups/
sidechannel.c 110 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;
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/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/strace/
desc.c 77 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...]
pathtrace.c 250 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 = tcp->u_arg[1]
    [all...]
poll.c 54 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)
  /hardware/interfaces/bluetooth/1.0/default/
async_fd_watcher.cc 147 int nfds = std::max(notification_listen_fd_, max_read_fd); local
148 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr);
  /external/dhcpcd-6.8.2/
eloop.c 92 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/ipsec-tools/src/racoon/
schedule.c 333 int nfds = 0; local
340 nfds = 1;
350 error = select(nfds, &rfds, (fd_set *)0, (fd_set *)0, timeout);
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/ltp/testcases/network/lib6/
asapi_02.c 120 int maxfd, nfds; local
143 nfds = select(maxfd + 1, &readfds, 0, 0, &tv);
144 if (nfds == 0)
146 if (nfds < 0) {
  /device/google/contexthub/util/nanotool/
androidcontexthub.cpp 374 int nfds = 1; local
378 nfds++;
380 return nfds;
  /external/curl/lib/
asyn-ares.c 253 int nfds; local
281 nfds = Curl_poll(pfd, num, timeout_ms);
283 nfds = 0;
285 if(!nfds)
299 return nfds;
  /external/libvncserver/libvncserver/
httpd.c 169 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) {
sockets.c 285 int nfds; local
304 nfds = select(rfbScreen->maxFd + 1, &fds, NULL, NULL /* &fds */, &tv);
305 if (nfds == 0) {
318 if (nfds < 0) {
327 result += nfds;
335 if (--nfds == 0)
345 if (--nfds == 0)
381 if (--nfds == 0)

Completed in 661 milliseconds

1 2 3