Home
last modified time | relevance | path

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

/external/qemu/
Diolooper-select.c18 int max_fd; member
41 iol->max_fd = -1; in iolooper_reset()
48 if (iol->max_fd_valid && fd > iol->max_fd) { in iolooper_add_fd()
49 iol->max_fd = fd; in iolooper_add_fd()
56 if (iol->max_fd_valid && fd == iol->max_fd) in iolooper_del_fd()
86 int max_fd = iol->max_fd; in iolooper_fd_count() local
90 return max_fd + 1; in iolooper_fd_count()
97 max_fd = fd; in iolooper_fd_count()
99 iol->max_fd = max_fd; in iolooper_fd_count()
102 return max_fd + 1; in iolooper_fd_count()
Daio.c160 int max_fd = -1; in qemu_aio_wait() local
178 max_fd = MAX(max_fd, node->fd + 1); in qemu_aio_wait()
182 max_fd = MAX(max_fd, node->fd + 1); in qemu_aio_wait()
189 if (max_fd == -1) in qemu_aio_wait()
193 ret = select(max_fd, &rdfds, &wrfds, NULL, NULL); in qemu_aio_wait()
/external/openssh/
Dserverloop.c555 int max_fd = 0; in server_loop() local
607 max_fd = MAX(connection_in, connection_out); in server_loop()
608 max_fd = MAX(max_fd, fdin); in server_loop()
609 max_fd = MAX(max_fd, fdout); in server_loop()
611 max_fd = MAX(max_fd, fderr); in server_loop()
694 max_fd = MAX(connection_in, connection_out); in server_loop()
695 max_fd = MAX(max_fd, fdin); in server_loop()
696 max_fd = MAX(max_fd, fdout); in server_loop()
697 max_fd = MAX(max_fd, fderr); in server_loop()
698 max_fd = MAX(max_fd, notify_pipe[0]); in server_loop()
[all …]
Dclientloop.c1384 int max_fd = 0, max_fd2 = 0, len, rekeying = 0; in client_loop() local
1401 max_fd = MAX(connection_in, connection_out); in client_loop()
1411 max_fd = MAX(max_fd, fileno(stdin)); in client_loop()
1412 max_fd = MAX(max_fd, fileno(stdout)); in client_loop()
1413 max_fd = MAX(max_fd, fileno(stderr)); in client_loop()
1501 max_fd2 = max_fd; in client_loop()
1538 max_fd = MAX(max_fd, connection_out); in client_loop()
1539 max_fd = MAX(max_fd, connection_in); in client_loop()
Dssh-agent.c121 int max_fd = 0; variable
905 if (fd > max_fd) in new_socket()
906 max_fd = fd; in new_socket()
1359 prepare_select(&readsetp, &writesetp, &max_fd, &nalloc, &tvp); in main()
1360 result = select(max_fd + 1, readsetp, writesetp, NULL, tvp); in main()
/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.c85 long i, max_fd = sysconf(_SC_OPEN_MAX); in main() local
132 for (i = 0; i < max_fd; i++) in main()
370 daemon->helperfd = create_helper(pipewrite, err_pipe[1], script_uid, script_gid, max_fd); in main()
522 if (FD_SETSIZE < (unsigned)max_fd) in main()
523 max_fd = FD_SETSIZE; in main()
536 max_fd -= 30; /* use other than TFTP */ in main()
538 if (max_fd < 0) in main()
539 max_fd = 5; in main()
540 else if (max_fd < 100) in main()
541 max_fd = max_fd/2; in main()
[all …]
Ddnsmasq.h883 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd);
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/
DSDL_gsevents.c784 int max_fd; in GS_PumpEvents() local
791 max_fd = 0; in GS_PumpEvents()
794 if ( max_fd < keyboard_fd ) { in GS_PumpEvents()
795 max_fd = keyboard_fd; in GS_PumpEvents()
800 if ( max_fd < mouse_fd ) { in GS_PumpEvents()
801 max_fd = mouse_fd; in GS_PumpEvents()
804 if ( select(max_fd+1, &fdset, NULL, NULL, &zero) > 0 ) { in GS_PumpEvents()
/external/qemu/distrib/sdl-1.2.12/src/video/fbcon/
DSDL_fbevents.c1034 int max_fd; in FB_PumpEvents() local
1053 max_fd = 0; in FB_PumpEvents()
1056 if ( max_fd < keyboard_fd ) { in FB_PumpEvents()
1057 max_fd = keyboard_fd; in FB_PumpEvents()
1062 if ( max_fd < mouse_fd ) { in FB_PumpEvents()
1063 max_fd = mouse_fd; in FB_PumpEvents()
1066 if ( select(max_fd+1, &fdset, NULL, NULL, &zero) > 0 ) { in FB_PumpEvents()
/external/protobuf/src/google/protobuf/compiler/
Dsubprocess.cc357 int max_fd = max(child_stdin_, child_stdout_);
371 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) {
/external/qemu/distrib/sdl-1.2.12/src/video/ipod/
DSDL_ipodvideo.c472 int max_fd = 0; in iPod_PumpEvents() local
482 max_fd = kbfd; in iPod_PumpEvents()
485 if (select (max_fd + 1, &fdset, 0, 0, &zero) > 0) { in iPod_PumpEvents()
/external/dbus/dbus/
Ddbus-sysdeps-unix.c2451 int max_fd = 0; in _dbus_poll()
2472 max_fd = MAX (max_fd, fdp->fd); in _dbus_poll()
2478 ready = select (max_fd + 1, &read_set, &write_set, &err_set, in _dbus_poll()
Ddbus-sysdeps-win.c1078 int max_fd = 0; in _dbus_poll()
1128 max_fd = MAX (max_fd, fdp->fd); in _dbus_poll()
1135 ready = select (max_fd + 1, &read_set, &write_set, &err_set, in _dbus_poll()
/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);