| /linux-6.15/tools/testing/selftests/filesystems/overlayfs/ |
| H A D | set_layers_via_fds.c | 75 layer_fds[0] = openat(fd_tmpfs, "w", O_DIRECTORY); in TEST_F() 78 layer_fds[1] = openat(fd_tmpfs, "u", O_DIRECTORY); in TEST_F() 81 layer_fds[2] = openat(fd_tmpfs, "l1", O_DIRECTORY); in TEST_F() 84 layer_fds[3] = openat(fd_tmpfs, "l2", O_DIRECTORY); in TEST_F() 87 layer_fds[4] = openat(fd_tmpfs, "l3", O_DIRECTORY); in TEST_F() 90 layer_fds[5] = openat(fd_tmpfs, "l4", O_DIRECTORY); in TEST_F() 93 layer_fds[6] = openat(fd_tmpfs, "d1", O_DIRECTORY); in TEST_F() 96 layer_fds[7] = openat(fd_tmpfs, "d2", O_DIRECTORY); in TEST_F() 192 fd_work = openat(fd_tmpfs, "w", O_DIRECTORY); in TEST_F() 196 fd_upper = openat(fd_tmpfs, "u", O_DIRECTORY); in TEST_F() [all …]
|
| /linux-6.15/tools/testing/selftests/landlock/ |
| H A D | base_test.c | 227 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 250 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 404 open("/tmp", O_PATH | O_NOFOLLOW | O_DIRECTORY | O_CLOEXEC); in TEST() 432 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 434 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 444 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 447 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 467 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 480 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 494 EXPECT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() [all …]
|
| H A D | wait-pipe-sandbox.c | 96 if (open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC) >= 0) { in main() 119 if (open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC) >= 0) { in main()
|
| H A D | fs_test.c | 489 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 500 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 531 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 618 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 671 open(TMP_DIR, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 1897 dirfd = open(dir_s1d2, O_DIRECTORY); in test_relative_path() 5154 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 5167 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 5253 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 5279 test_open(path_entry, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() [all …]
|
| /linux-6.15/include/uapi/asm-generic/ |
| H A D | fcntl.h | 52 #ifndef O_DIRECTORY 53 #define O_DIRECTORY 00200000 /* must be a directory */ macro 92 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
|
| /linux-6.15/fs/ceph/ |
| H A 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.15/tools/perf/tests/ |
| H A D | openat-syscall-tp-fields.c | 19 #ifndef O_DIRECTORY 20 #define O_DIRECTORY 00200000 macro 40 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_openat_tp_fields()
|
| H A D | hwmon_pmu.c | 85 test_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get() 96 hwmon_dirfd = openat(test_dirfd, "hwmon1234", O_DIRECTORY); in test_pmu_get()
|
| /linux-6.15/tools/testing/selftests/exec/ |
| H A D | execveat.c | 271 int subdir_dfd = open_or_die("subdir", O_DIRECTORY|O_RDONLY); in run_tests() 273 O_DIRECTORY|O_RDONLY); in run_tests() 274 int dot_dfd = open_or_die(".", O_DIRECTORY|O_RDONLY); in run_tests() 275 int root_dfd = open_or_die("/", O_DIRECTORY|O_RDONLY); in run_tests() 276 int dot_dfd_path = open_or_die(".", O_DIRECTORY|O_RDONLY|O_PATH); in run_tests() 277 int dot_dfd_cloexec = open_or_die(".", O_DIRECTORY|O_RDONLY|O_CLOEXEC); in run_tests()
|
| /linux-6.15/tools/perf/trace/beauty/ |
| H A D | open_flags.c | 10 #ifndef O_DIRECTORY 11 #define O_DIRECTORY 00200000 macro
|
| /linux-6.15/tools/testing/selftests/proc/ |
| H A D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
| H A 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()
|
| H A D | fd-002-posix-eq.c | 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
|
| /linux-6.15/tools/testing/selftests/pidfd/ |
| H A D | pidfd_test.c | 104 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_simple_success() 168 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_exited_fail() 272 pidfd = open(buf, O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_recycled_pid_fail() 408 pidfd = open("/proc/self", O_DIRECTORY | O_CLOEXEC); in test_pidfd_send_signal_syscall_support()
|
| /linux-6.15/arch/arm/include/uapi/asm/ |
| H A D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
| /linux-6.15/arch/m68k/include/uapi/asm/ |
| H A D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
| /linux-6.15/arch/arm64/include/uapi/asm/ |
| H A D | fcntl.h | 23 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
| /linux-6.15/arch/powerpc/include/uapi/asm/ |
| H A D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
| /linux-6.15/arch/parisc/include/uapi/asm/ |
| H A D | fcntl.h | 17 #define O_DIRECTORY 000010000 /* must be a directory */ macro
|
| /linux-6.15/arch/alpha/include/uapi/asm/ |
| H A D | fcntl.h | 13 #define O_DIRECTORY 0100000 /* must be a directory */ macro
|
| /linux-6.15/rust/kernel/fs/ |
| H A D | file.rs | 36 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY; constant
|
| /linux-6.15/include/linux/ |
| H A D | fcntl.h | 12 FASYNC | O_DIRECT | O_LARGEFILE | O_DIRECTORY | O_NOFOLLOW | \
|
| /linux-6.15/include/trace/misc/ |
| H A D | fs.h | 37 { O_DIRECTORY, "O_DIRECTORY" }, \
|
| /linux-6.15/tools/perf/ui/browsers/ |
| H A D | scripts.c | 181 scripts_dir_fd = open(scripts_path, O_DIRECTORY); in find_scripts() 212 lang_dir_fd = openat(scripts_dir_fd, lang_dirent->d_name, O_DIRECTORY); in find_scripts()
|
| /linux-6.15/samples/pidfd/ |
| H A D | pidfd-metadata.c | 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
|