/linux/tools/include/uapi/asm-generic/ |
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) 93 #define O_TMPFILE_MASK (__O_TMPFILE | O_DIRECTORY | O_CREAT)
|
/linux/include/uapi/asm-generic/ |
A 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/tools/testing/selftests/landlock/ |
A D | fs_test.c | 315 ruleset_fd = open(dir_s1d1, O_DIRECTORY | O_CLOEXEC); in TEST_F_FORK() 681 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 687 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 939 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 944 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 973 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 978 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 994 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 999 ASSERT_EQ(0, test_open(dir_s1d3, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() 1024 ASSERT_EQ(0, test_open(dir_s1d2, O_RDONLY | O_DIRECTORY)); in TEST_F_FORK() [all …]
|
A D | base_test.c | 204 O_DIRECTORY | O_CLOEXEC); in TEST() 242 ASSERT_EQ(-1, open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC)); in TEST() 244 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 254 dir_fd = open("/", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST() 257 dir_fd = open("/tmp", O_RDONLY | O_DIRECTORY | O_CLOEXEC); in TEST()
|
/linux/fs/ceph/ |
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/tools/testing/selftests/exec/ |
A 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/tools/perf/tests/ |
A 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/tools/perf/trace/beauty/ |
A D | open_flags.c | 10 #ifndef O_DIRECTORY 11 #define O_DIRECTORY 00200000 macro
|
/linux/tools/testing/selftests/pidfd/ |
A 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/tools/testing/selftests/proc/ |
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()
|
A D | fd-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
A D | fd-002-posix-eq.c | 32 fd0 = open("/", O_DIRECTORY|O_RDONLY); in main()
|
A D | read.c | 109 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
|
/linux/arch/m68k/include/uapi/asm/ |
A D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux/arch/arm/include/uapi/asm/ |
A D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux/arch/powerpc/include/uapi/asm/ |
A D | fcntl.h | 5 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux/arch/arm64/include/uapi/asm/ |
A D | fcntl.h | 23 #define O_DIRECTORY 040000 /* must be a directory */ macro
|
/linux/arch/parisc/include/uapi/asm/ |
A D | fcntl.h | 17 #define O_DIRECTORY 000010000 /* must be a directory */ macro
|
/linux/arch/alpha/include/uapi/asm/ |
A D | fcntl.h | 13 #define O_DIRECTORY 0100000 /* must be a directory */ macro
|
/linux/samples/bpf/ |
A D | test_cgrp2_sock2.c | 48 cg_fd = open(argv[1], O_DIRECTORY | O_RDONLY); in main()
|
/linux/include/linux/ |
A D | fcntl.h | 12 FASYNC | O_DIRECT | O_LARGEFILE | O_DIRECTORY | O_NOFOLLOW | \
|
/linux/include/trace/events/ |
A D | fs.h | 37 { O_DIRECTORY, "O_DIRECTORY" }, \
|
/linux/samples/pidfd/ |
A D | pidfd-metadata.c | 58 procfd = open(path, O_DIRECTORY | O_RDONLY | O_CLOEXEC); in pidfd_metadata_fd()
|
/linux/tools/testing/selftests/openat2/ |
A D | rename_attack_test.c | 43 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir()
|
A D | resolve_test.c | 59 dfd = open(dirname, O_PATH | O_DIRECTORY); in setup_testdir() 65 tmpfd = openat(dfd, "root", O_PATH | O_DIRECTORY); in setup_testdir() 459 dfd = openat(rootfd, test->dir, O_PATH | O_DIRECTORY); in test_openat2_opath_tests()
|