/third_party/ltp/include/lapi/ |
H A D | close_range.h | 22 static inline int close_range(unsigned int fd, unsigned int max_fd, in close_range() argument 25 return tst_syscall(__NR_close_range, fd, max_fd, flags); in close_range()
|
/third_party/libwebsockets/lib/plat/freertos/ |
H A D | freertos-service.c | 133 int max_fd = 0; in _lws_plat_service_tsi() local 140 if (pt->fds[n].fd >= max_fd) in _lws_plat_service_tsi() 141 max_fd = pt->fds[n].fd; in _lws_plat_service_tsi() 151 n = select(max_fd + 1, &readfds, &writefds, &errfds, ptv); in _lws_plat_service_tsi()
|
/third_party/ltp/testcases/kernel/syscalls/close_range/ |
H A D | close_range01.c | 36 static inline void do_close_range(unsigned int fd, unsigned int max_fd, in do_close_range() argument 39 int ret = close_range(fd, max_fd, flags); in do_close_range() 51 tst_brk(TBROK | TERRNO, "close_range(%d, %d, %d)", fd, max_fd, flags); in do_close_range()
|
/third_party/node/deps/v8/src/debug/wasm/gdb-server/ |
H A D | transport.cc | 405 int max_fd = faulted_thread_fd_read_; 408 max_fd = std::max(max_fd, handle_accept_); 415 ret = select(max_fd + 1, &fds, NULL, NULL, NULL); 420 ret = select(max_fd + 1, &fds, NULL, NULL, &timeout);
|
/third_party/skia/third_party/externals/microhttpd/src/microspdy/ |
H A D | daemon.c | 441 int max_fd = -1; in SPDYF_get_fdset() local 448 max_fd = fd; in SPDYF_get_fdset() 465 if(fd > max_fd) in SPDYF_get_fdset() 466 max_fd = fd; in SPDYF_get_fdset() 469 return max_fd; in SPDYF_get_fdset()
|
/kernel/linux/linux-6.6/fs/ |
H A D | file.c | 683 unsigned int fd, unsigned int max_fd) in __range_cloexec() 690 max_fd = min(last_fd(fdt), max_fd); in __range_cloexec() 691 if (fd <= max_fd) in __range_cloexec() 692 bitmap_set(fdt->close_on_exec, fd, max_fd - fd + 1); in __range_cloexec() 697 unsigned int max_fd) in __range_close() 704 max_fd = min(max_fd, n); in __range_close() 706 for (; fd <= max_fd; fd++) { in __range_close() 726 * @max_fd 682 __range_cloexec(struct files_struct *cur_fds, unsigned int fd, unsigned int max_fd) __range_cloexec() argument 696 __range_close(struct files_struct *files, unsigned int fd, unsigned int max_fd) __range_close() argument 732 __close_range(unsigned fd, unsigned max_fd, unsigned int flags) __close_range() argument [all...] |
H A D | open.c | 1585 * @max_fd: last file descriptor to close 1589 * from @fd up to and including @max_fd are closed. 1592 SYSCALL_DEFINE3(close_range, unsigned int, fd, unsigned int, max_fd, in SYSCALL_DEFINE3() 1595 return __close_range(fd, max_fd, flags); in SYSCALL_DEFINE3()
|
/third_party/skia/third_party/externals/microhttpd/src/include/ |
H A D | microhttpd.h | 1571 * @param max_fd increased to largest FD added (if larger 1584 MHD_socket *max_fd); 1599 * @param max_fd increased to largest FD added (if larger 1613 MHD_socket *max_fd, 1628 * @param max_fd increased to largest FD added (if larger 1636 #define MHD_get_fdset(daemon,read_fd_set,write_fd_set,except_fd_set,max_fd) \ 1637 MHD_get_fdset2((daemon),(read_fd_set),(write_fd_set),(except_fd_set),(max_fd),FD_SETSIZE)
|
/third_party/libuv/src/unix/ |
H A D | stream.c | 153 int max_fd; in uv__stream_osx_select() local 160 max_fd = fd; in uv__stream_osx_select() 162 max_fd = s->int_fd; in uv__stream_osx_select() 180 r = select(max_fd + 1, s->sread, s->swrite, NULL, NULL); in uv__stream_osx_select() 289 int max_fd; in uv__stream_try_select() local 326 max_fd = *fd; in uv__stream_try_select() 327 if (fds[1] > max_fd) in uv__stream_try_select() 328 max_fd = fds[1]; in uv__stream_try_select() 330 sread_sz = ROUND_UP(max_fd + 1, sizeof(uint32_t) * NBBY) / NBBY; in uv__stream_try_select()
|
/third_party/node/deps/uv/src/unix/ |
H A D | stream.c | 143 int max_fd; in uv__stream_osx_select() local 150 max_fd = fd; in uv__stream_osx_select() 152 max_fd = s->int_fd; in uv__stream_osx_select() 170 r = select(max_fd + 1, s->sread, s->swrite, NULL, NULL); in uv__stream_osx_select() 279 int max_fd; in uv__stream_try_select() local 316 max_fd = *fd; in uv__stream_try_select() 317 if (fds[1] > max_fd) in uv__stream_try_select() 318 max_fd = fds[1]; in uv__stream_try_select() 320 sread_sz = ROUND_UP(max_fd + 1, sizeof(uint32_t) * NBBY) / NBBY; in uv__stream_try_select()
|
/kernel/linux/linux-5.10/fs/ |
H A D | file.c | 711 * @max_fd: last file descriptor to close 714 * from @fd up to and including @max_fd are closed. 716 int __close_range(unsigned fd, unsigned max_fd, unsigned int flags) in __close_range() argument 725 if (fd > max_fd) in __close_range() 744 if (max_fd >= cur_max) in __close_range() 759 max_fd = min(max_fd, cur_max); in __close_range() 760 while (fd <= max_fd) { in __close_range()
|
H A D | open.c | 1329 * @max_fd: last file descriptor to close 1333 * from @fd up to and including @max_fd are closed. 1336 SYSCALL_DEFINE3(close_range, unsigned int, fd, unsigned int, max_fd, in SYSCALL_DEFINE3() 1339 return __close_range(fd, max_fd, flags); in SYSCALL_DEFINE3()
|
/kernel/linux/linux-5.10/tools/testing/selftests/core/ |
H A D | close_range_test.c | 26 static inline int sys_close_range(unsigned int fd, unsigned int max_fd, in sys_close_range() argument 29 return syscall(__NR_close_range, fd, max_fd, flags); in sys_close_range()
|
/third_party/protobuf/src/google/protobuf/compiler/ |
H A D | subprocess.cc | 375 int max_fd = std::max(child_stdin_, child_stdout_); 389 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) {
|
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/ |
H A D | daemon.c | 619 * greater than @a max_fd, set @a max_fd to @a fd. 623 * @param max_fd maximum value to potentially update 630 MHD_socket *max_fd, in add_to_fd_set() 648 if ( (NULL != max_fd) && (MHD_INVALID_SOCKET != fd) && in add_to_fd_set() 649 ((fd > *max_fd) || (MHD_INVALID_SOCKET == *max_fd)) ) in add_to_fd_set() 650 *max_fd = fd; in add_to_fd_set() 668 * @param max_fd increased to largest FD added (if larger 681 MHD_socket *max_fd) in MHD_get_fdset() 628 add_to_fd_set(MHD_socket fd, fd_set *set, MHD_socket *max_fd, unsigned int fd_setsize) add_to_fd_set() argument 677 MHD_get_fdset(struct MHD_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, MHD_socket *max_fd) MHD_get_fdset() argument 710 MHD_get_fdset2(struct MHD_Daemon *daemon, fd_set *read_fd_set, fd_set *write_fd_set, fd_set *except_fd_set, MHD_socket *max_fd, unsigned int fd_setsize) MHD_get_fdset2() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | fdtable.h | 132 extern int __close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | fdtable.h | 127 extern int __close_range(unsigned int fd, unsigned int max_fd, unsigned int flags);
|
/third_party/curl/include/curl/ |
H A D | multi.h | 166 int *max_fd);
|
/kernel/linux/linux-6.6/tools/testing/selftests/core/ |
H A D | close_range_test.c | 47 static inline int sys_close_range(unsigned int fd, unsigned int max_fd, in sys_close_range() argument 50 return syscall(__NR_close_range, fd, max_fd, flags); in sys_close_range()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/ |
H A D | test_sockmap.c | 600 int slct, recvp = 0, recv, max_fd = fd; in msg_loop() local 639 slct = select(max_fd + 1, &w, NULL, NULL, &timeout); in msg_loop() 655 slct = select(max_fd + 1, NULL, NULL, &w, &timeout); in msg_loop() 886 int s, rc, i, max_fd = p2; in forever_ping_pong() local 896 s = select(max_fd + 1, &w, NULL, NULL, &timeout); in forever_ping_pong() 905 for (i = 0; i <= max_fd && s > 0; ++i) { in forever_ping_pong()
|
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/ |
H A D | test_sockmap.c | 592 int slct, recvp = 0, recv, max_fd = fd; in msg_loop() local 631 slct = select(max_fd + 1, &w, NULL, NULL, &timeout); in msg_loop() 842 int s, rc, i, max_fd = p2; in forever_ping_pong() local 852 s = select(max_fd + 1, &w, NULL, NULL, &timeout); in forever_ping_pong() 861 for (i = 0; i <= max_fd && s > 0; ++i) { in forever_ping_pong()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/ |
H A D | eloop.c | 100 int max_fd; member 384 if (new_max_sock >= eloop.max_fd) { in eloop_sock_table_add_sock() 391 eloop.max_fd = next; in eloop_sock_table_add_sock()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/ |
H A D | eloop.c | 100 int max_fd; member 387 if (new_max_sock >= eloop.max_fd) { in eloop_sock_table_add_sock() 394 eloop.max_fd = next; in eloop_sock_table_add_sock()
|
/third_party/node/deps/openssl/openssl/apps/ |
H A D | speed.c | 1169 OSSL_ASYNC_FD max_fd = 0; in run_benchmark() 1189 if (job_fd > max_fd) in run_benchmark() 1190 max_fd = job_fd; in run_benchmark() 1193 if (max_fd >= (OSSL_ASYNC_FD)FD_SETSIZE) { in run_benchmark() 1195 "Error: max_fd (%d) must be smaller than FD_SETSIZE (%d). " in run_benchmark() 1197 max_fd, FD_SETSIZE); in run_benchmark() 1203 select_result = select(max_fd + 1, &waitfdset, NULL, NULL, NULL); in run_benchmark()
|
/third_party/openssl/apps/ |
H A D | speed.c | 1155 OSSL_ASYNC_FD max_fd = 0; in run_benchmark() 1175 if (job_fd > max_fd) in run_benchmark() 1176 max_fd = job_fd; in run_benchmark() 1179 if (max_fd >= (OSSL_ASYNC_FD)FD_SETSIZE) { in run_benchmark() 1181 "Error: max_fd (%d) must be smaller than FD_SETSIZE (%d). " in run_benchmark() 1183 max_fd, FD_SETSIZE); in run_benchmark() 1189 select_result = select(max_fd + 1, &waitfdset, NULL, NULL, NULL); in run_benchmark()
|