Searched refs:nfds (Results 1 - 25 of 65) sorted by relevance

123

/macosx-10.9.5/dcerpc-58/dcerpc/libdcethread/
H A Ddcethread_select.c89 dcethread_select(int nfds, fd_set *readfds, fd_set *writefds, argument
92 DCETHREAD_SYSCALL(int, select(nfds, readfds, writefds, exceptfds, timeout));
/macosx-10.9.5/apache-786.1/httpd/srclib/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.9.5/apr-30/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.9.5/curl-78.94.1/curl/tests/libtest/
H A Dfirst.c33 int select_wrapper(int nfds, fd_set *rd, fd_set *wr, fd_set *exc, argument
36 if(nfds < 0) {
46 if(!nfds) {
51 return select(nfds, rd, wr, exc, tv);
/macosx-10.9.5/mDNSResponder-522.92.1/mDNSPosix/
H A DExampleClientApp.c51 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);
H A DmDNSPosix.h68 // After calling mDNSPosixGetFDSet(), call select(nfds, &readfds, NULL, NULL, &timeout); as usual
70 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout);
/macosx-10.9.5/xnu-2422.115.4/libsyscall/wrappers/
H A Dselect-base.c41 * select stub, return error if nfds > FD_SETSIZE
49 select(int nfds, fd_set * __restrict readfds, fd_set * __restrict writefds, argument
72 if (nfds > FD_SETSIZE) {
78 return __select(nfds, readfds, writefds, exceptfds, timeout);
80 return __select_nocancel(nfds, readfds, writefds, exceptfds, timeout);
/macosx-10.9.5/Libc-997.90.3/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.9.5/cups-372.4/cups/backend/
H A Drunloop.c46 int nfds; /* Maximum file descriptor value + 1 */ local
62 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1;
80 if (select(nfds, &input, NULL, NULL, &timeout) < 0)
155 int nfds; /* Maximum file descriptor value + 1 */ local
214 nfds = (print_fd > device_fd ? print_fd : device_fd) + 1;
244 if (select(nfds, &input, &output, NULL, &timeout) < 0)
441 int nfds; /* Number of file descriptors */ local
475 nfds = select(CUPS_SC_FD + 1, &input, NULL, NULL, &timeout);
478 nfds = select(CUPS_SC_FD + 1, &input, NULL, NULL, NULL);
480 if (nfds <
[all...]
/macosx-10.9.5/OpenSSH-186/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.9.5/cups-372.4/cups/scheduler/
H A Dselect.c421 int nfds; /* Number of file descriptors */
436 nfds = kevent(cupsd_kqueue_fd, NULL, 0, cupsd_kqueue_events, MaxFDs,
440 nfds = kevent(cupsd_kqueue_fd, NULL, 0, cupsd_kqueue_events, MaxFDs, NULL);
444 for (i = nfds, event = cupsd_kqueue_events; i > 0; i --, event ++)
478 nfds = epoll_wait(cupsd_epoll_fd, cupsd_epoll_events, MaxFDs,
481 nfds = epoll_wait(cupsd_epoll_fd, cupsd_epoll_events, MaxFDs, -1);
483 if (nfds < 0 && errno != EINTR)
490 for (i = nfds, event = cupsd_epoll_events; i > 0; i --, event ++)
572 nfds = poll(cupsd_pollfds, count, timeout * 1000);
574 nfds
[all...]
/macosx-10.9.5/bash-92/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.9.5/bind9-45.100/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.9.5/remote_cmds-41.90.1/rsh.tproj/
H A Drsh.c254 int nfds, srval; local
269 nfds = rem + 1;
270 if (select(nfds, 0, &rembits, 0, 0) < 0) {
302 nfds = MAX(rfd2+1, rem+1);
306 srval = select(nfds, &ready, 0, 0, &tvtimeout);
308 srval = select(nfds, &ready, 0, 0, 0);
/macosx-10.9.5/smb-697.95.1/lib/smb/
H A Dnb_net.c501 int nfds = 0; local
551 if (conn->so > nfds) /* save max fd for select call */
552 nfds = conn->so;
566 while (nfds && (totalWaitTime < kMaxTimeToWait)) {
569 error = select(nfds + 1, NULL, &writefds, NULL, &tv);
586 nfds = 0;
606 if (conn->so > nfds)
607 nfds = conn->so;
632 if (conn->so > nfds) /* save max fd for select call */
633 nfds
[all...]
/macosx-10.9.5/bind9-45.100/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])
/macosx-10.9.5/cups-372.4/cups/cups/
H A Dsidechannel.c125 int nfds; /* Number of file descriptors */ local
153 while ((nfds = poll(&pfd, 1,
165 while ((nfds = select(CUPS_SC_FD + 1, &input_set, NULL, NULL,
172 if (nfds < 1)
175 *status = nfds==0 ? CUPS_SC_STATUS_TIMEOUT : CUPS_SC_STATUS_IO_ERROR;
H A Dhttp-addrlist.c78 int nfds; /* Result from select()/poll() */ local
236 nfds = poll(&pfd, 1, remaining > 250 ? 250 : remaining);
238 DEBUG_printf(("1httpAddrConnect2: poll() returned %d (%d)", nfds,
249 nfds = select(*sock + 1, &input_set, &output_set, NULL, &timeout);
251 DEBUG_printf(("1httpAddrConnect2: select() returned %d (%d)", nfds,
256 while (nfds < 0 && (WSAGetLastError() == WSAEINTR ||
259 while (nfds < 0 && (errno == EINTR || errno == EAGAIN));
262 if (nfds > 0)
/macosx-10.9.5/curl-78.94.1/curl/lib/
H A Dselect.c350 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms) argument
368 for(i = 0; i < nfds; i++) {
397 r = poll(ufds, nfds, pending_ms);
415 for(i = 0; i < nfds; i++) {
431 for(i = 0; i < nfds; i++) {
479 for(i = 0; i < nfds; i++) {
H A Dselect.h82 int Curl_poll(struct pollfd ufds[], unsigned int nfds, int timeout_ms);
H A Dmulti.c801 unsigned int nfds = 0; local
817 ++nfds;
821 ++nfds;
832 curlfds = nfds; /* number of internal file descriptors */
833 nfds += extra_nfds; /* add the externally provided ones */
835 if(nfds) {
836 ufds = malloc(nfds * sizeof(struct pollfd));
840 nfds = 0;
855 ufds[nfds].fd = sockbunch[i];
856 ufds[nfds]
[all...]
H A Dasyn-ares.c256 int nfds; local
284 nfds = Curl_poll(pfd, num, timeout_ms);
286 nfds = 0;
288 if(!nfds)
302 return nfds;
/macosx-10.9.5/zsh-60/zsh/Src/
H A Dprototypes.h85 int select _((int nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval *timeout));
96 extern int select _((int nfds, fd_set * readfds, fd_set * writefds, fd_set * exceptfds, struct timeval *timeout));
/macosx-10.9.5/passwordserver_sasl-170/cyrus_sasl/sample/
H A Dserver.c330 int nfds, fd = -1; local
338 nfds = select(maxfd + 1, &readfds, 0, 0, 0);
339 if (nfds <= 0) {
340 if (nfds < 0 && errno != EINTR)
/macosx-10.9.5/KerberosHelper-148/Source/
H A DLKDCHelper-lookup.c59 int dns_sd_fd, nfds, result; local
66 nfds = dns_sd_fd + 1;
77 result = select(nfds, &readfds, NULL, NULL, &tv);

Completed in 222 milliseconds

123