/third_party/musl/libc-test/src/regression/ |
H A D | rlimit-open-files.c | 14 int fd, maxfd = 0; in main() local 26 if (fd > maxfd) maxfd = fd; in main() 29 if (maxfd+1 > lim) in main() 30 t_error("more fds are open than rlimit allows: fd=%d, limit=%d\n", maxfd, lim); in main()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | poll-posix.c | 64 int maxfd = 0; in pa_poll() local 99 if (f->fd > maxfd && (f->events & (POLLIN|POLLOUT|POLLPRI))) in pa_poll() 100 maxfd = f->fd; in pa_poll() 107 ready = select(maxfd + 1, &rset, &wset, &xset, (timeout == -1 ? NULL : &tv)); in pa_poll() 111 maxfd = -1; in pa_poll() 150 if (f->fd > maxfd && (f->events & (POLLIN|POLLOUT|POLLPRI))) in pa_poll() 151 maxfd = f->fd; in pa_poll() 165 if (f->fd > maxfd && (f->events & (POLLIN|POLLOUT|POLLPRI))) { in pa_poll() 166 maxfd = f->fd; in pa_poll() 182 ready = select(maxfd in pa_poll() [all...] |
/third_party/ltp/testcases/kernel/syscalls/dup2/ |
H A D | dup201.c | 23 static int maxfd, mystdout; variable 32 {&maxfd, &goodfd}, 34 {&mystdout, &maxfd}, 40 maxfd = getdtablesize(); in setup()
|
/third_party/ltp/testcases/kernel/syscalls/dup/ |
H A 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()
|
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
H A D | mhd2spdy.c | 74 int maxfd = -1; in run_everything() local 153 &maxfd)) in run_everything() 157 assert(-1 != maxfd); in run_everything() 164 if(maxfd_s > maxfd) in run_everything() 165 maxfd = maxfd_s; in run_everything() 171 ret = select(maxfd+1, &rs, &ws, &es, &timeout); in run_everything()
|
H A D | spdy_event_loop.c | 364 int maxfd = -1; in main() local 389 maxfd = SPDY_get_fdset (daemon, in main() 396 rc = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in main() 449 maxfd = SPDY_get_fdset (daemon2, in main() 454 rc = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in main()
|
/third_party/curl/tests/libtest/ |
H A D | lib1531.c | 77 int maxfd = -1; in test() local 99 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 106 /* On success the value of maxfd is guaranteed to be >= -1. We call in test() 107 select(maxfd + 1, ...); specially in case of (maxfd == -1) there are in test() 112 if(maxfd == -1) { in test() 125 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib502.c | 58 int maxfd = -99; in test() local 74 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 76 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 78 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib560.c | 81 int maxfd = -99; in test() local 92 multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 94 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 96 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib564.c | 61 int maxfd = -99; in test() local 77 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 79 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 81 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
H A D | lib573.c | 73 int maxfd = -99; in test() local 89 multi_fdset(m, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 91 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 93 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib575.c | 85 int maxfd = -99; in test() local 94 multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 96 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 98 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib1501.c | 67 int maxfd = -99; in test() local 79 multi_fdset(mhandle, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 81 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 83 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib504.c | 66 int maxfd = -99; in test() local 96 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 98 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 100 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
H A D | lib503.c | 68 int maxfd = -99; in test() local 84 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 86 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 88 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
H A D | lib507.c | 63 int maxfd = -99; in test() local 71 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 73 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 75 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib533.c | 63 int maxfd = -99; in test() local 96 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 98 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 100 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
H A D | lib1507.c | 94 int maxfd = -1; in test() local 116 curl_multi_fdset(mcurl, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 119 function calls. On success, the value of maxfd is guaranteed to be in test() 120 greater or equal than -1. We call select(maxfd + 1, ...), specially in in test() 121 case of (maxfd == -1), we call select(0, ...), which is basically equal in test() 124 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib1506.c | 97 int maxfd = -99; in test() local 113 multi_fdset(m, &rd, &wr, &exc, &maxfd); in test() 115 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 117 select_test(maxfd + 1, &rd, &wr, &exc, &interval); in test()
|
H A D | lib1502.c | 103 int maxfd = -99; in test() local 111 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 113 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 115 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in test()
|
H A D | lib591.c | 95 int maxfd = -99; in test() local 108 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 110 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 131 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &interval); in test()
|
H A D | lib597.c | 76 int maxfd = -99; in test() local 89 multi_fdset(multi, &fdread, &fdwrite, &fdexcep, &maxfd); in test() 91 /* At this point, maxfd is guaranteed to be greater or equal than -1. */ in test() 113 select_test(maxfd + 1, &fdread, &fdwrite, &fdexcep, &interval); in test()
|
/third_party/libuv/test/ |
H A D | test-emfile.c | 34 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()
|
/third_party/curl/lib/ |
H A D | select.c | 124 static int our_select(curl_socket_t maxfd, /* highest socket number */ in our_select() argument 158 return select((int)maxfd + 1, in our_select() 163 return select((int)maxfd + 1, fds_read, fds_write, fds_err, ptimeout); in our_select() 280 curl_socket_t maxfd; in Curl_poll() 339 maxfd = (curl_socket_t)-1; in Curl_poll() 348 if(ufds[i].fd > maxfd) in Curl_poll() 349 maxfd = ufds[i].fd; in Curl_poll() 361 about the fact that maxfd is computed incorrectly with WinSock (since in Curl_poll() 365 r = our_select(maxfd, &fds_read, &fds_write, &fds_err, timeout_ms); in Curl_poll()
|
/third_party/curl/docs/examples/ |
H A D | multi-legacy.c | 87 int maxfd = -1; in main() local 109 mc = curl_multi_fdset(multi_handle, &fdread, &fdwrite, &fdexcep, &maxfd); in main() 116 /* On success the value of maxfd is guaranteed to be >= -1. We call in main() 117 select(maxfd + 1, ...); specially in case of (maxfd == -1) there are in main() 122 if(maxfd == -1) { in main() 135 rc = select(maxfd + 1, &fdread, &fdwrite, &fdexcep, &timeout); in main()
|