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

/external/qemu/android/
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/chromium_org/tools/android/forwarder2/
H A Dforwarders_manager.cc72 int max_fd = -1; local
76 forwarder->RegisterFDs(&read_fds, &write_fds, &max_fd);
88 max_fd = std::max(max_fd, notifier_fd);
92 select(max_fd + 1, &read_fds, &write_fds, NULL, NULL));
H A Dforwarder.cc104 // |write_fds| and |max_fd| appropriately *if* the buffer isn't closed.
105 void PrepareSelect(fd_set* read_fds, fd_set* write_fds, int* max_fd) { argument
134 *max_fd = std::max(*max_fd, fd);
232 void Forwarder::RegisterFDs(fd_set* read_fds, fd_set* write_fds, int* max_fd) { argument
234 buffer1_->PrepareSelect(read_fds, write_fds, max_fd);
235 buffer2_->PrepareSelect(read_fds, write_fds, max_fd);
H A Dforwarder.h25 void RegisterFDs(fd_set* read_fds, fd_set* write_fds, int* max_fd);
H A Dsocket.cc415 int max_fd = socket_; local
417 if (events_[i].fd > max_fd)
418 max_fd = events_[i].fd;
420 select(max_fd + 1, &read_fds, &write_fds, NULL, tv_ptr)) <= 0) {
/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);
/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...]
H A Ddnsmasq.h886 int create_helper(int event_fd, int err_fd, uid_t uid, gid_t gid, long max_fd);
/external/bluetooth/bluedroid/osi/src/
H A Dreactor.c128 int max_fd = reactor->event_fd; local
137 if (fd > max_fd)
138 max_fd = fd;
143 ret = select(max_fd + 1, &read_set, &write_set, NULL, tv);
/external/bluetooth/bluedroid/udrv/ulinux/
H A Duipc.c100 int max_fd; member in struct:__anon1734
225 uipc_main.max_fd = MAX(uipc_main.max_fd, uipc_main.signal_fds[0]);
298 uipc_main.max_fd = MAX(uipc_main.max_fd, uipc_main.ch[ch_id].fd);
362 uipc_main.max_fd = MAX(uipc_main.max_fd, fd);
501 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/chromium_org/third_party/protobuf/src/google/protobuf/compiler/
H A Dsubprocess.cc362 int max_fd = max(child_stdin_, child_stdout_);
376 if (select(max_fd + 1, &read_fds, &write_fds, NULL, NULL) < 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/chromium_org/third_party/pexpect/
H A Dpexpect.py581 max_fd = resource.getrlimit(resource.RLIMIT_NOFILE)[0]
582 for i in range(3, max_fd):
/external/lldb/test/pexpect-2.4/
H A Dpexpect.py545 max_fd = resource.getrlimit(resource.RLIMIT_NOFILE)[0]
546 for i in range (3, max_fd):

Completed in 367 milliseconds