Home
last modified time | relevance | path

Searched refs:child_fd (Results 1 – 9 of 9) 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/chromium-trace/catapult/devil/devil/utils/
Dcmd_helper.py232 child_fd = process.stdout.fileno()
233 fl = fcntl.fcntl(child_fd, fcntl.F_GETFL)
234 fcntl.fcntl(child_fd, fcntl.F_SETFL, fl | os.O_NONBLOCK)
254 [child_fd], [], [], iter_aware_poll_interval)
255 if child_fd in read_fds:
256 data = os.read(child_fd, buffer_size)
266 [child_fd], [], [], iter_aware_poll_interval)
267 if child_fd in read_fds:
268 data = os.read(child_fd, buffer_size)
/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/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()
/external/minijail/
Dlibminijail.h261 int minijail_preserve_fd(struct minijail *j, int parent_fd, int child_fd);
Dlibminijail.c110 int child_fd; member
791 int API minijail_preserve_fd(struct minijail *j, int parent_fd, int child_fd) in minijail_preserve_fd() argument
793 if (parent_fd < 0 || child_fd < 0) in minijail_preserve_fd()
798 j->preserved_fds[j->preserved_fd_count].child_fd = child_fd; in minijail_preserve_fd()
2237 j->preserved_fds[i].child_fd) == -1) { in redirect_fds()
2249 j->preserved_fds[i2].child_fd; in redirect_fds()