Searched defs:nfds (Results 26 - 50 of 74) sorted by relevance

123

/external/linux-kselftest/tools/testing/selftests/x86/
H A Dtest_syscall_vdso.c172 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/
H A Dconnect01.c272 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/
H A Dppoll01.c46 unsigned int nfds; /* nfds ppoll parameter */ member in struct:test_case
89 * EINVAL v ('nfds' is over the 'RLIMIT_NOFILE' value)
99 .nfds = 1,
107 .nfds = 0,
118 .nfds = 0,
127 .nfds = 1,
135 .nfds = 0,
145 .nfds = 0,
157 .nfds
[all...]
/external/ltp/testcases/kernel/syscalls/recv/
H A Drecv01.c269 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/
H A Drecvfrom01.c298 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/
H A Dsend01.c211 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/sendto/
H A Dsendto01.c282 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/ltp/testcases/network/lib6/
H A Dasapi_02.c120 int maxfd, nfds; local
143 nfds = select(maxfd + 1, &readfds, 0, 0, &tv);
144 if (nfds == 0)
146 if (nfds < 0) {
H A Dasapi_01.c384 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) {
/external/c-ares/
H A Dacountry.c206 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);
H A Dadig.c201 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/curl/lib/
H A Dasyn-ares.c253 int nfds; local
281 nfds = Curl_poll(pfd, num, timeout_ms);
283 nfds = 0;
285 if(!nfds)
299 return nfds;
/external/libusb/libusb/os/
H A Dwindows_nt_common.c539 int windows_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready) argument
549 for (i = 0; i < nfds && num_ready > 0; i++) {
H A Dwince_usb.c761 struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready)
771 for (i = 0; i < nfds && num_ready > 0; i++) {
759 wince_handle_events( struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready) argument
/external/libvncserver/libvncserver/
H A Dsockets.c285 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/ltp/testcases/kernel/syscalls/recvmsg/
H A Drecvmsg01.c434 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/kernel/syscalls/sendmsg/
H A Dsendmsg01.c486 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/mdnsresponder/mDNSPosix/
H A DIdentify.c187 int nfds = 0; local
202 mDNSPosixGetFDSet(m, &nfds, &readfds, &remain);
203 result = select(nfds, &readfds, NULL, NULL, &remain);
H A DResponder.c715 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/
H A Dmcstransd.c266 add_pollfd(struct pollfd **ufds, int *nfds, int connfd) argument
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) argument
301 for (ii = 0; ii < *nfds; ii++) {
308 *nfds = jj;
312 process_events(struct pollfd **ufds, int *nfds) argument
389 int nfds = 1; local
[all...]
/external/strace/
H A Dmsghdr.c63 const unsigned int nfds = data_len / sizeof(*fds); local
68 for (i = 0; i < nfds; ++i) {
/external/strace/tests/
H A Dmsg_control.c205 test_scm_rights3(struct msghdr *const mh, void *const page, const size_t nfds) argument
207 const size_t len = CMSG_SPACE(sizeof(int) * nfds);
210 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * nfds);
215 for (i = 0; i < nfds; ++i)
/external/strace/tests-m32/
H A Dmsg_control.c205 test_scm_rights3(struct msghdr *const mh, void *const page, const size_t nfds) argument
207 const size_t len = CMSG_SPACE(sizeof(int) * nfds);
210 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * nfds);
215 for (i = 0; i < nfds; ++i)
/external/strace/tests-mx32/
H A Dmsg_control.c205 test_scm_rights3(struct msghdr *const mh, void *const page, const size_t nfds) argument
207 const size_t len = CMSG_SPACE(sizeof(int) * nfds);
210 cmsg->cmsg_len = CMSG_LEN(sizeof(int) * nfds);
215 for (i = 0; i < nfds; ++i)
/external/libusb/libusb/
H A Dio.c2075 POLL_NFDS_TYPE nfds = 0; local
2140 nfds = ctx->pollfds_cnt;
2150 usbi_dbg("poll() %d fds with timeout in %dms", nfds, timeout_ms);
2151 r = usbi_poll(fds, nfds, timeout_ms);
2259 r = usbi_backend->handle_events(ctx, fds + internal_nfds, nfds - internal_nfds, r);

Completed in 3186 milliseconds

123