Home
last modified time | relevance | path

Searched refs:parent_fd (Results 1 - 8 of 8) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fcntl/
H A Dfcntl39.c27 static int parent_fd, subdir_fd; variable
32 if (si->si_fd == parent_fd) in dnotify_handler()
64 parent_fd = SAFE_OPEN(".", O_RDONLY); in verify_dnotify()
68 setup_dnotify(parent_fd); in verify_dnotify()
101 SAFE_CLOSE(parent_fd); in verify_dnotify()
119 if (parent_fd > 0) in cleanup()
120 SAFE_CLOSE(parent_fd); in cleanup()
H A Dfcntl38.c21 static int parent_fd, subdir_fd; variable
26 if (si->si_fd == parent_fd) in dnotify_handler()
57 parent_fd = SAFE_OPEN(".", O_RDONLY); in verify_dnotify()
60 setup_dnotify(parent_fd); in verify_dnotify()
73 SAFE_CLOSE(parent_fd); in verify_dnotify()
84 if (parent_fd > 0) in cleanup()
85 SAFE_CLOSE(parent_fd); in cleanup()
/third_party/node/tools/
H A Dpseudo-tty.py53 parent_fd, child_fd = pty.openpty()
54 assert parent_fd > STDIN
68 os.close(parent_fd)
88 fds = [STDIN, parent_fd]
99 if pipe(STDIN, parent_fd):
102 if parent_fd in rfds:
103 if pipe(parent_fd, STDOUT):
/third_party/ltp/testcases/kernel/syscalls/ioctl/
H A Dioctl_ns06.c64 int my_fd, child_fd, parent_fd; in run() local
68 parent_fd = ioctl(child_fd, NS_GET_USERNS); in run()
70 if (parent_fd == -1) { in run()
83 SAFE_FSTAT(parent_fd, &parent_stat); in run()
91 SAFE_CLOSE(parent_fd); in run()
H A Dioctl_ns05.c65 int my_fd, child_fd, parent_fd; in run() local
70 parent_fd = ioctl(child_fd, NS_GET_PARENT); in run()
72 if (parent_fd == -1) { in run()
87 SAFE_FSTAT(parent_fd, &parent_stat); in run()
96 SAFE_CLOSE(parent_fd); in run()
H A Dioctl_ns02.c33 int fd, parent_fd; in run() local
36 parent_fd = ioctl(fd, NS_GET_PARENT); in run()
37 if (parent_fd == -1) { in run()
H A Dioctl_ns04.c32 int fd, parent_fd; in run() local
35 parent_fd = ioctl(fd, NS_GET_USERNS); in run()
36 if (parent_fd == -1) { in run()
H A Dioctl_ns01.c50 int fd, parent_fd; in test_ns_get_parent() local
53 parent_fd = ioctl(fd, NS_GET_PARENT); in test_ns_get_parent()
54 if (parent_fd == -1) { in test_ns_get_parent()

Completed in 2 milliseconds