Searched refs:max_fd (Results 1 - 14 of 14) sorted by relevance

/external/qemu/
H A Diolooper-select.c18 int max_fd; member in struct:IoLooper
41 iol->max_fd = -1;
48 if (iol->max_fd_valid && fd > iol->max_fd) {
49 iol->max_fd = fd;
56 if (iol->max_fd_valid && fd == iol->max_fd)
86 int max_fd = iol->max_fd; local
90 return max_fd + 1;
97 max_fd = fd;
99 iol->max_fd
[all...]
H A Daio.c160 int max_fd = -1; local
178 max_fd = MAX(max_fd, node->fd + 1);
182 max_fd = MAX(max_fd, node->fd + 1);
189 if (max_fd == -1)
193 ret = select(max_fd, &rdfds, &wrfds, NULL, NULL);
/external/dnsmasq/src/
H A Dhelper.c53 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd) argument
104 for (max_fd--; max_fd >= 0; max_fd--)
105 if (max_fd != STDOUT_FILENO && max_fd != STDERR_FILENO &&
106 max_fd != STDIN_FILENO && max_fd != pipefd[0] && max_fd != event_fd)
107 close(max_fd);
[all...]
H A Ddnsmasq.c85 long i, max_fd = sysconf(_SC_OPEN_MAX); local
132 for (i = 0; i < max_fd; i++)
370 daemon->helperfd = create_helper(pipewrite, err_pipe[1], script_uid, script_gid, max_fd);
522 if (FD_SETSIZE < (unsigned)max_fd)
523 max_fd = FD_SETSIZE;
536 max_fd -= 30; /* use other than TFTP */
538 if (max_fd < 0)
539 max_fd = 5;
540 else if (max_fd < 100)
541 max_fd
[all...]
H A Ddnsmasq.h883 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd);
/external/openssh/
H A Dserverloop.c555 int max_fd = 0; local
606 /* Initialize max_fd to the maximum of the known file descriptors. */
607 max_fd = MAX(connection_in, connection_out);
608 max_fd = MAX(max_fd, fdin);
609 max_fd = MAX(max_fd, fdout);
611 max_fd = MAX(max_fd, fderr);
694 max_fd
822 int rekeying = 0, max_fd, nalloc = 0; local
[all...]
H A Dclientloop.c1384 int max_fd = 0, max_fd2 = 0, len, rekeying = 0; local
1401 max_fd = MAX(connection_in, connection_out);
1411 max_fd = MAX(max_fd, fileno(stdin));
1412 max_fd = MAX(max_fd, fileno(stdout));
1413 max_fd = MAX(max_fd, fileno(stderr));
1501 max_fd2 = max_fd;
1538 max_fd
[all...]
H A Dssh-agent.c121 int max_fd = 0; variable
905 if (fd > max_fd)
906 max_fd = fd;
1359 prepare_select(&readsetp, &writesetp, &max_fd, &nalloc, &tvp);
1360 result = select(max_fd + 1, readsetp, writesetp, NULL, tvp);
/external/bluetooth/bluedroid/udrv/ulinux/
H A Duipc.c95 int max_fd; member in struct:__anon1456
262 uipc_main.max_fd = MAX(uipc_main.max_fd, uipc_main.signal_fds[0]);
335 uipc_main.max_fd = MAX(uipc_main.max_fd, uipc_main.ch[ch_id].fd);
399 uipc_main.max_fd = MAX(uipc_main.max_fd, fd);
525 result = select(uipc_main.max_fd+1, &uipc_main.read_set, NULL, NULL, NULL);
/external/qemu/distrib/sdl-1.2.15/src/video/fbcon/
H A DSDL_fbevents.c1043 int max_fd; local
1062 max_fd = 0;
1065 if ( max_fd < keyboard_fd ) {
1066 max_fd = keyboard_fd;
1071 if ( max_fd < mouse_fd ) {
1072 max_fd = mouse_fd;
1075 if ( select(max_fd+1, &fdset, NULL, NULL, &zero) > 0 ) {
/external/qemu/distrib/sdl-1.2.15/src/video/ps2gs/
H A DSDL_gsevents.c784 int max_fd; local
791 max_fd = 0;
794 if ( max_fd < keyboard_fd ) {
795 max_fd = keyboard_fd;
800 if ( max_fd < mouse_fd ) {
801 max_fd = mouse_fd;
804 if ( select(max_fd+1, &fdset, NULL, NULL, &zero) > 0 ) {
/external/protobuf/src/google/protobuf/compiler/
H A Dsubprocess.cc357 int max_fd = max(child_stdin_, child_stdout_);
371 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 0) {
/external/dbus/dbus/
H A Ddbus-sysdeps-win.c1078 int max_fd = 0;
1128 max_fd = MAX (max_fd, fdp->fd);
1135 ready = select (max_fd + 1, &read_set, &write_set, &err_set,
H A Ddbus-sysdeps-unix.c2451 int max_fd = 0;
2472 max_fd = MAX (max_fd, fdp->fd);
2478 ready = select (max_fd + 1, &read_set, &write_set, &err_set,

Completed in 332 milliseconds