Home
last modified time | relevance | path

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

12

/external/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()
/external/strace/tests/
Dpipe_maxfd.c61 int max_fd = (rlim.rlim_cur > 0 && rlim.rlim_cur < INT_MAX) in pipe_maxfd() local
64 move_fd(&pipefd[1], &max_fd); in pipe_maxfd()
65 --max_fd; in pipe_maxfd()
66 move_fd(&pipefd[0], &max_fd); in pipe_maxfd()
/external/strace/tests-m32/
Dpipe_maxfd.c61 int max_fd = (rlim.rlim_cur > 0 && rlim.rlim_cur < INT_MAX) in pipe_maxfd() local
64 move_fd(&pipefd[1], &max_fd); in pipe_maxfd()
65 --max_fd; in pipe_maxfd()
66 move_fd(&pipefd[0], &max_fd); in pipe_maxfd()
/external/strace/tests-mx32/
Dpipe_maxfd.c61 int max_fd = (rlim.rlim_cur > 0 && rlim.rlim_cur < INT_MAX) in pipe_maxfd() local
64 move_fd(&pipefd[1], &max_fd); in pipe_maxfd()
65 --max_fd; in pipe_maxfd()
66 move_fd(&pipefd[0], &max_fd); in pipe_maxfd()
/external/dnsmasq/src/
Dhelper.c53 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd) in create_helper() argument
104 for (max_fd--; max_fd >= 0; max_fd--) in create_helper()
105 if (max_fd != STDOUT_FILENO && max_fd != STDERR_FILENO && in create_helper()
106 max_fd != STDIN_FILENO && max_fd != pipefd[0] && max_fd != event_fd) in create_helper()
107 close(max_fd); in create_helper()
Ddnsmasq.c78 long i, max_fd = sysconf(_SC_OPEN_MAX); in main() local
125 for (i = 0; i < max_fd; i++) in main()
345 daemon->helperfd = create_helper(pipewrite, err_pipe[1], script_uid, script_gid, max_fd); in main()
Ddnsmasq.h848 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd);
/external/libmicrohttpd/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()
/external/parameter-framework/asio-1.10.6/include/asio/detail/impl/
Dselect_reactor.ipp146 socket_type max_fd = 0;
152 if (fd_sets_[i].max_descriptor() > max_fd)
153 max_fd = fd_sets_[i].max_descriptor();
170 int retval = socket_ops::select(static_cast<int>(max_fd + 1),
/external/libmicrohttpd/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)
/external/openssh/
Dserverloop.c355 int max_fd; in server_loop2() local
374 max_fd = MAXIMUM(connection_in, connection_out); in server_loop2()
375 max_fd = MAXIMUM(max_fd, notify_pipe[0]); in server_loop2()
392 &readset, &writeset, &max_fd, &nalloc, rekey_timeout_ms); in server_loop2()
Dclientloop.c1506 int r, max_fd = 0, max_fd2 = 0, len; in client_loop() local
1554 max_fd = MAXIMUM(connection_in, connection_out); in client_loop()
1564 max_fd = MAXIMUM(max_fd, fileno(stdin)); in client_loop()
1565 max_fd = MAXIMUM(max_fd, fileno(stdout)); in client_loop()
1566 max_fd = MAXIMUM(max_fd, fileno(stderr)); in client_loop()
1659 max_fd2 = max_fd; in client_loop()
Dssh-agent.c129 int max_fd = 0; variable
976 if (fd > max_fd) in new_socket()
977 max_fd = fd; in new_socket()
1452 prepare_select(&readsetp, &writesetp, &max_fd, &nalloc, &tvp); in main()
1453 result = select(max_fd + 1, readsetp, writesetp, NULL, tvp); in main()
/external/syslinux/gpxe/src/util/
Dhijack.c300 int max_fd; in run_hijacker() local
311 max_fd = ( ( fd > hijack.fd ) ? fd : hijack.fd ); in run_hijacker()
317 if ( select ( ( max_fd + 1 ), &fdset, NULL, NULL, 0 ) < 0 ) { in run_hijacker()
/external/libcups/cups/
Dhttp-addrlist.c74 int max_fd = -1; /* Highest file descriptor */ in httpAddrConnect2() local
235 if (fds[nfds] > max_fd) in httpAddrConnect2()
236 max_fd = fds[nfds]; in httpAddrConnect2()
296 result = select(max_fd + 1, &input_set, &output_set, &error_set, &timeout); in httpAddrConnect2()
/external/libmicrohttpd/src/microhttpd/
Ddaemon.c741 MHD_socket *max_fd, in add_to_fd_set() argument
759 if ( (NULL != max_fd) && (MHD_INVALID_SOCKET != fd) && in add_to_fd_set()
760 ((fd > *max_fd) || (MHD_INVALID_SOCKET == *max_fd)) ) in add_to_fd_set()
761 *max_fd = fd; in add_to_fd_set()
792 MHD_socket *max_fd) in MHD_get_fdset() argument
796 max_fd, MHD_DEFAULT_FD_SETSIZE); in MHD_get_fdset()
825 MHD_socket *max_fd, in MHD_get_fdset2() argument
843 return add_to_fd_set (daemon->epoll_fd, read_fd_set, max_fd, fd_setsize); in MHD_get_fdset2()
847 MHD_YES != add_to_fd_set (daemon->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
855 if (MHD_YES != add_to_fd_set (pos->socket_fd, read_fd_set, max_fd, fd_setsize)) in MHD_get_fdset2()
[all …]
/external/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc364 int max_fd = std::max(child_stdin_, child_stdout_);
378 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) {
/external/wpa_supplicant_8/src/utils/
Deloop.c88 int max_fd; member
303 if (new_max_sock >= eloop.max_fd) { in eloop_sock_table_add_sock()
304 next = eloop.max_fd == 0 ? 16 : eloop.max_fd * 2; in eloop_sock_table_add_sock()
310 eloop.max_fd = next; in eloop_sock_table_add_sock()
/external/google-breakpad/src/third_party/curl/
Dmulti.h135 int *max_fd);
/external/curl/include/curl/
Dmulti.h158 int *max_fd);
/external/autotest/client/common_lib/
Dpexpect.py544 max_fd = resource.getrlimit(resource.RLIMIT_NOFILE)[0]
545 for i in range (3, max_fd):
/external/dnsmasq/contrib/lease-access/
Dlease.access.patch213 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd);
/external/curl/lib/
Dmulti.c926 fd_set *exc_fd_set, int *max_fd) in curl_multi_fdset() argument
968 *max_fd = this_max_fd; in curl_multi_fdset()
/external/curl/packages/OS400/
Dcurl.inc.in2202 d max_fd 10i 0
/external/libmicrohttpd/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

12