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

1 2 3

  /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 130 int nfds = sizeof(Fds) / sizeof(int); local
141 for (ind = 0; ind < nfds; ind++) {
dup03.c 125 int nfds = 0; variable
186 for (nfds = 1; nfds <= maxfds; nfds++)
187 if ((fd[nfds - 1] =
193 nfds--;
196 if (nfds == 0)
198 if (nfds > maxfds)
208 for (i = 0; i <= nfds; i++)
  /external/libdrm/tests/kms/
kms-steal-crtc.c 122 int nfds = STDIN_FILENO + 1; local
133 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 62 int nfds; /* Highest number used */ member in struct:pollop
115 for (i = 0; i < pop->nfds; ++i) {
127 int res, i, j, nfds; local
134 nfds = pop->nfds;
154 sizeof(struct pollfd)*nfds);
171 res = poll(event_set, nfds, msec);
186 if (res == 0 || nfds == 0)
189 i = evutil_weakrand_range_(&base->weakrand_seed, nfds);
190 for (j = 0; j < nfds; j++)
    [all...]
select.c 142 int res=0, i, j, nfds; local
168 nfds = sop->event_fds+1;
172 res = select(nfds, sop->event_readset_out,
191 i = evutil_weakrand_range_(&base->weakrand_seed, nfds);
192 for (j = 0; j < nfds; ++j) {
193 if (++i >= nfds)
  /external/strace/
desc.c 79 int nfds, fdsize; local
85 nfds = (int) args[0];
87 /* Kernel rejects negative nfds, so we don't parse it either. */
88 if (nfds < 0)
89 nfds = 0;
92 if (nfds > 1024*1024)
93 nfds = 1024*1024;
97 * Instead of args[0], use nfds for fd count, fdsize for array lengths.
99 fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize;
117 j = next_set_bit(fds, j, nfds);
    [all...]
pathtrace.c 151 int nfds = (int) args[0]; local
152 /* Kernel rejects negative nfds, so we don't parse it either. */
153 if (nfds <= 0)
156 if (nfds > 1024*1024)
157 nfds = 1024*1024;
158 unsigned int fdsize = (((nfds + 7) / 8) + current_wordsize-1) & -current_wordsize;
167 j = next_set_bit(fds, j, nfds);
312 unsigned nfds; local
316 nfds = tcp->u_arg[1];
318 if (nfds > 1024 * 1024
    [all...]
poll.c 56 const unsigned int nfds = tcp->u_arg[1]; local
59 print_array(tcp, addr, nfds, &fds, sizeof(fds),
61 tprintf(", %u, ", nfds);
68 const unsigned int nfds = tcp->u_arg[1]; local
69 const unsigned long size = sizeof(fds) * nfds;
88 if (!verbose(tcp) || !start || !nfds ||
89 size / sizeof(fds) != nfds || end < start)
  /external/strace/tests/
xselect.c 46 xselect(const kernel_ulong_t nfds,
54 F8ILL_KULONG_MASK | nfds, rs, ws, es, tv);
93 const int nfds = fds[1] + 1; local
94 if (nfds > smallset_size)
95 error_msg_and_fail("nfds[%d] > smallset_size[%d]\n",
96 nfds, smallset_size);
142 for (int i = nfds; i <= smallset_size; ++i) {
171 rc = xselect(nfds, a_rs, a_rs, a_rs, a_tv);
176 TEST_SYSCALL_STR, nfds, fds[0], fds[1],
187 TEST_SYSCALL_STR, nfds, fds[0], fds[1]
    [all...]
  /external/strace/tests-m32/
xselect.c 46 xselect(const kernel_ulong_t nfds,
54 F8ILL_KULONG_MASK | nfds, rs, ws, es, tv);
93 const int nfds = fds[1] + 1; local
94 if (nfds > smallset_size)
95 error_msg_and_fail("nfds[%d] > smallset_size[%d]\n",
96 nfds, smallset_size);
142 for (int i = nfds; i <= smallset_size; ++i) {
171 rc = xselect(nfds, a_rs, a_rs, a_rs, a_tv);
176 TEST_SYSCALL_STR, nfds, fds[0], fds[1],
187 TEST_SYSCALL_STR, nfds, fds[0], fds[1]
    [all...]
  /external/strace/tests-mx32/
xselect.c 46 xselect(const kernel_ulong_t nfds,
54 F8ILL_KULONG_MASK | nfds, rs, ws, es, tv);
93 const int nfds = fds[1] + 1; local
94 if (nfds > smallset_size)
95 error_msg_and_fail("nfds[%d] > smallset_size[%d]\n",
96 nfds, smallset_size);
142 for (int i = nfds; i <= smallset_size; ++i) {
171 rc = xselect(nfds, a_rs, a_rs, a_rs, a_tv);
176 TEST_SYSCALL_STR, nfds, fds[0], fds[1],
187 TEST_SYSCALL_STR, nfds, fds[0], fds[1]
    [all...]
  /hardware/interfaces/bluetooth/1.0/default/
async_fd_watcher.cc 150 int nfds = std::max(notification_listen_fd_, max_read_fd); local
151 int retval = select(nfds + 1, &read_fds, NULL, NULL, timeout_ptr);
  /system/bt/vendor_libs/linux/interface/
async_fd_watcher.cc 145 int nfds = std::max(notification_listen_fd_, max_read_fd); local
146 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 394 int nfds = 1; local
398 nfds++;
400 return nfds;
  /external/curl/lib/
asyn-ares.c 251 int nfds; local
279 nfds = Curl_poll(pfd, num, timeout_ms);
281 nfds = 0;
283 if(!nfds)
297 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) {

Completed in 385 milliseconds

1 2 3