Home
last modified time | relevance | path

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

/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/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.c135 long i, max_fd = sysconf(_SC_OPEN_MAX); in main() local
382 daemon->helperfd = create_helper(pipewrite, err_pipe[1], script_uid, script_gid, max_fd); in main()
Ddnsmasq.h829 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd);
/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/oj-libjdwp/src/solaris/back/
Dexec_md.c106 long max_fd; in dbgsysExec() local
109 max_fd = sysconf(_SC_OPEN_MAX); in dbgsysExec()
111 for (i = 3; i < (int)max_fd; i++) { in dbgsysExec()
/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/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/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/libcups/cups/
Dhttp-addrlist.c74 int max_fd = -1; /* Highest file descriptor */ in httpAddrConnect2() local
233 if (fds[nfds] > max_fd) in httpAddrConnect2()
234 max_fd = fds[nfds]; in httpAddrConnect2()
294 result = select(max_fd + 1, &input_set, &output_set, &error_set, &timeout); in httpAddrConnect2()
/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/curl/lib/
Dmulti.c891 fd_set *exc_fd_set, int *max_fd) in curl_multi_fdset() argument
931 *max_fd = this_max_fd; in curl_multi_fdset()
/external/curl/packages/OS400/
Dcurl.inc.in2228 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
Dlibmicrohttpd.info1326 int *max_fd)