Home
last modified time | relevance | path

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

/third_party/node/test/pseudo-tty/
Dpty_helper.py51 parent_fd, child_fd = pty.openpty() variable
54 mode = termios.tcgetattr(child_fd)
61 termios.tcsetattr(child_fd, termios.TCSANOW, mode)
69 name = os.ttyname(child_fd)
71 os.dup2(fd, child_fd)
74 os.dup2(child_fd, STDIN)
75 os.dup2(child_fd, STDOUT)
76 os.dup2(child_fd, STDERR)
78 if child_fd > STDERR:
79 os.close(child_fd)
[all …]
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_ns06.c62 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()
Dioctl_ns05.c63 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()
/third_party/node/src/
Dspawn_sync.cc887 int SyncProcessRunner::ParseStdioOption(int child_fd, in ParseStdioOption() argument
894 return AddStdioIgnore(child_fd); in ParseStdioOption()
923 return AddStdioPipe(child_fd, readable, writable, buf); in ParseStdioOption()
929 return AddStdioInheritFD(child_fd, inherit_fd); in ParseStdioOption()
938 int SyncProcessRunner::AddStdioIgnore(uint32_t child_fd) { in AddStdioIgnore() argument
939 CHECK_LT(child_fd, stdio_count_); in AddStdioIgnore()
940 CHECK(!stdio_pipes_[child_fd]); in AddStdioIgnore()
942 uv_stdio_containers_[child_fd].flags = UV_IGNORE; in AddStdioIgnore()
948 int SyncProcessRunner::AddStdioPipe(uint32_t child_fd, in AddStdioPipe() argument
952 CHECK_LT(child_fd, stdio_count_); in AddStdioPipe()
[all …]
Dspawn_sync.h179 int ParseStdioOption(int child_fd, v8::Local<v8::Object> js_stdio_option);
181 inline int AddStdioIgnore(uint32_t child_fd);
182 inline int AddStdioPipe(uint32_t child_fd,
186 inline int AddStdioInheritFD(uint32_t child_fd, int inherit_fd);