Searched defs:max_fd (Results 1 - 12 of 12) sorted by relevance

/external/qemu/
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);
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...]
/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);
528 if (FD_SETSIZE < (unsigned)max_fd)
529 max_fd = FD_SETSIZE;
542 max_fd -= 30; /* use other than TFTP */
544 if (max_fd < 0)
545 max_fd = 5;
546 else if (max_fd < 100)
547 max_fd
[all...]
/external/chromium_org/tools/android/forwarder2/
H A Dsocket.cc425 int max_fd = socket_; local
427 if (events_[i].fd > max_fd)
428 max_fd = events_[i].fd;
430 select(max_fd + 1, &read_fds, &write_fds, NULL, tv_ptr)) <= 0) {
/external/bluetooth/bluedroid/udrv/ulinux/
H A Duipc.c95 int max_fd; member in struct:__anon1592
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/ipod/
H A DSDL_ipodvideo.c472 int max_fd = 0; local
482 max_fd = kbfd;
485 if (select (max_fd + 1, &fdset, 0, 0, &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/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 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);
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...]

Completed in 376 milliseconds