Home
last modified time | relevance | path

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

1234567

/external/strace/xlat/
Dopen_mode_flags.h528 #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 …]
Dopen_mode_flags.in170 /* 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/
Dfcntl.h53 #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/
Drunner_tests.c133 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 …]
Drunner_json_tests.c128 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/
Dexecveat.c228 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/
Dbtrfs-snap.py39 source = os.open(opts.source, os.O_DIRECTORY)
40 target = os.open(opts.target, os.O_DIRECTORY)
/external/libbrillo/brillo/
Dfile_utils.cc176 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/
Dsymlinkat01.c171 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/
Dsafe_fd.cc46 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/
Dpidfd_send_signal02.c73 pidfd = SAFE_OPEN("/proc/self", O_DIRECTORY | O_CLOEXEC); in setup()
74 init_pidfd = SAFE_OPEN("/proc/1", O_DIRECTORY | O_CLOEXEC); in setup()
Dpidfd_send_signal03.c55 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/
Dopenat.c40 # define STRACE_O_TMPFILE (O_TMPFILE & ~O_DIRECTORY)
87 { ARG_STR(O_DIRECTORY) }, in main()
/external/strace/tests/
Dopenat.c40 # define STRACE_O_TMPFILE (O_TMPFILE & ~O_DIRECTORY)
87 { ARG_STR(O_DIRECTORY) }, in main()
/external/strace/tests-mx32/
Dopenat.c40 # define STRACE_O_TMPFILE (O_TMPFILE & ~O_DIRECTORY)
87 { ARG_STR(O_DIRECTORY) }, in main()
/external/ltp/testcases/kernel/syscalls/readdir/
Dreaddir21.c106 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/
Dpidfd_test.c59 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/
Drenameat202.c96 olddirfd = SAFE_OPEN(cleanup, TEST_DIR, O_DIRECTORY); in setup()
97 newdirfd = SAFE_OPEN(cleanup, TEST_DIR2, O_DIRECTORY); in setup()
Drenameat201.c119 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/
Dlinkat01.c236 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/
Dtest_dir.rs12 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/
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()
Dfd-001-lookup.c146 fd = open("/", O_PATH|O_DIRECTORY); in main()
153 fd = open("/", O_PATH|O_DIRECTORY); in main()
/external/ltp/testcases/network/nfs/nfs_stress/
Dnfs05_make_tree.c138 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/
Dfcntl.h23 #define O_DIRECTORY 040000 /* must be a directory */ macro

1234567