Searched refs:maxfd (Results 1 - 25 of 73) sorted by relevance

123

/macosx-10.10.1/OpenSSH-189/openssh/openbsd-compat/
H A Dbsd-closefrom.c71 long fd, maxfd; local
97 maxfd = sysconf(_SC_OPEN_MAX);
99 maxfd = getdtablesize();
101 if (maxfd < 0)
102 maxfd = OPEN_MAX;
104 for (fd = lowfd; fd < maxfd; fd++)
H A Dbsd-poll.c43 int saved_errno, ret, fd, maxfd = 0; local
54 maxfd = MAX(maxfd, fd);
57 nmemb = howmany(maxfd + 1 , NFDBITS);
88 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp);
/macosx-10.10.1/sudo-73/src/
H A Dclosefrom.c66 long fd, maxfd; local
74 maxfd = sysconf(_SC_OPEN_MAX);
76 maxfd = getdtablesize();
78 if (maxfd < 0)
79 maxfd = OPEN_MAX;
81 for (fd = lowfd; fd < maxfd; fd++)
/macosx-10.10.1/curl-83.1.2/curl/tests/libtest/
H A Dlib502.c56 int maxfd = -99; local
72 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd);
74 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
76 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dlib1501.c80 int maxfd = -99; local
92 multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &maxfd);
94 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
96 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dlib503.c66 int maxfd = -99; local
82 multi_fdset(m, &rd, &wr, &exc, &maxfd);
84 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
86 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib504.c64 int maxfd = -99; local
94 multi_fdset(m, &rd, &wr, &exc, &maxfd);
96 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
98 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib507.c61 int maxfd = -99; local
69 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);
71 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
73 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dlib530.c77 int maxfd = -99; local
98 multi_fdset(m, &rd, &wr, &exc, &maxfd);
100 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
102 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib533.c61 int maxfd = -99; local
94 multi_fdset(m, &rd, &wr, &exc, &maxfd);
96 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
98 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib560.c79 int maxfd = -99; local
90 multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
92 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
94 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dlib564.c59 int maxfd = -99; local
75 multi_fdset(m, &rd, &wr, &exc, &maxfd);
77 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
79 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib573.c71 int maxfd = -99; local
87 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd);
89 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
91 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dlib575.c83 int maxfd = -99; local
92 multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &maxfd);
94 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
96 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dlib1502.c89 int maxfd = -99; local
97 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);
99 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
101 select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dlib1506.c93 int maxfd = -99; local
109 multi_fdset(m, &rd, &wr, &exc, &maxfd);
111 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
113 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib525.c118 int maxfd = -99; local
134 multi_fdset(m, &rd, &wr, &exc, &maxfd);
136 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
138 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib526.c87 int maxfd = -99; local
132 multi_fdset(m, &rd, &wr, &exc, &maxfd);
134 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
136 select_test(maxfd+1, &rd, &wr, &exc, &interval);
H A Dlib536.c40 int maxfd = -99; local
60 res_multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd);
64 /* At this point, maxfd is guaranteed to be greater or equal than -1. */
66 res_select_test(maxfd+1, &fdread, &fdwrite, &fdexcep, &interval);
/macosx-10.10.1/curl-83.1.2/curl/docs/examples/
H A Dmulti-double.c69 int maxfd = -1; local
91 curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
94 function calls. On success, the value of maxfd is guaranteed to be
95 greater or equal than -1. We call select(maxfd + 1, ...), specially in
96 case of (maxfd == -1), we call select(0, ...), which is basically equal
99 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dmulti-single.c67 int maxfd = -1; local
89 curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
92 function calls. On success, the value of maxfd is guaranteed to be
93 greater or equal than -1. We call select(maxfd + 1, ...), specially in
94 case of (maxfd == -1), we call select(0, ...), which is basically equal
97 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dimap-multi.c89 int maxfd = -1; local
113 curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd);
116 function calls. On success, the value of maxfd is guaranteed to be
117 greater or equal than -1. We call select(maxfd + 1, ...), specially in
118 case of (maxfd == -1), we call select(0, ...), which is basically equal
120 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dmulti-app.c80 int maxfd = -1; local
102 curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
105 function calls. On success, the value of maxfd is guaranteed to be
106 greater or equal than -1. We call select(maxfd + 1, ...), specially in
107 case of (maxfd == -1), we call select(0, ...), which is basically equal
110 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dmulti-post.c90 int maxfd = -1; local
112 curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd);
115 function calls. On success, the value of maxfd is guaranteed to be
116 greater or equal than -1. We call select(maxfd + 1, ...), specially in
117 case of (maxfd == -1), we call select(0, ...), which is basically equal
120 rc = select(maxfd+1, &fdread, &fdwrite, &fdexcep, &timeout);
H A Dpop3-multi.c89 int maxfd = -1; local
113 curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd);
116 function calls. On success, the value of maxfd is guaranteed to be
117 greater or equal than -1. We call select(maxfd + 1, ...), specially in
118 case of (maxfd == -1), we call select(0, ...), which is basically equal
120 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout);

Completed in 151 milliseconds

123