/external/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
D | fdpexpect.py | 57 self.child_fd = fd 69 if self.child_fd == -1: 73 os.close(self.child_fd) 74 self.child_fd = -1 81 if self.child_fd == -1: 84 os.fstat(self.child_fd) 102 return os.write(self.child_fd, b) 137 rlist = [self.child_fd] 146 if self.child_fd not in rlist:
|
D | pty_spawn.py | 224 s.append('child_fd: ' + str(self.child_fd)) 306 self.child_fd = self.ptyproc.fd 329 self.child_fd = -1 341 return os.isatty(self.child_fd) 450 r = poll_ignore_interrupts([self.child_fd], timeout) 452 r, w, e = select_ignore_interrupts([self.child_fd], [], [], 0) 461 r = poll_ignore_interrupts([self.child_fd], timeout) 463 r, w, e = select_ignore_interrupts([self.child_fd], [], [], 2) 468 r = poll_ignore_interrupts([self.child_fd], timeout) 471 [self.child_fd], [], [], timeout [all …]
|
D | spawnbase.py | 51 self.child_fd = -1 166 s = os.read(self.child_fd, size) 504 return self.child_fd
|
/external/llvm-project/lldb/third_party/Python/module/ptyprocess-0.6.0/ptyprocess/ |
D | _fork_pty.py | 23 parent_fd, child_fd = os.openpty() 24 if parent_fd < 0 or child_fd < 0: 31 pty_make_controlling_tty(child_fd) 33 os.dup2(child_fd, STDIN_FILENO) 34 os.dup2(child_fd, STDOUT_FILENO) 35 os.dup2(child_fd, STDERR_FILENO) 39 os.close(child_fd)
|
/external/autotest/client/common_lib/ |
D | pexpect.py | 405 self.child_fd = -1 # initially closed 477 s.append('child_fd: ' + str(self.child_fd)) 536 self.pid, self.child_fd = pty.fork() 540 self.pid, self.child_fd = self.__fork_pty() 544 self.child_fd = sys.stdout.fileno() # used by setwinsize() 591 parent_fd, child_fd = os.openpty() 592 if parent_fd < 0 or child_fd < 0: 601 self.__pty_make_controlling_tty(child_fd) 603 os.dup2(child_fd, 0) 604 os.dup2(child_fd, 1) [all …]
|
/external/ltp/testcases/kernel/syscalls/ioctl/ |
D | ioctl_ns06.c | 62 int my_fd, child_fd, parent_fd; in run() local 65 child_fd = SAFE_OPEN(child_namespace, O_RDONLY); in run() 66 parent_fd = ioctl(child_fd, NS_GET_USERNS); in run() 80 SAFE_FSTAT(child_fd, &child_stat); in run() 90 SAFE_CLOSE(child_fd); in run()
|
D | ioctl_ns05.c | 63 int my_fd, child_fd, parent_fd; in run() local 67 child_fd = SAFE_OPEN(child_namespace, O_RDONLY); in run() 68 parent_fd = ioctl(child_fd, NS_GET_PARENT); in run() 84 SAFE_FSTAT(child_fd, &child_stat); in run() 93 SAFE_CLOSE(child_fd); in run()
|
/external/libbrillo/brillo/ |
D | process.h | 63 virtual void RedirectUsingPipe(int child_fd, bool is_input) = 0; 67 virtual void BindFd(int parent_fd, int child_fd) = 0; 120 virtual int GetPipe(int child_fd) = 0; 174 virtual void RedirectUsingPipe(int child_fd, bool is_input); 175 virtual void BindFd(int parent_fd, int child_fd); 185 virtual int GetPipe(int child_fd);
|
D | process.cc | 77 void ProcessImpl::RedirectUsingPipe(int child_fd, bool is_input) { in RedirectUsingPipe() argument 81 pipe_map_[child_fd] = info; in RedirectUsingPipe() 84 void ProcessImpl::BindFd(int parent_fd, int child_fd) { in BindFd() argument 94 pipe_map_[child_fd] = info; in BindFd() 136 int ProcessImpl::GetPipe(int child_fd) { in GetPipe() argument 137 PipeMap::iterator i = pipe_map_.find(child_fd); in GetPipe()
|
D | file_utils.cc | 221 base::ScopedFD child_fd; in OpenSafelyInternal() local 224 child_fd = OpenPathComponentInternal(parent_fd, *itr, parent_flags, 0); in OpenSafelyInternal() 225 if (!child_fd.is_valid()) { in OpenSafelyInternal() 228 parent_fd = child_fd.get(); in OpenSafelyInternal()
|
/external/chromium-trace/catapult/devil/devil/utils/ |
D | cmd_helper.py | 334 child_fd = process.stdout.fileno() 335 fl = fcntl.fcntl(child_fd, fcntl.F_GETFL) 336 fcntl.fcntl(child_fd, fcntl.F_SETFL, fl | os.O_NONBLOCK) 354 read_fds, _, _ = select.select([child_fd], [], [], 356 if child_fd in read_fds: 357 data = _read_and_decode(child_fd, buffer_size) 366 read_fds, _, _ = select.select([child_fd], [], [], 368 if child_fd in read_fds: 369 data = _read_and_decode(child_fd, buffer_size)
|
/external/libbrillo/brillo/files/ |
D | safe_fd.cc | 111 SafeFD::SafeFDResult child_fd; in OpenSafelyInternal() local 114 child_fd = OpenPathComponentInternal(parent_fd, *itr, parent_flags, 0); in OpenSafelyInternal() 116 if (!child_fd.first.is_valid()) { in OpenSafelyInternal() 117 return child_fd; in OpenSafelyInternal() 119 parent_fd = child_fd.first.get(); in OpenSafelyInternal()
|
/external/libbrillo/brillo/minijail/ |
D | minijail.cc | 75 void Minijail::PreserveFd(struct minijail* jail, int parent_fd, int child_fd) { in PreserveFd() argument 76 minijail_preserve_fd(jail, parent_fd, child_fd); in PreserveFd()
|
D | minijail.h | 65 virtual void PreserveFd(struct minijail* jail, int parent_fd, int child_fd);
|
/external/minijail/ |
D | libminijail.c | 106 int child_fd; member 949 int API minijail_preserve_fd(struct minijail *j, int parent_fd, int child_fd) in minijail_preserve_fd() argument 951 if (parent_fd < 0 || child_fd < 0) in minijail_preserve_fd() 956 j->preserved_fds[j->preserved_fd_count].child_fd = child_fd; in minijail_preserve_fd() 2638 int fd = p->child_fd; in ensure_no_fd_conflict() 2672 int child_fd = j->preserved_fds[i].child_fd; in redirect_fds() local 2673 if (FD_ISSET(child_fd, &child_fds)) { in redirect_fds() 2674 die("fd %d is mapped more than once", child_fd); in redirect_fds() 2682 FD_SET(child_fd, &child_fds); in redirect_fds() 2687 j->preserved_fds[i].child_fd) { in redirect_fds() [all …]
|
D | libminijail.h | 326 int minijail_preserve_fd(struct minijail *j, int parent_fd, int child_fd);
|
/external/minijail/rust/minijail-sys/ |
D | libminijail.rs | 303 child_fd: ::std::os::raw::c_int, in minijail_preserve_fd()
|