Home
last modified time | relevance | path

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

/external/openssh/openbsd-compat/
Dbsd-closefrom.c71 long fd, maxfd; in closefrom() local
97 maxfd = sysconf(_SC_OPEN_MAX); in closefrom()
99 maxfd = getdtablesize(); in closefrom()
101 if (maxfd < 0) in closefrom()
102 maxfd = OPEN_MAX; in closefrom()
104 for (fd = lowfd; fd < maxfd; fd++) in closefrom()
Dbsd-poll.c46 int saved_errno, ret, fd, maxfd = 0; in poll() local
57 maxfd = MAX(maxfd, fd); in poll()
60 nmemb = howmany(maxfd + 1 , NFDBITS); in poll()
91 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp); in poll()
/external/libnl/src/
Dnf-log.c123 int nffd, rtfd, maxfd, retval; in main() local
127 maxfd = nffd = nl_socket_get_fd(nf_sock); in main()
132 if (maxfd < rtfd) in main()
133 maxfd = rtfd; in main()
136 retval = select(maxfd+1, &rfds, NULL, NULL, NULL); in main()
Dnf-queue.c148 int nffd, rtfd, maxfd, retval; in main() local
152 maxfd = nffd = nl_socket_get_fd(nf_sock); in main()
157 if (maxfd < rtfd) in main()
158 maxfd = rtfd; in main()
161 retval = select(maxfd+1, &rfds, NULL, NULL, NULL); in main()
/external/bison/lib/
Dspawn_faction_adddup2.c40 int maxfd = __sysconf (_SC_OPEN_MAX); in posix_spawn_file_actions_adddup2() local
43 if (fd < 0 || newfd < 0 || fd >= maxfd || newfd >= maxfd) in posix_spawn_file_actions_adddup2()
Dspawn_faction_addclose.c40 int maxfd = __sysconf (_SC_OPEN_MAX); in posix_spawn_file_actions_addclose() local
43 if (fd < 0 || fd >= maxfd) in posix_spawn_file_actions_addclose()
Dspawn_faction_addopen.c41 int maxfd = __sysconf (_SC_OPEN_MAX); in posix_spawn_file_actions_addopen() local
44 if (fd < 0 || fd >= maxfd) in posix_spawn_file_actions_addopen()
/external/openssh/
Dssh-keyscan.c72 int maxfd; variable
73 #define MAXCON (maxfd - 10)
364 if (s >= maxfd) in conalloc()
390 if (s >= maxfd || fdcon[s].c_status == CS_UNUSED) in confree()
583 while (select(maxfd, r, NULL, e, &seltime) == -1 && in conloop()
587 for (i = 0; i < maxfd; i++) { in conloop()
744 maxfd = fdlim_get(1); in main()
745 if (maxfd < 0) in main()
747 if (maxfd > MAXMAXFD) in main()
748 maxfd = MAXMAXFD; in main()
[all …]
Dsshd.c1222 int i, j, ret, maxfd; local
1232 maxfd = 0;
1234 if (listen_socks[i] > maxfd)
1235 maxfd = listen_socks[i];
1250 fdset = (fd_set *)xcalloc(howmany(maxfd + 1, NFDBITS),
1260 ret = select(maxfd+1, fdset, NULL, NULL, NULL);
1334 if (maxfd < startup_p[0])
1335 maxfd = startup_p[0];
/external/dnsmasq/src/
Ddnsmasq.c578 int maxfd = -1; in main() local
589 if ((t.tv_sec = set_dns_listeners(now, &rset, &maxfd)) != 0) in main()
595 set_android_listeners(&rset, &maxfd); in main()
608 set_dbus_listeners(&maxfd, &rset, &wset, &eset); in main()
615 bump_maxfd(daemon->dhcpfd, &maxfd); in main()
621 bump_maxfd(daemon->netlinkfd, &maxfd); in main()
625 bump_maxfd(piperead, &maxfd); in main()
634 bump_maxfd(daemon->helperfd, &maxfd); in main()
644 set_log_writer(&wset, &maxfd); in main()
646 if (select(maxfd+1, &rset, &wset, &eset, tp) < 0) in main()
[all …]
/external/lldb/test/pexpect-2.4/examples/
Dcgishell.cgi205 maxfd = resource.getrlimit(resource.RLIMIT_NOFILE)[1]
206 if maxfd == resource.RLIM_INFINITY:
207 maxfd = MAXFD
210 for fd in xrange(0, maxfd):
/external/libvncserver/x11vnc/
Denc.h1675 int maxfd = -1; in enc_connections() local
1806 if (listen_fd > maxfd) { in enc_connections()
1807 maxfd = listen_fd; in enc_connections()
1812 if (listen_fd6 > maxfd) { in enc_connections()
1813 maxfd = listen_fd6; in enc_connections()
1816 if (select(maxfd+1, &fds, NULL, NULL, NULL) <= 0) { in enc_connections()
/external/toybox/toys/pending/
Ddhcpd.c1128 int maxfd = (sigfd.rd > gstate.listensock)? sigfd.rd : gstate.listensock; in dhcpd_main() local
1130 retval = select(maxfd + 1, &rfds, NULL, NULL, (gconfig.auto_time?&tv:NULL)); in dhcpd_main()
Ddhcp.c1320 int maxfd = (sigfd.rd > state->sockfd)? sigfd.rd : state->sockfd; in dhcp_main() local
1323 if((retval = select(maxfd + 1, &rfds, NULL, NULL, &tv)) < 0) { in dhcp_main()