Home
last modified time | relevance | path

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

12

/third_party/pulseaudio/src/pulsecore/
Dpoll-posix.c64 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()
Dpoll-win32.c358 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()
Dcore-util.c2574 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/
Drlimit-open-files.c14 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/
Ddup06.c40 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/
Ddup201.c23 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/
Dmhd2spdy.c74 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()
Dspdy_event_loop.c364 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()
Dspdy_response_with_callback.c163 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()
Dspdy_fileserver.c277 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()
Dmhd2spdy_spdy.c993 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/
Dtest-emfile.c34 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/
Dtest_daemon.c93 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/
Dtest_session_timeout.c130 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()
Dtest_misc.c210 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()
Dtest_request_response_with_callback.c173 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()
Dtest_new_connection.c914 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()
Dtest_notls.c877 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()
Dtest_request_response.c936 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/
Ducm_exec.c177 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/
Dasapi_02.c120 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()
Dasapi_01.c380 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/
Dproxy.c984 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/
Dcups-driverd-timeout.patch21 if ((i = select(maxfd, &input, NULL, NULL, &timeout)) < 0)
/third_party/toybox/toys/pending/
Ddhcp6.c580 int maxfd = TT.sock; in dhcp6_main() local
584 if ((TT.retval = select(maxfd + 1, &rfds, NULL, NULL, &TT.tv)) < 0) { in dhcp6_main()

12