/external/strace/xlat/ |
D | open_mode_flags.h | 528 #if defined(O_DIRECTORY) || (defined(HAVE_DECL_O_DIRECTORY) && HAVE_DECL_O_DIRECTORY) 530 static_assert((O_DIRECTORY) == (010000), "O_DIRECTORY != 010000"); 533 # define O_DIRECTORY 010000 536 #if defined(O_DIRECTORY) || (defined(HAVE_DECL_O_DIRECTORY) && HAVE_DECL_O_DIRECTORY) 538 static_assert((O_DIRECTORY) == (040000), "O_DIRECTORY != 040000"); 541 # define O_DIRECTORY 040000 544 #if defined(O_DIRECTORY) || (defined(HAVE_DECL_O_DIRECTORY) && HAVE_DECL_O_DIRECTORY) 546 static_assert((O_DIRECTORY) == (0100000), "O_DIRECTORY != 0100000"); 549 # define O_DIRECTORY 0100000 552 #if defined(O_DIRECTORY) || (defined(HAVE_DECL_O_DIRECTORY) && HAVE_DECL_O_DIRECTORY) [all …]
|
D | open_mode_flags.in | 170 /* O_TMPFILE should be listed before O_DIRECTORY and __O_TMPFILE */ 184 O_DIRECTORY 010000 186 O_DIRECTORY 040000 188 O_DIRECTORY 0100000 190 O_DIRECTORY 0200000
|
/external/kernel-headers/original/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)
|
/external/igt-gpu-tools/runner/ |
D | runner_tests.c | 133 clear_directory_fd(openat(dirfd, dirent->d_name, O_DIRECTORY | O_RDONLY)); in clear_directory_fd() 144 int dirfd = open(name, O_DIRECTORY | O_RDONLY); in clear_directory() 305 igt_require((dirfd = open(dirname, O_DIRECTORY | O_RDONLY)) >= 0); 340 igt_require((dirfd = open(dirname, O_DIRECTORY | O_RDONLY)) >= 0); 769 dirfd = open(dirname, O_DIRECTORY, O_RDONLY); 820 dirfd = open(dirname, O_DIRECTORY, O_RDONLY); 874 igt_assert_f((dirfd = open(dirname, O_DIRECTORY | O_RDONLY)) >= 0, 879 igt_assert_f(openat(dirfd, "0", O_DIRECTORY | O_RDONLY) < 0, 895 igt_assert_f((dirfd = open(dirname, O_DIRECTORY | O_RDONLY)) >= 0, 903 igt_assert_f((subdirfd = openat(dirfd, "0", O_DIRECTORY | O_RDONLY)) >= 0, [all …]
|
D | runner_json_tests.c | 128 int testdirfd = openat(dirfd, dirname, O_RDONLY | O_DIRECTORY); in run_results_and_compare() 169 int dirfd = open(testdatadir, O_RDONLY | O_DIRECTORY);
|
/external/linux-kselftest/tools/testing/selftests/exec/ |
D | execveat.c | 228 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()
|
/external/python/cffi/demo/ |
D | btrfs-snap.py | 39 source = os.open(opts.source, os.O_DIRECTORY) 40 target = os.open(opts.target, os.O_DIRECTORY)
|
/external/libbrillo/brillo/ |
D | file_utils.cc | 176 flags | O_RDONLY | O_DIRECTORY | O_NONBLOCK | O_NOFOLLOW | O_CLOEXEC, in OpenPathComponentInternal() 222 int parent_flags = flags | O_NONBLOCK | O_RDONLY | O_DIRECTORY | O_PATH; in OpenSafelyInternal() 286 if (flags & O_DIRECTORY) { in OpenSafely() 316 if (flags & O_DIRECTORY) { in OpenAtSafely() 367 int parent_flags = O_NONBLOCK | O_RDONLY | O_DIRECTORY | O_PATH; in MkdirRecursively() 390 O_RDONLY | O_DIRECTORY, 0); in MkdirRecursively() 421 int flags = (is_directory ? O_RDONLY | O_DIRECTORY : O_WRONLY); in SyncFileOrDirectory()
|
/external/ltp/testcases/kernel/syscalls/symlinkat/ |
D | symlinkat01.c | 171 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup_every_copy() 224 olddirfd = SAFE_OPEN(cleanup, TEST_DIR1, O_DIRECTORY); in setup() 225 deldirfd = SAFE_OPEN(cleanup, TEST_DIR3, O_DIRECTORY); in setup()
|
/external/libbrillo/brillo/files/ |
D | safe_fd.cc | 46 file.c_str(), flags | O_DIRECTORY | O_NONBLOCK | O_NOFOLLOW, mode))); in OpenPathComponentInternal() 112 int parent_flags = flags | O_NONBLOCK | O_RDONLY | O_DIRECTORY | O_PATH; in OpenSafelyInternal() 180 OpenPathComponentInternal(-1, "/", O_DIRECTORY, 0); in Root() 282 return OpenSafelyInternal(get(), path, O_DIRECTORY | flags /*flags*/, in OpenExistingDir() 361 int dir_flags = O_NONBLOCK | O_DIRECTORY | O_PATH; in MakeDir() 376 dir_flags = flags | O_DIRECTORY; in MakeDir() 469 OpenPathComponentInternal(fd_.get(), name, O_DIRECTORY, 0); in Rmdir()
|
/external/ltp/testcases/kernel/syscalls/pidfd_send_signal/ |
D | pidfd_send_signal02.c | 73 pidfd = SAFE_OPEN("/proc/self", O_DIRECTORY | O_CLOEXEC); in setup() 74 init_pidfd = SAFE_OPEN("/proc/1", O_DIRECTORY | O_CLOEXEC); in setup()
|
D | pidfd_send_signal03.c | 55 pidfd = SAFE_OPEN(pid_filename, O_DIRECTORY | O_CLOEXEC); in verify_pidfd_send_signal() 73 O_DIRECTORY | O_CLOEXEC); in verify_pidfd_send_signal()
|
/external/strace/tests-m32/ |
D | openat.c | 40 # define STRACE_O_TMPFILE (O_TMPFILE & ~O_DIRECTORY) 87 { ARG_STR(O_DIRECTORY) }, in main()
|
/external/strace/tests/ |
D | openat.c | 40 # define STRACE_O_TMPFILE (O_TMPFILE & ~O_DIRECTORY) 87 { ARG_STR(O_DIRECTORY) }, in main()
|
/external/strace/tests-mx32/ |
D | openat.c | 40 # define STRACE_O_TMPFILE (O_TMPFILE & ~O_DIRECTORY) 87 { ARG_STR(O_DIRECTORY) }, in main()
|
/external/ltp/testcases/kernel/syscalls/readdir/ |
D | readdir21.c | 106 del_dir_fd = SAFE_OPEN(cleanup, TEST_DIR, O_RDONLY | O_DIRECTORY); in setup() 112 dir_fd = SAFE_OPEN(cleanup, TEST_DIR4, O_RDONLY | O_DIRECTORY); in setup()
|
/external/linux-kselftest/tools/testing/selftests/pidfd/ |
D | pidfd_test.c | 59 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()
|
/external/ltp/testcases/kernel/syscalls/renameat2/ |
D | renameat202.c | 96 olddirfd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); in setup() 97 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup()
|
D | renameat201.c | 119 olddirfd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); in setup() 120 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup()
|
/external/ltp/testcases/kernel/syscalls/linkat/ |
D | linkat01.c | 236 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup_every_copy() 305 olddirfd = SAFE_OPEN(cleanup, TEST_DIR1, O_DIRECTORY); in setup() 306 deldirfd = SAFE_OPEN(cleanup, TEST_DIR3, O_DIRECTORY); in setup()
|
/external/rust/crates/nix/test/ |
D | test_dir.rs | 12 let mut dir = Dir::open(tmp.path(), OFlag::O_DIRECTORY | OFlag::O_RDONLY | OFlag::O_CLOEXEC, in read() 33 let mut dir = Dir::open(tmp.path(), OFlag::O_DIRECTORY | OFlag::O_RDONLY | OFlag::O_CLOEXEC, in rewind()
|
/external/linux-kselftest/tools/testing/selftests/proc/ |
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-001-lookup.c | 146 fd = open("/", O_PATH|O_DIRECTORY); in main() 153 fd = open("/", O_PATH|O_DIRECTORY); in main()
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs05_make_tree.c | 138 dirfd = SAFE_OPEN(dirname, O_DIRECTORY); in thread_fn() 173 dirfd = openat(dirfd, "dir", O_DIRECTORY); in thread_fn()
|
/external/kernel-headers/original/uapi/asm-arm64/asm/ |
D | fcntl.h | 23 #define O_DIRECTORY 040000 /* must be a directory */ macro
|