Home
last modified time | relevance | path

Searched refs:child_fd (Results 1 – 7 of 7) sorted by relevance

/external/autotest/client/common_lib/
Dpexpect.py396 self.child_fd = -1 # initially closed
468 s.append('child_fd: ' + str(self.child_fd))
527 self.pid, self.child_fd = pty.fork()
531 self.pid, self.child_fd = self.__fork_pty()
535 self.child_fd = sys.stdout.fileno() # used by setwinsize()
582 parent_fd, child_fd = os.openpty()
583 if parent_fd < 0 or child_fd < 0:
592 self.__pty_make_controlling_tty(child_fd)
594 os.dup2(child_fd, 0)
595 os.dup2(child_fd, 1)
[all …]
/external/libbrillo/brillo/
Dprocess.h57 virtual void RedirectUsingPipe(int child_fd, bool is_input) = 0;
61 virtual void BindFd(int parent_fd, int child_fd) = 0;
114 virtual int GetPipe(int child_fd) = 0;
167 virtual void RedirectUsingPipe(int child_fd, bool is_input);
168 virtual void BindFd(int parent_fd, int child_fd);
178 virtual int GetPipe(int child_fd);
Dprocess_mock.h23 MOCK_METHOD2(RedirectUsingPipe, void(int child_fd, bool is_input));
24 MOCK_METHOD2(BindFd, void(int parent_fd, int child_fd));
33 MOCK_METHOD1(GetPipe, int(int child_fd));
Dprocess.cc71 void ProcessImpl::RedirectUsingPipe(int child_fd, bool is_input) { in RedirectUsingPipe() argument
75 pipe_map_[child_fd] = info; in RedirectUsingPipe()
78 void ProcessImpl::BindFd(int parent_fd, int child_fd) { in BindFd() argument
88 pipe_map_[child_fd] = info; in BindFd()
130 int ProcessImpl::GetPipe(int child_fd) { in GetPipe() argument
131 PipeMap::iterator i = pipe_map_.find(child_fd); in GetPipe()
/external/libmojo/third_party/catapult/devil/devil/utils/
Dcmd_helper.py219 child_fd = process.stdout.fileno()
220 fl = fcntl.fcntl(child_fd, fcntl.F_GETFL)
221 fcntl.fcntl(child_fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
227 read_fds, _, _ = select.select([child_fd], [], [], poll_interval)
228 if child_fd in read_fds:
229 data = os.read(child_fd, buffer_size)
/external/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper.py249 child_fd = process.stdout.fileno()
250 fl = fcntl.fcntl(child_fd, fcntl.F_GETFL)
251 fcntl.fcntl(child_fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
271 [child_fd], [], [], iter_aware_poll_interval)
272 if child_fd in read_fds:
273 data = os.read(child_fd, buffer_size)
/external/v8/src/
Dd8-posix.cc302 static Local<Value> GetStdout(Isolate* isolate, int child_fd, in GetStdout() argument
311 if (fcntl(child_fd, F_SETFL, O_NONBLOCK) != 0) { in GetStdout()
320 read(child_fd, buffer + fullness, kStdoutReadBufferSize - fullness)); in GetStdout()
323 if (!WaitOnFD(child_fd, in GetStdout()