HomeSort by relevance Sort by last modified time
    Searched defs:nfds (Results 26 - 50 of 66) sorted by null

12 3

  /external/libvncserver/libvncserver/
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)
  /external/linux-kselftest/tools/testing/selftests/x86/
test_syscall_vdso.c 172 int nfds; variable
185 nfds = 42;
259 " mov nfds, %%ebx\n" /* ebx arg1 */
272 " cmp nfds, %%ebx\n" /* ebx arg1 */
  /external/ltp/testcases/kernel/syscalls/connect/
connect01.c 272 int nfds, cc, fd; local
278 nfds = sfd + 1;
286 if (select(nfds, &rfds, NULL, NULL,
297 nfds = MAX(nfds, newfd + 1);
300 for (fd = 0; fd < nfds; ++fd)
  /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/ltp/testcases/kernel/syscalls/recv/
recv01.c 269 int nfds, cc, fd; local
274 nfds = sfd + 1;
282 if (select(nfds, &rfds, NULL, NULL,
293 nfds = MAX(nfds, newfd + 1);
298 for (fd = 0; fd < nfds; ++fd)
  /external/ltp/testcases/kernel/syscalls/recvfrom/
recvfrom01.c 298 int nfds, cc, fd; local
303 nfds = sfd + 1;
311 if (select(nfds, &rfds, NULL, NULL,
322 nfds = MAX(nfds, newfd + 1);
327 for (fd = 0; fd < nfds; ++fd)
  /external/ltp/testcases/kernel/syscalls/send/
send01.c 211 int nfds, cc, fd; local
217 nfds = sfd + 1;
225 if (select(nfds, &rfds, NULL, NULL, NULL) < 0)
235 nfds = MAX(nfds, newfd + 1);
238 for (fd = 0; fd < nfds; ++fd) {
  /external/ltp/testcases/kernel/syscalls/sendmsg/
sendmsg01.c 486 int nfds, cc, fd; local
492 nfds = MAX(sfd + 1, ufd + 1);
500 if (select(nfds, &rfds, NULL, NULL, NULL) < 0)
510 nfds = MAX(nfds, newfd + 1);
521 for (fd = 0; fd < nfds; ++fd) {
  /external/ltp/testcases/kernel/syscalls/sendto/
sendto01.c 282 int nfds, cc, fd; local
287 nfds = sfd + 1;
295 if (select(nfds, &rfds, NULL, NULL, NULL) < 0 && errno != EINTR)
305 nfds = MAX(nfds, newfd + 1);
308 for (fd = 0; fd < nfds; ++fd) {
  /external/mdnsresponder/mDNSPosix/
Identify.c 187 int nfds = 0; local
202 mDNSPosixGetFDSet(m, &nfds, &readfds, &remain);
203 result = select(nfds, &readfds, NULL, NULL, &remain);
Responder.c 715 int nfds = 0; local
732 mDNSPosixGetFDSet(&mDNSStorage, &nfds, &readfds, &timeout);
735 verbosedebugf("select(%d, %d.%06d)", nfds, timeout.tv_sec, timeout.tv_usec);
736 result = select(nfds, &readfds, NULL, NULL, &timeout);
  /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/strace/
msghdr.c 63 const unsigned int nfds = data_len / sizeof(*fds); local
68 for (i = 0; i < nfds; ++i) {
  /external/v4l2_codec2/vda/
v4l2_device.cc 151 nfds_t nfds; local
156 nfds = 1;
160 pollfds[nfds].fd = device_fd_.get();
161 pollfds[nfds].events = POLLIN | POLLOUT | POLLERR | POLLPRI;
162 pollfd = nfds;
163 nfds++;
166 if (HANDLE_EINTR(poll(pollfds, nfds, -1)) == -1) {
  /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...]
  /system/bt/vendor_libs/test_vendor_lib/src/
async_manager.cc 195 int nfds = notification_listen_fd_; local
202 nfds = std::max(fdp.first, nfds);
205 return nfds;
243 int nfds = setUpFileDescriptorSet(read_fds); local
246 int retval = select(nfds + 1, &read_fds, NULL, NULL, NULL);
  /device/generic/goldfish/fingerprint/
fingerprint.c 727 int nfds = poll(&pfd, 1, 5000); local
728 if (nfds < 0) {
733 if (!nfds) {
738 // assert(nfds == 1)
  /external/c-ares/
adig.c 201 int status, nfds, count; local
388 nfds = ares_fds(channel, &read_fds, &write_fds);
389 if (nfds == 0)
392 count = select(nfds, &read_fds, &write_fds, NULL, tvp);
  /external/ltp/testcases/kernel/syscalls/recvmsg/
recvmsg01.c 434 int nfds, cc, fd; local
440 nfds = MAX(sfd + 1, ufd + 1);
448 if (select(nfds, &rfds, NULL, NULL,
463 nfds = MAX(nfds, newfd + 1);
475 nfds = MAX(nfds, newfd + 1);
478 for (fd = 0; fd < nfds; ++fd)
  /external/ltp/testcases/network/lib6/
asapi_01.c 384 int sd, nfds, maxfd, cc; local
413 while ((nfds = select(maxfd + 1, &rset, 0, 0, &tv)) >= 0) {
414 if (nfds < 0) {
418 } else if (nfds == 0) {
asapi_03.c 299 int nfds, cc; local
315 nfds = select(sr + 1, &rfds, 0, 0, &tv);
316 if (nfds < 0) {
322 if (nfds == 0) {
327 /* else, nfds == 1 */
  /external/toybox/toys/pending/
syslogd.c 409 int nfds, retval, last_len=0; local
439 nfds = 0;
455 nfds++;
457 if (!nfds) {
  /hardware/qcom/audio/legacy/libalsa-intf/
aplay.c 174 int nfds = 1; local
313 poll(pfd, nfds, TIMEOUT_INFINITE);
425 poll(pfd, nfds, TIMEOUT_INFINITE);
arec.c 182 int nfds = 1; local
304 poll(pfd, nfds, TIMEOUT_INFINITE);
  /system/core/toolbox/
getevent.c 38 static int nfds; variable
362 new_ufds = realloc(ufds, sizeof(ufds[0]) * (nfds + 1));
368 new_device_names = realloc(device_names, sizeof(device_names[0]) * (nfds + 1));
376 printf("add device %d: %s\n", nfds, device);
403 ufds[nfds].fd = fd;
404 ufds[nfds].events = POLLIN;
405 device_names[nfds] = strdup(device);
406 nfds++;
414 for(i = 1; i < nfds; i++) {
416 int count = nfds - i - 1
    [all...]

Completed in 1178 milliseconds

12 3