Searched refs:nfds (Results 1 - 25 of 68) sorted by path

123

/macosx-10.10.1/Libc-1044.1.2/gen/
H A Dnftw.c44 int nfds, int ftwflags)
64 /* XXX - nfds is currently unused */
65 if (nfds < 1 || nfds > OPEN_MAX) {
259 int nfds)
266 return both_ftw(path, fn, NULL, nfds, FTW_PHYS);
271 struct FTW *), int nfds, int ftwflags)
273 return both_ftw(path, NULL, fn, nfds, ftwflags);
41 both_ftw(const char *path, int (*ofn)(const char *, const struct stat *, int), int (*nfn)(const char *, const struct stat *, int, struct FTW *), int nfds, int ftwflags) argument
258 ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int nfds) argument
270 nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int nfds, int ftwflags) argument
/macosx-10.10.1/Libinfo-459/util.subproj/
H A Drcmd.c239 int nfds; local
252 nfds = max(s, s2)+1;
253 if(nfds > FD_SETSIZE) {
263 if (select(nfds, &reads, 0, 0, 0) < 1 || !FD_ISSET(s2, &reads)){
/macosx-10.10.1/OpenLDAP-499.27/OpenLDAP/servers/slapd/
H A Ddaemon.c2619 ber_socket_t nfds; local
2724 nfds = SLAP_EVENT_MAX(tid);
2896 for ( i = 0; i < nfds; i++ ) {
/macosx-10.10.1/OpenSSH-189/openssh/openbsd-compat/
H A Dbsd-poll.c40 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
48 for (i = 0; i < nfds; i++) {
67 for (i = 0; i < nfds; i++) {
92 for (i = 0; i < nfds; i++) {
/macosx-10.10.1/SmartcardCCID-55008/libusb/libusb/libusb/
H A Dio.c1855 POLL_NFDS_TYPE nfds = 0; local
1862 nfds++;
1865 fds = malloc(sizeof(*fds) * nfds);
1887 usbi_dbg("poll() %d fds with timeout in %dms", nfds, timeout_ms);
1888 r = usbi_poll(fds, nfds, timeout_ms);
1944 r = usbi_backend->handle_events(ctx, fds, nfds, r);
H A Dlibusbi.h863 * The function is passed an array of pollfd structures (size nfds)
887 struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready);
/macosx-10.10.1/SmartcardCCID-55008/libusb/libusb/libusb/os/
H A Ddarwin_usb.c1620 static int op_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready) { argument
1629 for (i = 0; i < nfds && num_ready > 0; i++) {
H A Dlinux_usbfs.c2335 struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready)
2341 for (i = 0; i < nfds && num_ready > 0; i++) {
2334 op_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready) argument
H A Dopenbsd_usb.c484 obsd_handle_events(struct libusb_context *ctx, struct pollfd *fds, nfds_t nfds, argument
496 for (i = 0; i < nfds && num_ready > 0; i++) {
H A Dpoll_windows.c520 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout) argument
532 handles_to_wait_on = (HANDLE*) calloc(nfds+1, sizeof(HANDLE)); // +1 for fd_update
533 handle_to_index = (int*) calloc(nfds, sizeof(int));
540 for (i = 0; i < nfds; ++i) {
H A Dpoll_windows.h78 int usbi_poll(struct pollfd *fds, unsigned int nfds, int timeout);
H A Dwindows_usb.c1920 static int windows_handle_events(struct libusb_context *ctx, struct pollfd *fds, POLL_NFDS_TYPE nfds, int num_ready) argument
1929 for (i = 0; i < nfds && num_ready > 0; i++) {
/macosx-10.10.1/apache-793/httpd/modules/proxy/
H A Dproxy_util.c2319 apr_int32_t nfds; local
2326 status = apr_poll(&pfds[0], 1, &nfds, 0);
2329 if (status == APR_SUCCESS && nfds == 1 &&
/macosx-10.10.1/apr-32/apr/apr/network_io/unix/
H A Dsocket_util.c24 apr_int32_t nfds; local
36 rv = apr_poll(&pfds[0], 1, &nfds, 0);
49 else if (nfds == 1 && pfds[0].rtnevents == APR_POLLIN) {
/macosx-10.10.1/bash-94.1.2/bash-3.2/
H A Dgeneral.c431 int script_fd, nfds, ignore; local
435 nfds = getdtablesize ();
436 if (nfds <= 0)
437 nfds = 20;
438 if (nfds > HIGH_FD_MAX)
439 nfds = HIGH_FD_MAX; /* reasonable maximum */
442 nfds = maxfd;
444 for (nfds--; check_new && nfds > 3; nfds
[all...]
/macosx-10.10.1/bind9-45.101/bind9/bin/tests/virtual-time/
H A Dvtwrapper.c214 select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, argument
224 return syscall(SYS_select, nfds, rfds, wfds, xfds, timeout);
227 return syscall(SYS_select, nfds, rfds, wfds, xfds, &tv);
229 return syscall(SYS_select, nfds, rfds, wfds, xfds, timeout);
236 poll(struct pollfd fds[], nfds_t nfds, int timeout) { argument
243 return syscall(SYS_poll, fds, nfds, timeout);
249 return syscall(SYS_poll, fds, nfds, timeout);
251 return syscall(SYS_poll, fds, nfds, timeout);
/macosx-10.10.1/bind9-45.101/bind9/lib/isc/unix/
H A Dsocket.c123 int nfds; member in struct:isc_socketwait
/macosx-10.10.1/bind9-45.101/bind9/unit/atf-src/atf-run/
H A Dio.cpp244 safe_poll(struct pollfd fds[], nfds_t nfds, int timeout) argument
246 int ret = ::poll(fds, nfds, timeout);
277 impl::muxer::muxer(const int* fds, const size_t nfds, const size_t bufsize) : argument
279 m_nfds(nfds),
281 m_buffers(new std::string[nfds])
H A Dio_test.cpp342 mock_muxer(const int* fds, const size_t nfds, const size_t bufsize) : argument
343 muxer(fds, nfds, bufsize) {}
H A Dtest-program.cpp669 child_muxer(const int* fds, const size_t nfds, argument
671 muxer(fds, nfds),
/macosx-10.10.1/cups-408/cups/backend/
H A Drunloop.c35 int nfds; /* Maximum file descriptor value + 1 */ local
51 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1;
69 if (select(nfds, &input, NULL, NULL, &timeout) < 0)
144 int nfds; /* Maximum file descriptor value + 1 */ local
203 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1;
233 if (select(nfds, &input, &output, NULL, &timeout) < 0)
430 int nfds; /* Number of file descriptors */ local
464 nfds = select(CUPS_SC_FD + 1, &input, NULL, NULL, &timeout);
467 nfds = select(CUPS_SC_FD + 1, &input, NULL, NULL, NULL);
469 if (nfds <
[all...]
H A Dusb-darwin.c338 nfds; /* Number of file descriptors */ local
598 nfds = select(print_fd + 1, &input_set, NULL, NULL, timeout);
610 if (nfds < 0)
633 if (g.drain_output && !nfds && !g.print_bytes)
H A Dusb-libusb.c195 int nfds; /* Number of file descriptors */ local
392 nfds = select(print_fd + 1, &input_set, NULL, NULL, timeout);
404 if (nfds < 0)
427 if (g.drain_output && !nfds && !g.print_bytes)
/macosx-10.10.1/cups-408/cups/cups/
H A Ddest.c836 int nfds, /* Number of files responded */ local
998 nfds = poll(&pfd, 1, remaining > 250 ? 250 : remaining);
1007 nfds = select(main_fd + 1, &input, NULL, NULL, &timeout);
1010 if (nfds > 0)
1012 else if (nfds == 0)
H A Dhttp-addrlist.c78 int nfds; /* Result from select()/poll() */ local
231 nfds = poll(&pfd, 1, remaining > 250 ? 250 : remaining);
233 DEBUG_printf(("1httpAddrConnect2: poll() returned %d (%d)", nfds,
244 nfds = select(*sock + 1, &input_set, &output_set, NULL, &timeout);
246 DEBUG_printf(("1httpAddrConnect2: select() returned %d (%d)", nfds,
251 while (nfds < 0 && (WSAGetLastError() == WSAEINTR ||
254 while (nfds < 0 && (errno == EINTR || errno == EAGAIN));
257 if (nfds > 0)

Completed in 390 milliseconds

123