Home
last modified time | relevance | path

Searched refs:O_DIRECTORY (Results 1 – 25 of 37) sorted by relevance

12

/Linux-v5.4/include/uapi/asm-generic/
Dfcntl.h53 #ifndef O_DIRECTORY
54 #define O_DIRECTORY 00200000 /* must be a directory */ macro
93 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
94 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/Linux-v5.4/tools/include/uapi/asm-generic/
Dfcntl.h52 #ifndef O_DIRECTORY
53 #define O_DIRECTORY 00200000 /* must be a directory */ macro
92 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
93 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
/Linux-v5.4/net/ceph/
Dceph_fs.c61 #ifdef O_DIRECTORY /* fixme */ in ceph_flags_to_mode()
62 if ((flags & O_DIRECTORY) == O_DIRECTORY) in ceph_flags_to_mode()
/Linux-v5.4/tools/perf/tests/
Dopenat-syscall-tp-fields.c17 #ifndef O_DIRECTORY
18 #define O_DIRECTORY 00200000 macro
37 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_openat_tp_fields()
/Linux-v5.4/tools/testing/selftests/exec/
Dexecveat.c228 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests()
230 O_DIRECTORY|O_RDONLY); in run_tests()
231 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests()
232 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests()
233 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests()
234 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
/Linux-v5.4/tools/perf/trace/beauty/
Dopen_flags.c10 #ifndef O_DIRECTORY
11 #define O_DIRECTORY 00200000 macro
/Linux-v5.4/tools/testing/selftests/pidfd/
Dpidfd_test.c59 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_simple_success()
99 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_exited_fail()
184 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail()
320 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
Dpidfd_wait.c52 pidfd = open("/proc/self", O_DIRECTORY | O_RDONLY | O_CLOEXEC); in test_pidfd_wait_simple()
/Linux-v5.4/tools/testing/selftests/proc/
Dfd-001-lookup.c146 fd = open("/", O_PATH|O_DIRECTORY); in main()
153 fd = open("/", O_PATH|O_DIRECTORY); in main()
Dfd-003-kthread.c48 dir_fd = open(buf, O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
Dread.c107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
/Linux-v5.4/arch/powerpc/include/uapi/asm/
Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/Linux-v5.4/arch/arm64/include/uapi/asm/
Dfcntl.h23 #define O_DIRECTORY 040000 /* must be a directory */ macro
/Linux-v5.4/arch/m68k/include/uapi/asm/
Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/Linux-v5.4/arch/arm/include/uapi/asm/
Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/Linux-v5.4/arch/parisc/include/uapi/asm/
Dfcntl.h19 #define O_DIRECTORY 000010000 /* must be a directory */ macro
/Linux-v5.4/arch/alpha/include/uapi/asm/
Dfcntl.h13 #define O_DIRECTORY 0100000 /* must be a directory */ macro
/Linux-v5.4/samples/bpf/
Dtest_cgrp2_sock2.c40 cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY); in main()
Dtest_cgrp2_attach.c158 cg_fd = open(argv[optind], O_DIRECTORY | O_RDONLY); in main()
Dtest_cgrp2_sock.c257 cg_fd = open(cgrp_path, O_DIRECTORY | O_RDONLY); in main()
/Linux-v5.4/include/linux/
Dfcntl.h11 FASYNC | O_DIRECT | O_LARGEFILE | O_DIRECTORY | O_NOFOLLOW | \
/Linux-v5.4/samples/pidfd/
Dpidfd-metadata.c58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
/Linux-v5.4/tools/include/nolibc/
Dnolibc.h450 #define O_DIRECTORY 0x10000 macro
630 #define O_DIRECTORY 0x10000 macro
815 #define O_DIRECTORY 0x4000 macro
1012 #define O_DIRECTORY 0x4000 macro
1218 #define O_DIRECTORY 0x10000 macro
1415 #define O_DIRECTORY 0x200000 macro
/Linux-v5.4/tools/testing/selftests/capabilities/
Dtest_execve.c224 int ourpath_fd = open(our_path, O_RDONLY | O_DIRECTORY); in do_tests()

12