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

123

/netbsd-6-1-5-RELEASE/sys/compat/linux/common/
H A Dlinux_oldselect.h42 int nfds; member in struct:linux_oldselect
H A Dlinux_oldselect.c70 return linux_select1(l, retval, ls.nfds, ls.readfds, ls.writefds,
/netbsd-6-1-5-RELEASE/lib/libc/compat/sys/
H A Dcompat_select.c64 pollts(struct pollfd * __restrict fds, nfds_t nfds,
74 return __pollts50(fds, nfds, timp, sigmask);
78 select(int nfds, fd_set * __restrict readfds, fd_set * __restrict writefds, argument
87 return __select50(nfds, readfds, writefds, exceptfds, timp);
91 pselect(int nfds, fd_set * __restrict readfds, fd_set * __restrict writefds, argument
101 return __pselect50(nfds, readfds, writefds, exceptfds, timp, sigmask);
/netbsd-6-1-5-RELEASE/external/gpl2/xcvs/dist/lib/
H A Dsunos57-select.c53 rpl_select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, argument
59 if (nfds < 1 || nfds > FD_SETSIZE)
80 for (fd = 0; fd < nfds; fd++)
182 * respectively. For each file descriptor less than nfds, the
203 for (fd = 0; fd < nfds; fd++)
222 ret = select (nfds, readfds, writefds, exceptfds, timeout);
/netbsd-6-1-5-RELEASE/external/bsd/libevent/dist/
H A Dpoll.c59 int nfds; /* Size of event_* */ member in struct:pollop
127 for (i = 0; i < pop->nfds; ++i) {
139 int res, i, j, msec = -1, nfds; local
147 nfds = pop->nfds;
148 res = poll(pop->event_set, nfds, msec);
164 if (res == 0 || nfds == 0)
167 i = random() % nfds;
168 for (j = 0; j < nfds; j++) {
171 if (++i == nfds)
[all...]
/netbsd-6-1-5-RELEASE/lib/libc/gen/
H A Dftw.c39 int nfds)
47 /* XXX - nfds is currently unused */
48 if (nfds < 1 || nfds > OPEN_MAX) {
38 ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int nfds) argument
H A Dnftw.c40 struct FTW *), int nfds, int ftwflags)
49 /* XXX - nfds is currently unused */
50 if (nfds < 1 || nfds > OPEN_MAX) {
39 nftw(const char *path, int (*fn)(const char *, const struct stat *, int, struct FTW *), int nfds, int ftwflags) argument
/netbsd-6-1-5-RELEASE/external/bsd/dhcpcd/dist/
H A Deloop.c285 nfds_t nfds, i; local
321 nfds = 0;
323 nfds++;
324 if (msecs == -1 && nfds == 0) {
328 if (nfds > fds_len) {
331 fds_len = nfds + 5;
334 nfds = 0;
336 fds[nfds].fd = e->fd;
337 fds[nfds].events = POLLIN;
338 fds[nfds]
[all...]
/netbsd-6-1-5-RELEASE/sys/arch/zaurus/stand/zboot/
H A Dunixcons.c129 int nfds, n; local
137 nfds = 1;
140 n = uselect(nfds, &fdset, NULL, NULL, &tv);
146 for (fd = 0; fd < nfds; fd++) {
/netbsd-6-1-5-RELEASE/external/apache2/mDNSResponder/dist/mDNSPosix/
H A DmDNSPosix.h131 // After calling mDNSPosixGetFDSet(), call select(nfds, &readfds, NULL, NULL, &timeout); as usual
133 extern void mDNSPosixGetFDSet(mDNS *m, int *nfds, fd_set *readfds, struct timeval *timeout);
/netbsd-6-1-5-RELEASE/crypto/dist/ipsec-tools/src/racoon/
H A Devt.h141 #define evt_get_fdmask(nfds, fdset) nfds
H A Dsession.c124 static int nfds = 0; variable
138 if (fd > nfds)
139 nfds = fd;
183 nfds = 0;
303 error = select(nfds + 1, &active_mask, NULL, NULL, timeout);
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/bin/tests/virtual-time/
H A Dvtwrapper.c216 select(int nfds, fd_set *rfds, fd_set *wfds, fd_set *xfds, argument
226 return syscall(SYS_select, nfds, rfds, wfds, xfds, timeout);
229 return syscall(SYS_select, nfds, rfds, wfds, xfds, &tv);
231 return syscall(SYS_select, nfds, rfds, wfds, xfds, timeout);
238 poll(struct pollfd fds[], nfds_t nfds, int timeout) { argument
245 return syscall(SYS_poll, fds, nfds, timeout);
251 return syscall(SYS_poll, fds, nfds, timeout);
253 return syscall(SYS_poll, fds, nfds, timeout);
/netbsd-6-1-5-RELEASE/usr.sbin/lpr/lpd/
H A Dlpd.c149 int lfd, errs, i, f, nfds; local
285 socks = socksetup(PF_UNSPEC, options, port, &nfds);
316 rv = poll(socks, nfds, INFTIM);
323 for (i = 0; i < nfds; i++)
343 for (i = 0; i < nfds; i++)
707 socksetup(int af, int options, const char *port, int *nfds) argument
715 *nfds = 0;
740 socks[*nfds].fd = s;
741 socks[*nfds].events = POLLIN;
742 (*nfds)
[all...]
/netbsd-6-1-5-RELEASE/external/bsd/atf/dist/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])
/netbsd-6-1-5-RELEASE/external/bsd/bind/dist/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])
/netbsd-6-1-5-RELEASE/external/gpl3/gdb/dist/sim/arm/
H A Dcommunicate.c35 extern int nfds;
61 i = select (nfds, &readfds, (fd_set *) 0, (fd_set *) 0, &timeout);
124 i = select (nfds, &readfds,
H A Dmain.c73 int nfds; variable
158 nfds = getdtablesize ();
/netbsd-6-1-5-RELEASE/usr.bin/rsh/
H A Drsh.c341 int nr, nw, nfds; local
408 nfds = 2;
410 if (poll(fdp, nfds, INFTIM) == -1) {
416 nfds--;
421 nfds--;
425 while (nfds);
/netbsd-6-1-5-RELEASE/lib/librumphijack/
H A Dhijack.c1483 REALSELECT(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, argument
1497 * nb5 poll() silently refuses nfds > process_maxopen_fds.
1502 for (i = 0, realnfds = 0; i < nfds; i++) {
1525 for (i = 0, j = 0; i < nfds; i++) {
1567 for (i = 0; i < nfds; i++) {
1605 checkpoll(struct pollfd *fds, nfds_t nfds, int *hostcall, int *rumpcall) argument
1609 for (i = 0; i < nfds; i++) {
1621 adjustpoll(struct pollfd *fds, nfds_t nfds, int (*fdadj)(int)) argument
1625 for (i = 0; i < nfds; i++) {
1636 nfds_t nfds; member in struct:pollarg
1661 REALPOLLTS(struct pollfd *fds, nfds_t nfds, const struct timespec *ts, const sigset_t *sigmask) argument
1826 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
[all...]
/netbsd-6-1-5-RELEASE/sys/kern/
H A Duipc_usrreq.c1243 const size_t nfds = (cm->cmsg_len - CMSG_ALIGN(sizeof(*cm))) / local
1246 int * const fdp = kmem_alloc(nfds * sizeof(int), KM_SLEEP);
1251 for (size_t i = 0; i < nfds; i++) {
1278 for (size_t i = 0; i < nfds; i++) {
1307 for (size_t i = 0; i < nfds; i++) {
1334 cm->cmsg_len = CMSG_LEN(nfds * sizeof(int));
1335 rights->m_len = CMSG_SPACE(nfds * sizeof(int));
1340 for (size_t i = 0; i < nfds; i++)
1358 kmem_free(fdp, nfds * sizeof(int));
1371 int nfds, erro local
[all...]
/netbsd-6-1-5-RELEASE/usr.sbin/mrouted/
H A Dmain.c105 int nfds, n, i; local
258 nfds = igmp_socket + 1;
263 if (ihandlers[i].fd >= nfds)
264 nfds = ihandlers[i].fd + 1;
308 snmp_select_info(&nfds, &rfds, tvp, &block);
311 if ((n = select(nfds, &rfds, NULL, NULL, tvp)) < 0)
313 if ((n = select(nfds, &rfds, NULL, NULL, NULL)) < 0)
/netbsd-6-1-5-RELEASE/lib/libpthread/
H A Dpthread_cancelstub.c405 poll(struct pollfd *fds, nfds_t nfds, int timeout) argument
412 retval = _sys_poll(fds, nfds, timeout);
419 __pollts50(struct pollfd *fds, nfds_t nfds, const struct timespec *ts, argument
427 retval = _sys___pollts50(fds, nfds, ts, sigmask);
448 __pselect50(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, argument
456 retval = _sys___pselect50(nfds, readfds, writefds, exceptfds, timeout,
506 __select50(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, argument
514 retval = _sys___select50(nfds, readfds, writefds, exceptfds, timeout);
/netbsd-6-1-5-RELEASE/usr.sbin/rbootd/
H A Drbootd.c88 int i, nfds = getdtablesize(); local
90 for (i = 0; i < nfds; i++)
/netbsd-6-1-5-RELEASE/sys/compat/linux32/common/
H A Dlinux32_types.h91 int nfds; member in struct:linux32_oldselect

Completed in 372 milliseconds

123