Home
last modified time | relevance | path

Searched refs:parent_fd (Results 1 – 10 of 10) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/fcntl/
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/test/pseudo-tty/
Dpty_helper.py51 parent_fd, child_fd = pty.openpty() variable
52 assert parent_fd > STDIN
66 os.close(parent_fd)
86 fds = [STDIN, parent_fd]
97 if pipe(STDIN, parent_fd):
100 if parent_fd in rfds:
101 if pipe(parent_fd, STDOUT):
/third_party/ltp/testcases/kernel/syscalls/ioctl/
Dioctl_ns06.c62 int my_fd, child_fd, parent_fd; in run() local
66 parent_fd = ioctl(child_fd, NS_GET_USERNS); in run()
68 if (parent_fd == -1) { in run()
81 SAFE_FSTAT(parent_fd, &parent_stat); in run()
89 SAFE_CLOSE(parent_fd); in run()
Dioctl_ns05.c63 int my_fd, child_fd, parent_fd; in run() local
68 parent_fd = ioctl(child_fd, NS_GET_PARENT); in run()
70 if (parent_fd == -1) { in run()
85 SAFE_FSTAT(parent_fd, &parent_stat); in run()
94 SAFE_CLOSE(parent_fd); in run()
Dioctl_ns04.c29 int fd, parent_fd; in run() local
32 parent_fd = ioctl(fd, NS_GET_USERNS); in run()
33 if (parent_fd == -1) { in run()
Dioctl_ns02.c30 int fd, parent_fd; in run() local
33 parent_fd = ioctl(fd, NS_GET_PARENT); in run()
34 if (parent_fd == -1) { in run()
Dioctl_ns01.c48 int fd, parent_fd; in test_ns_get_parent() local
51 parent_fd = ioctl(fd, NS_GET_PARENT); in test_ns_get_parent()
52 if (parent_fd == -1) { in test_ns_get_parent()
/third_party/weston/compositor/
Dscreen-share.c930 shared_output_create(struct weston_output *output, int parent_fd) in shared_output_create() argument
943 so->parent.display = wl_display_connect_to_fd(parent_fd); in shared_output_create()
1028 close(parent_fd); in shared_output_create()
/third_party/glib/glib/
Dgspawn.c1261 dupfd_cloexec (int parent_fd) in dupfd_cloexec() argument
1267 fd = fcntl (parent_fd, F_DUPFD_CLOEXEC, 3); in dupfd_cloexec()
1278 fd = fcntl (parent_fd, F_DUPFD, 3); in dupfd_cloexec()
/third_party/glib/gio/
Dglocalfile.c2736 g_local_file_measure_size_of_file (gint parent_fd, in g_local_file_measure_size_of_file() argument
2747 if (g_local_file_fstatat (parent_fd, name->data, AT_SYMLINK_NOFOLLOW, in g_local_file_measure_size_of_file()
2843 dir_fd = openat (parent_fd, name->data, O_RDONLY|O_DIRECTORY); in g_local_file_measure_size_of_file()
2845 dir_fd = openat (parent_fd, name->data, O_RDONLY); in g_local_file_measure_size_of_file()