Home
last modified time | relevance | path

Searched refs:max_fd (Results 1 – 16 of 16) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/pipe/
Dpipe07.c50 static void close_test_fds(int max_fd);
60 int pipes[2], max_fd = 0; in main() local
82 max_fd = MAX(pipes[0], max_fd); in main()
83 max_fd = MAX(pipes[1], max_fd); in main()
91 close_test_fds(max_fd); in main()
92 max_fd = 0; in main()
159 static void close_test_fds(int max_fd) in close_test_fds() argument
163 for (i = 0; i <= max_fd; i++) { in close_test_fds()
/third_party/libwebsockets/lib/plat/freertos/
Dfreertos-service.c133 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/include/lapi/
Dclose_range.h22 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/ltp/testcases/kernel/syscalls/close_range/
Dclose_range01.c36 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/skia/third_party/externals/microhttpd/src/microspdy/
Ddaemon.c441 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()
/third_party/skia/third_party/externals/microhttpd/src/include/
Dmicrohttpd.h1584 MHD_socket *max_fd);
1613 MHD_socket *max_fd,
1636 #define MHD_get_fdset(daemon,read_fd_set,write_fd_set,except_fd_set,max_fd) \ argument
1637 MHD_get_fdset2((daemon),(read_fd_set),(write_fd_set),(except_fd_set),(max_fd),FD_SETSIZE)
/third_party/libuv/src/unix/
Dstream.c142 int max_fd; in uv__stream_osx_select() local
149 max_fd = fd; in uv__stream_osx_select()
151 max_fd = s->int_fd; in uv__stream_osx_select()
169 r = select(max_fd + 1, s->sread, s->swrite, NULL, NULL); in uv__stream_osx_select()
278 int max_fd; in uv__stream_try_select() local
315 max_fd = *fd; in uv__stream_try_select()
316 if (fds[1] > max_fd) in uv__stream_try_select()
317 max_fd = fds[1]; in uv__stream_try_select()
319 sread_sz = ROUND_UP(max_fd + 1, sizeof(uint32_t) * NBBY) / NBBY; in uv__stream_try_select()
/third_party/gstreamer/gstreamer/gst/
Dgstpoll.c471 gint max_fd = -1; in pollfd_to_fd_set() local
490 if (pfd->fd > max_fd && (pfd->events & (POLLIN | POLLOUT))) in pollfd_to_fd_set()
491 max_fd = pfd->fd; in pollfd_to_fd_set()
497 return max_fd; in pollfd_to_fd_set()
1510 gint max_fd; in gst_poll_wait() local
1512 max_fd = pollfd_to_fd_set (set, &readfds, &writefds, &errorfds); in gst_poll_wait()
1526 res = select (max_fd + 1, &readfds, &writefds, &errorfds, tvptr); in gst_poll_wait()
1542 pselect (max_fd + 1, &readfds, &writefds, &errorfds, tsptr, NULL); in gst_poll_wait()
/third_party/skia/third_party/externals/microhttpd/src/microhttpd/
Ddaemon.c630 MHD_socket *max_fd, in add_to_fd_set() argument
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()
681 MHD_socket *max_fd) in MHD_get_fdset() argument
685 max_fd, MHD_DEFAULT_FD_SETSIZE); in MHD_get_fdset()
714 MHD_socket *max_fd, in MHD_get_fdset2() argument
732 return add_to_fd_set (daemon->epoll_fd, read_fd_set, max_fd, fd_setsize); in MHD_get_fdset2()
736 MHD_YES != add_to_fd_set (daemon->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
744 if (MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc375 int max_fd = std::max(child_stdin_, child_stdout_); in Communicate() local
389 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) { in Communicate()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Deloop.c100 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/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Deloop.c100 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/openssl/apps/
Dspeed.c1155 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()
1183 max_fd, FD_SETSIZE); in run_benchmark()
1189 select_result = select(max_fd + 1, &waitfdset, NULL, NULL, NULL); in run_benchmark()
/third_party/skia/third_party/externals/microhttpd/doc/
Dlibmicrohttpd.texi1526 …D_Daemon *daemon, fd_set * read_fd_set, fd_set * write_fd_set, fd_set * except_fd_set, int *max_fd)
1533 @var{max_fd} references the file descriptor with highest integer
Dlibmicrohttpd.info1326 int *max_fd)
/third_party/chromium/patch/
D0003-ohos-1115.patch79879 int max_fd = implicit_cast<int>(sysconf(_SC_OPEN_MAX));