/external/openssh/openbsd-compat/ |
D | bsd-closefrom.c | 71 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()
|
D | bsd-poll.c | 44 int saved_errno, ret, fd, maxfd = 0; in poll() local 55 maxfd = MAX(maxfd, fd); in poll() 58 nmemb = howmany(maxfd + 1 , NFDBITS); in poll() 89 ret = select(maxfd + 1, readfds, writefds, exceptfds, tvp); in poll()
|
/external/curl/lib/ |
D | select.c | 159 curl_socket_t maxfd; in Curl_socket_check() 265 maxfd = (curl_socket_t)-1; in Curl_socket_check() 272 maxfd = readfd0; in Curl_socket_check() 278 if(readfd1 > maxfd) in Curl_socket_check() 279 maxfd = readfd1; in Curl_socket_check() 287 if(writefd > maxfd) in Curl_socket_check() 288 maxfd = writefd; in Curl_socket_check() 326 r = select((int)maxfd + 1, in Curl_socket_check() 331 r = select((int)maxfd + 1, &fds_read, &fds_write, &fds_err, ptimeout); in Curl_socket_check() 400 curl_socket_t maxfd; in Curl_poll() local [all …]
|
/external/ltp/testcases/kernel/syscalls/dup/ |
D | dup06.c | 40 static int cnt_free_fds(int maxfd) in cnt_free_fds() argument 44 for (maxfd--; maxfd >= 0; maxfd--) in cnt_free_fds() 45 if (fcntl(maxfd, F_GETFD) == -1 && errno == EBADF) in cnt_free_fds()
|
/external/ltp/testcases/kernel/syscalls/dup2/ |
D | dup201.c | 74 int maxfd; variable 93 &maxfd, &goodfd, EBADF, NULL}, 99 &mystdout, &maxfd, EBADF, NULL},}; 141 for (j = fd1; j < maxfd; j++) { in main() 165 maxfd = getdtablesize(); in setup()
|
/external/libnl/src/ |
D | nf-log.c | 123 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()
|
D | nf-queue.c | 125 int nffd, rtfd, maxfd, retval; in main() local 129 maxfd = nffd = nl_socket_get_fd(nf_sock); in main() 134 if (maxfd < rtfd) in main() 135 maxfd = rtfd; in main() 138 retval = select(maxfd+1, &rfds, NULL, NULL, NULL); in main()
|
/external/curl/docs/examples/ |
D | multi-double.c | 74 int maxfd = -1; in main() local 96 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 109 if(maxfd == -1) { in main() 122 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
D | pop3-multi.c | 96 int maxfd = -1; in main() local 121 mc = curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 134 if(maxfd == -1) { in main() 147 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
D | imap-multi.c | 96 int maxfd = -1; in main() local 121 mc = curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 134 if(maxfd == -1) { in main() 147 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
D | multi-formadd.c | 94 int maxfd = -1; in main() local 116 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 129 if(maxfd == -1) { in main() 142 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
D | multi-post.c | 90 int maxfd = -1; in main() local 112 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 125 if(maxfd == -1) { in main() 138 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
D | multi-app.c | 85 int maxfd = -1; in main() local 107 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 120 if(maxfd == -1) { in main() 133 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
D | smtp-multi.c | 163 int maxfd = -1; in main() local 188 mc = curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 201 if(maxfd == -1) { in main() 214 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
D | multi-debugcallback.c | 161 int maxfd = -1; in main() local 183 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 196 if(maxfd == -1) { in main() 209 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|
/external/curl/tests/libtest/ |
D | lib1531.c | 74 int maxfd = -1; in test() local 96 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 109 if(maxfd == -1) { in test() 122 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
D | lib502.c | 56 int maxfd = -99; in test() local 72 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 76 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
D | lib564.c | 59 int maxfd = -99; in test() local 75 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 79 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
D | lib560.c | 79 int maxfd = -99; in test() local 90 multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 94 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
D | lib507.c | 61 int maxfd = -99; in test() local 69 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 73 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
D | lib503.c | 66 int maxfd = -99; in test() local 82 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 86 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
D | lib575.c | 83 int maxfd = -99; in test() local 92 multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 96 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
D | lib1501.c | 65 int maxfd = -99; in test() local 77 multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 81 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
D | lib533.c | 61 int maxfd = -99; in test() local 94 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 98 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
/external/openssh/ |
D | ssh-keyscan.c | 73 int maxfd; variable 74 #define MAXCON (maxfd - 10) 410 if (s >= maxfd) in conalloc() 437 if (s >= maxfd || fdcon[s].c_status == CS_UNUSED) in confree() 630 while (select(maxfd, r, NULL, e, &seltime) == -1 && in conloop() 634 for (i = 0; i < maxfd; i++) { in conloop() 799 maxfd = fdlim_get(1); in main() 800 if (maxfd < 0) in main() 802 if (maxfd > MAXMAXFD) in main() 803 maxfd = MAXMAXFD; in main() [all …]
|