/third_party/pulseaudio/src/pulsecore/ |
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 + 1, &rset, &wset, &xset, (timeout == -1 ? NULL : &tv)); in pa_poll()
|
D | poll-win32.c | 358 int maxfd, rc; in pa_poll() local 413 maxfd = -1; in pa_poll() 432 if (pfd[i].fd >= maxfd in pa_poll() 437 maxfd = pfd[i].fd; in pa_poll() 438 if (maxfd > FD_SETSIZE) in pa_poll() 447 rc = select (maxfd + 1, &rfds, &wfds, &efds, ptv); in pa_poll()
|
D | core-util.c | 2574 int maxfd, fd; in pa_close_allv() local 2641 maxfd = (int) rl.rlim_max; in pa_close_allv() 2643 maxfd = sysconf(_SC_OPEN_MAX); in pa_close_allv() 2645 for (fd = 3; fd < maxfd; fd++) { in pa_close_allv()
|
/third_party/musl/libc-test/src/regression/ |
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/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()
|
/third_party/ltp/testcases/kernel/syscalls/dup2/ |
D | dup201.c | 23 static int maxfd, mystdout; variable 32 {&maxfd, &goodfd}, 34 {&mystdout, &maxfd}, 40 maxfd = getdtablesize(); in setup()
|
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
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()
|
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()
|
D | spdy_response_with_callback.c | 163 int maxfd = -1; in main() local 208 maxfd = SPDY_get_fdset (daemon, in main() 213 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in main()
|
D | spdy_fileserver.c | 277 int maxfd = -1; in main() local 325 maxfd = SPDY_get_fdset (daemon, in main() 330 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in main()
|
D | mhd2spdy_spdy.c | 993 int maxfd = 0; in spdy_get_selectfdset() local 1016 if(maxfd < glob_opt.spdy_connection->fd) maxfd = glob_opt.spdy_connection->fd; in spdy_get_selectfdset() 1043 if(maxfd < connection->fd) maxfd = connection->fd; in spdy_get_selectfdset() 1051 return maxfd; in spdy_get_selectfdset()
|
/third_party/libuv/test/ |
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/skia/third_party/externals/microhttpd/src/microhttpd/ |
D | test_daemon.c | 93 MHD_socket maxfd; in testExternalRun() local 105 maxfd = 0; in testExternalRun() 107 if (MHD_YES != MHD_get_fdset (d, &rs, &rs, &rs, &maxfd)) in testExternalRun()
|
/third_party/skia/third_party/externals/microhttpd/src/testspdy/ |
D | test_session_timeout.c | 130 int maxfd = -1; in parentproc() local 216 maxfd = SPDY_get_fdset (daemon, in parentproc() 221 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in parentproc()
|
D | test_misc.c | 210 int maxfd = -1; in parentproc() local 250 maxfd = SPDY_get_fdset (daemon, in parentproc() 255 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in parentproc()
|
D | test_request_response_with_callback.c | 173 int maxfd = -1; in parentproc() local 213 maxfd = SPDY_get_fdset (daemon, in parentproc() 218 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in parentproc()
|
D | test_new_connection.c | 914 int maxfd = -1; in parentproc() local 947 maxfd = SPDY_get_fdset (daemon, in parentproc() 952 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in parentproc()
|
D | test_notls.c | 877 int maxfd = -1; in parentproc() local 913 maxfd = SPDY_get_fdset (daemon, in parentproc() 918 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in parentproc()
|
D | test_request_response.c | 936 int maxfd = -1; in parentproc() local 969 maxfd = SPDY_get_fdset (daemon, in parentproc() 974 ret = select(maxfd+1, &read_fd_set, &write_fd_set, &except_fd_set, &timeout); in parentproc()
|
/third_party/alsa-lib/src/ucm/ |
D | ucm_exec.c | 177 pid_t p, f, maxfd; in uc_mgr_exec() local 201 maxfd = sysconf(_SC_OPEN_MAX); in uc_mgr_exec() 248 for (f = 3; f < maxfd; f++) in uc_mgr_exec()
|
/third_party/ltp/testcases/network/lib6/ |
D | asapi_02.c | 120 int maxfd, nfds; in ic6_recv1() local 131 maxfd = MAX(sall, sf); in ic6_recv1() 143 nfds = select(maxfd + 1, &readfds, 0, 0, &tv); in ic6_recv1()
|
D | asapi_01.c | 380 int sd, nfds, maxfd, cc; in csum_test() local 391 maxfd = MAX(sd, csd[1]); in csum_test() 409 while ((nfds = select(maxfd + 1, &rset, 0, 0, &tv)) >= 0) { in csum_test()
|
/third_party/skia/third_party/externals/microhttpd/src/spdy2http/ |
D | proxy.c | 984 int maxfd = -1; in run() local 1104 maxfd = SPDY_get_fdset (daemon, in run() 1108 assert(-1 != maxfd); in run() 1118 if(maxfd_curl > maxfd) in run() 1119 maxfd = maxfd_curl; in run() 1122 ret = select(maxfd+1, &rs, &ws, &es, &timeout); in run()
|
/third_party/cups/ |
D | cups-driverd-timeout.patch | 21 if ((i = select(maxfd, &input, NULL, NULL, &timeout)) < 0)
|
/third_party/toybox/toys/pending/ |
D | dhcp6.c | 580 int maxfd = TT.sock; in dhcp6_main() local 584 if ((TT.retval = select(maxfd + 1, &rfds, NULL, NULL, &TT.tv)) < 0) { in dhcp6_main()
|