Home
last modified time | relevance | path

Searched refs:fdmax (Results 1 – 5 of 5) sorted by relevance

/netbsd-src/lib/libc/rpc/
H A Dsvc_fdset.c65 int fdmax; member
100 fprintf(stderr, "%p[%d] fd_set<", fds->fdset, fds->fdmax); in svc_fdset_print()
101 for (int i = 0; i <= fds->fdmax; i++) { in svc_fdset_print()
144 while (fds->fdmax >= 0 && !FD_ISSET(fds->fdmax, fds->fdset)) in svc_fdset_sanitize()
145 fds->fdmax--; in svc_fdset_sanitize()
150 svc_maxfd = __svc_fdset.fdmax; in svc_fdset_sanitize()
330 fds->fdmax = -1; in svc_fdset_zero()
346 if (fd > fds->fdmax) in svc_fdset_set()
347 fds->fdmax = fd; in svc_fdset_set()
423 return &fds->fdmax; in svc_fdset_getmax()
H A Dsvc.c214 int sock, *fdmax; in __xprt_do_unregister() local
228 fdmax = svc_fdset_getmax(); in __xprt_do_unregister()
229 if (fdmax == NULL || sock < *fdmax) in __xprt_do_unregister()
232 for ((*fdmax)--; *fdmax >= 0; (*fdmax)--) in __xprt_do_unregister()
233 if (__svc_xports[*fdmax]) in __xprt_do_unregister()
H A Dsvc_vc.c753 int i, ncleaned, *fdmax; in __svc_clean_idle() local
762 fdmax = svc_fdset_getmax(); in __svc_clean_idle()
763 if (fdmax == NULL) in __svc_clean_idle()
765 for (i = ncleaned = 0; i <= *fdmax; i++) { in __svc_clean_idle()
/netbsd-src/usr.sbin/sdpd/
H A Dserver.c105 srv->fdmax = -1; in server_init()
201 if (fd > srv->fdmax) in server_open_control()
202 srv->fdmax = fd; in server_open_control()
261 if (fd > srv->fdmax) in server_open_l2cap()
262 srv->fdmax = fd; in server_open_l2cap()
288 for (fd = 0; fd < srv->fdmax + 1; fd ++) { in server_shutdown()
313 n = select(srv->fdmax + 1, &fdset, NULL, NULL, NULL); in server_do()
319 srv->fdmax + 1, &fdset, strerror(errno), errno); in server_do()
324 for (fd = 0; fd < srv->fdmax + 1 && n > 0; fd++) { in server_do()
390 if (cfd > srv->fdmax) in server_accept_client()
[all …]
H A Dsdpd.h113 int fdmax; /* descriptor max index */ member