/linux-6.1.9/tools/include/uapi/asm-generic/ |
D | fcntl.h | 53 #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-6.1.9/include/uapi/asm-generic/ |
D | fcntl.h | 53 #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-6.1.9/tools/testing/selftests/landlock/ |
D | base_test.c | 182 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 205 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 294 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 335 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 337 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 347 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 350 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
|
D | fs_test.c | 322 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 325 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 333 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 350 path_beneath.parent_fd = open(dir_s1d2, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 364 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 449 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 754 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 760 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 766 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 810 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() [all …]
|
/linux-6.1.9/fs/ceph/ |
D | util.c | 59 #ifdef O_DIRECTORY /* fixme */ in ceph_flags_to_mode() 60 if ((flags & O_DIRECTORY) == O_DIRECTORY) in ceph_flags_to_mode()
|
/linux-6.1.9/tools/perf/tests/ |
D | openat-syscall-tp-fields.c | 18 #ifndef O_DIRECTORY 19 #define O_DIRECTORY 00200000 macro 39 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_openat_tp_fields()
|
/linux-6.1.9/tools/testing/selftests/exec/ |
D | execveat.c | 230 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests() 232 O_DIRECTORY|O_RDONLY); in run_tests() 233 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests() 234 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests() 235 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 236 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
|
/linux-6.1.9/tools/perf/trace/beauty/ |
D | open_flags.c | 10 #ifndef O_DIRECTORY 11 #define O_DIRECTORY 00200000 macro
|
/linux-6.1.9/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 69 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_simple_success() 116 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_exited_fail() 219 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail() 355 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
|
/linux-6.1.9/tools/testing/selftests/proc/ |
D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
D | fd-003-kthread.c | 48 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()
|
D | fd-002-posix-eq.c | 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
|
/linux-6.1.9/arch/arm/include/uapi/asm/ |
D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux-6.1.9/arch/powerpc/include/uapi/asm/ |
D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux-6.1.9/arch/arm64/include/uapi/asm/ |
D | fcntl.h | 23 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux-6.1.9/arch/m68k/include/uapi/asm/ |
D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux-6.1.9/arch/parisc/include/uapi/asm/ |
D | fcntl.h | 17 #define O_DIRECTORY 000010000 /* must be a directory */ macro
|
/linux-6.1.9/arch/alpha/include/uapi/asm/ |
D | fcntl.h | 13 #define O_DIRECTORY 0100000 /* must be a directory */ macro
|
/linux-6.1.9/samples/bpf/ |
D | test_cgrp2_sock2.c | 48 cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY); in main()
|
/linux-6.1.9/include/linux/ |
D | fcntl.h | 12 FASYNC | O_DIRECT | O_LARGEFILE | O_DIRECTORY | O_NOFOLLOW | \
|
/linux-6.1.9/include/trace/events/ |
D | fs.h | 37 { O_DIRECTORY, "O_DIRECTORY" }, \
|
/linux-6.1.9/samples/pidfd/ |
D | pidfd-metadata.c | 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
|
/linux-6.1.9/tools/testing/selftests/openat2/ |
D | rename_attack_test.c | 43 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
|
/linux-6.1.9/tools/include/nolibc/ |
D | arch-arm.h | 20 #define O_DIRECTORY 0x4000 macro
|
D | arch-i386.h | 20 #define O_DIRECTORY 0x10000 macro
|