Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c115 static int acpi_aml_set_fd(int fd, int maxfd, fd_set *set) in acpi_aml_set_fd() argument
117 if (fd > maxfd) in acpi_aml_set_fd()
118 maxfd = fd; in acpi_aml_set_fd()
120 return maxfd; in acpi_aml_set_fd()
271 int maxfd = 0; in acpi_aml_loop() local
290 maxfd = acpi_aml_set_fd(STDIN_FILENO, maxfd, &rfds); in acpi_aml_loop()
298 maxfd = acpi_aml_set_fd(fd, maxfd, &wfds); in acpi_aml_loop()
302 maxfd in acpi_aml_loop()
341 int maxfd = 0; acpi_aml_readable() local
[all...]
/kernel/linux/linux-6.6/tools/power/acpi/tools/acpidbg/
H A Dacpidbg.c115 static int acpi_aml_set_fd(int fd, int maxfd, fd_set *set) in acpi_aml_set_fd() argument
117 if (fd > maxfd) in acpi_aml_set_fd()
118 maxfd = fd; in acpi_aml_set_fd()
120 return maxfd; in acpi_aml_set_fd()
271 int maxfd = 0; in acpi_aml_loop() local
290 maxfd = acpi_aml_set_fd(STDIN_FILENO, maxfd, &rfds); in acpi_aml_loop()
298 maxfd = acpi_aml_set_fd(fd, maxfd, &wfds); in acpi_aml_loop()
302 maxfd in acpi_aml_loop()
341 int maxfd = 0; acpi_aml_readable() local
[all...]
/third_party/pulseaudio/src/pulsecore/
H A 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 in pa_poll()
[all...]
/third_party/musl/libc-test/src/regression/
H A 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/dup2/
H A Ddup201.c23 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 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/skia/third_party/externals/microhttpd/src/examples/
H A 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()
H A 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()
/third_party/curl/tests/libtest/
H A Dlib1531.c77 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 Dlib502.c58 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 Dlib560.c81 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 Dlib564.c61 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 Dlib573.c73 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 Dlib575.c85 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 Dlib1501.c67 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 Dlib504.c66 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 Dlib503.c68 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 Dlib507.c63 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 Dlib533.c63 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 Dlib1507.c94 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 Dlib1506.c97 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 Dlib1502.c103 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()
/third_party/libuv/test/
H A 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/curl/lib/
H A Dselect.c124 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 Dmulti-legacy.c87 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()

Completed in 8 milliseconds

123