Home
last modified time | relevance | path

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

123

/linux/tools/testing/selftests/filesystems/overlayfs/
H A Dset_layers_via_fds.c75 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()
99 layer_fds[8] = openat(fd_tmpfs, "d3", O_DIRECTORY); in TEST_F()
187 layer_fds[i] = openat(fd_tmpfs, path, O_DIRECTORY); in TEST_F()
[all …]
/linux/tools/testing/selftests/landlock/
H A Dbase_test.c227 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 Dfs_test.c489 open(dir_s1d2, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
492 ruleset_fd = open(dir_s1d1, O_PATH | O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
500 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK()
517 path_beneath.parent_fd = open(dir_s1d2, 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()
977 ASSERT_EQ(EACCES, test_open(dir_s1d1, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
983 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
989 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK()
[all …]
H A Dwait-pipe-sandbox.c96 if (open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC) >= 0) { in main()
119 if (open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC) >= 0) { in main()
/linux/include/uapi/asm-generic/
H A Dfcntl.h52 #ifndef O_DIRECTORY
53 #define O_DIRECTORY 00200000 /* must be a directory */ macro
92 #define O_TMPFILE (__O_TMPFILE | O_DIRECTORY)
/linux/fs/ceph/
H A Dutil.c59 #ifdef O_DIRECTORY /* fixme */ in ceph_flags_to_mode()
60 if ((flags & O_DIRECTORY) == O_DIRECTORY) in ceph_flags_to_mode()
/linux/tools/perf/tests/
H A Dopenat-syscall-tp-fields.c19 #ifndef O_DIRECTORY
20 #define O_DIRECTORY 00200000 macro
39 int flags = O_RDONLY | O_DIRECTORY; in test__syscall_openat_tp_fields()
H A Dhwmon_pmu.c86 test_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get()
98 hwmon_dirfd = open(dir, O_PATH|O_DIRECTORY); in test_pmu_get()
/linux/tools/testing/selftests/exec/
H A Dexecveat.c271 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/tools/perf/trace/beauty/
H A Dopen_flags.c10 #ifndef O_DIRECTORY
11 #define O_DIRECTORY 00200000 macro
/linux/tools/testing/selftests/pidfd/
H A Dpidfd_test.c104 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/tools/testing/selftests/proc/
H A Dfd-001-lookup.c146 fd = open("/", O_PATH|O_DIRECTORY); in main()
153 fd = open("/", O_PATH|O_DIRECTORY); in main()
H A 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()
H A Dfd-002-posix-eq.c32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
/linux/tools/perf/util/
H A Dhwmon_pmu.c248 io_dir__init(&dir, open(pmu->hwmon_dir, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in hwmon_pmu__read_events()
417 int dir = open(hwm->hwmon_dir, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in hwmon_pmu__describe_items()
716 io_dir__init(&class_hwmon_dir, open(buf, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in perf_pmus__read_hwmon_pmus()
731 hwmon_dir = open(buf, O_DIRECTORY); in perf_pmus__read_hwmon_pmus()
767 int dir = open(hwm->hwmon_dir, O_CLOEXEC | O_DIRECTORY | O_RDONLY); in evsel__hwmon_pmu_open()
H A Dtp_pmu.c41 io_dir__init(&evt_dir, open(evt_path, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in tp_pmu__for_each_tp_event()
74 io_dir__init(&events_dir, open(events_dir_path, O_CLOEXEC | O_DIRECTORY | O_RDONLY)); in tp_pmu__for_each_tp_sys()
/linux/arch/arm/include/uapi/asm/
H A Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/arch/arm64/include/uapi/asm/
H A Dfcntl.h23 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/arch/m68k/include/uapi/asm/
H A Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/arch/powerpc/include/uapi/asm/
H A Dfcntl.h5 #define O_DIRECTORY 040000 /* must be a directory */ macro
/linux/rust/kernel/fs/
H A Dfile.rs43 pub const O_DIRECTORY: u32 = bindings::O_DIRECTORY; constant
/linux/arch/parisc/include/uapi/asm/
H A Dfcntl.h17 #define O_DIRECTORY 000010000 /* must be a directory */ macro
/linux/arch/alpha/include/uapi/asm/
H A Dfcntl.h13 #define O_DIRECTORY 0100000 /* must be a directory */ macro
/linux/tools/perf/ui/browsers/
H A Dscripts.c181 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/include/linux/
H A Dfcntl.h12 FASYNC | O_DIRECT | O_LARGEFILE | O_DIRECTORY | O_NOFOLLOW | \

123