Home
last modified time | relevance | path

Searched refs:maxfd (Results 1 – 25 of 31) sorted by relevance

12

/netbsd-src/lib/libc/rpc/
H A Dsvc_run.c73 int *maxfd, fdsize; in __weak_alias() local
86 maxfd = svc_fdset_getmax(); in __weak_alias()
87 if (maxfd == NULL) { in __weak_alias()
105 switch (select(*maxfd + 1, readfds, NULL, NULL, &timeout)) { in __weak_alias()
136 int *maxfd, fdsize, i; in svc_run_poll() local
147 maxfd = svc_pollfd_getmax(); in svc_run_poll()
148 if (maxfd == NULL) { in svc_run_poll()
162 memcpy(pfd, svc_pollfd_get(), *maxfd * sizeof(*pfd)); in svc_run_poll()
166 switch ((i = poll(pfd, (nfds_t)*maxfd, 30 * 1000))) { in svc_run_poll()
/netbsd-src/external/gpl2/xcvs/dist/lib/
H A Dsunos57-select.c75 int maxfd = -1; in rpl_select() local
128 maxfd = MAX (maxfd, fd); in rpl_select()
144 maxfd = MAX (maxfd, fd); in rpl_select()
148 if (maxfd >= 0) in rpl_select()
159 ret = select (maxfd + 1, readfds, writefds, exceptfds, &ztime); in rpl_select()
175 ret = select (maxfd + 1, readfds, writefds, exceptfds, timeout); in rpl_select()
/netbsd-src/usr.sbin/altq/altqd/
H A Daltqd.c117 int i, c, maxfd, rval, qpsock, fd; in main() local
217 maxfd = 0; in main()
227 maxfd = MAX(maxfd, fd + 1); in main()
231 maxfd = MAX(maxfd, qpsock + 1); in main()
252 if (select(maxfd, &rfds, NULL, NULL, NULL) < 0) { in main()
288 maxfd = MAX(maxfd, newsock + 1); in main()
/netbsd-src/external/mit/libuv/dist/test/
H A Dtest-emfile.c34 static const int maxfd = 31; variable
55 limits.rlim_cur = limits.rlim_max = maxfd + 1; in TEST_IMPL()
76 close(maxfd); in TEST_IMPL()
92 while (first_fd < maxfd) { in TEST_IMPL()
/netbsd-src/usr.sbin/mopd/common/
H A Dloop-linux2.c99 int bufsize = 1100, maxfd =0; in Loop() local
122 if (ii->fd > maxfd) in Loop()
123 maxfd = ii->fd; in Loop()
128 if (select(maxfd + 1, &listeners, (fd_set *) 0, in Loop()
/netbsd-src/regress/sys/kern/select/
H A Dselect.c87 int maxfd = -1; in f() local
107 if (fd > maxfd) { in f()
108 maxfd = fd; in f()
121 ret = select(maxfd + 1, &set, NULL, NULL, &to); in f()
142 for (fd = 0; fd <= maxfd; fd++) { in f()
/netbsd-src/external/bsd/ipf/dist/samples/
H A Dproxy.c237 int i, n, maxfd; local
240 maxfd = in;
241 if (out > maxfd)
242 maxfd = out;
243 if (net > maxfd)
244 maxfd = net;
267 n = select(maxfd + 1, &rd, &wr, NULL, NULL);
/netbsd-src/external/bsd/nvi/dist/ex/
H A Dex_script.c337 sscr_check_input(SCR *sp, fd_set *fdset, int maxfd) in sscr_check_input() argument
350 if (sp->script->sh_master > maxfd) in sscr_check_input()
351 maxfd = sp->script->sh_master; in sscr_check_input()
353 switch (select(maxfd + 1, &rdfd, NULL, NULL, NULL)) { in sscr_check_input()
383 int maxfd; in sscr_input() local
387 loop: maxfd = 0; in sscr_input()
396 if (sp->script->sh_master > maxfd) in sscr_input()
397 maxfd = sp->script->sh_master; in sscr_input()
401 switch (select(maxfd + 1, &rdfd, NULL, NULL, &poll)) { in sscr_input()
/netbsd-src/external/bsd/unbound/dist/util/
H A Dmini_event.c194 if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) { in handle_select()
206 for(i=0; i<base->maxfd+1; i++) { in handle_select()
311 if(ev->ev_fd > ev->ev_base->maxfd) in event_add()
312 ev->ev_base->maxfd = ev->ev_fd; in event_add()
343 if(ev->ev_fd == ev->ev_base->maxfd) { in event_del()
344 int i = ev->ev_base->maxfd - 1; in event_del()
350 ev->ev_base->maxfd = i; in event_del()
H A Dmini_event.h109 int maxfd; member
/netbsd-src/external/bsd/ipf/dist/tools/
H A Dipfsyncd.c226 int maxfd; in do_io() local
234 maxfd = nfd; in do_io()
235 if (lfd > maxfd) in do_io()
236 maxfd = lfd; in do_io()
237 debug(2, "nfd %d lfd %d maxfd %d\n", nfd, lfd, maxfd); in do_io()
250 n = select(maxfd + 1, &rd, NULL, NULL, NULL); in do_io()
/netbsd-src/crypto/external/bsd/heimdal/dist/kpasswd/
H A Dkpasswdd.c722 int maxfd; in doit() local
756 maxfd = -1; in doit()
777 maxfd = max(maxfd, sockets[i]); in doit()
778 if (maxfd >= FD_SETSIZE) in doit()
785 maxfd = 0; in doit()
792 if (maxfd == -1) in doit()
801 retx = select(maxfd + 1, &fdset, NULL, NULL, NULL); in doit()
/netbsd-src/external/bsd/nvi/dist/cl/
H A Dcl_read.c163 int maxfd, nr, term_reset; in cl_read() local
241 maxfd = STDIN_FILENO; in cl_read()
242 if (sscr_check_input(sp, &rdfd, maxfd)) in cl_read()
/netbsd-src/usr.sbin/faithd/
H A Dtcp.c201 int atmark, error, maxfd; in relay() local
215 maxfd = (s_rcv > s_snd) ? s_rcv : s_snd; in relay()
223 error = select(maxfd + 1, &readfds, &writefds, &exceptfds, &tv); in relay()
/netbsd-src/external/bsd/nsd/dist/
H A Dmini_event.c212 if((ret = select(base->maxfd+1, &r, &w, NULL, wait)) == -1) { in handle_select()
224 for(i=0; i<base->maxfd+1; i++) { in handle_select()
361 if(ev->ev_fd > ev->ev_base->maxfd) in event_add()
362 ev->ev_base->maxfd = ev->ev_fd; in event_add()
H A Dmini_event.h94 int maxfd; member
/netbsd-src/external/bsd/nvi/dist/ip/
H A Dip_read.c219 int maxfd; in ip_read() local
257 maxfd = fd; in ip_read()
258 if (sscr_check_input(sp, &rdfd, maxfd)) in ip_read()
/netbsd-src/external/bsd/dhcpcd/dist/src/
H A Deloop.c1121 int maxfd, n; in eloop_run_pselect() local
1127 maxfd = 0; in eloop_run_pselect()
1133 if (e->fd > maxfd) in eloop_run_pselect()
1134 maxfd = e->fd; in eloop_run_pselect()
1138 if (e->fd > maxfd) in eloop_run_pselect()
1139 maxfd = e->fd; in eloop_run_pselect()
1144 n = pselect(maxfd + 1, &read_fds, &write_fds, NULL, ts, sigmask); in eloop_run_pselect()
/netbsd-src/external/bsd/unbound/dist/testcode/
H A Dperf.c114 int maxfd; member
238 if(info->io[i].fd > info->maxfd) in perfsetup()
239 info->maxfd = info->io[i].fd; in perfsetup()
379 num = select(info->maxfd+1, &rset, NULL, NULL, &timeout); in perfselect()
/netbsd-src/usr.bin/mail/
H A Dlex.c96 int maxfd; in fds_count() local
100 maxfd = fcntl(0, F_MAXFD); in fds_count()
101 if (maxfd == -1) { in fds_count()
107 for (fd = 0; fd <= maxfd; fd++) { in fds_count()
/netbsd-src/usr.bin/make/
H A Dmeta.c1654 int outfd, metafd, maxfd, nfds; in meta_compat_parent() local
1666 maxfd = -1; in meta_compat_parent()
1667 if (outfd > maxfd) in meta_compat_parent()
1668 maxfd = outfd; in meta_compat_parent()
1669 if (metafd > maxfd) in meta_compat_parent()
1670 maxfd = metafd; in meta_compat_parent()
1680 nfds = select(maxfd + 1, &readfds, NULL, NULL, NULL); in meta_compat_parent()
/netbsd-src/external/gpl3/gdb/dist/readline/readline/examples/rlfe/
H A Drlfe.c385 int maxfd; in main() local
575 maxfd = in_from_inferior_fd > in_from_tty_fd ? in_from_inferior_fd in main()
583 num = select(maxfd+1, &in_set, NULL, NULL, NULL); in main()
/netbsd-src/external/gpl3/gdb.old/dist/readline/readline/examples/rlfe/
H A Drlfe.c385 int maxfd; in main() local
575 maxfd = in_from_inferior_fd > in_from_tty_fd ? in_from_inferior_fd in main()
583 num = select(maxfd+1, &in_set, NULL, NULL, NULL); in main()
/netbsd-src/external/mpl/dhcp/bind/dist/lib/isc/unix/
H A Dsocket.c427 int maxfd; member
1843 if (thread->maxfd == fd) { in socketclose()
1846 thread->maxfd = 0; in socketclose()
1852 thread->maxfd = i; in socketclose()
1858 if (thread->maxfd < thread->pipe_fds[0]) { in socketclose()
1859 thread->maxfd = thread->pipe_fds[0]; in socketclose()
2554 if (thread->maxfd < sock->fd) { in socket_create()
2555 thread->maxfd = sock->fd; in socket_create()
2630 if (thread->maxfd < sock->fd) { in isc_socket_open()
2631 thread->maxfd = sock->fd; in isc_socket_open()
[all …]
/netbsd-src/usr.sbin/rarpd/
H A Drarpd.c440 int bufsize, maxfd = 0; local
463 if (ii->ii_fd > maxfd)
464 maxfd = ii->ii_fd;
468 if (select(maxfd + 1, &listeners, (struct fd_set *) 0,

12