/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/ |
D | android-cloexec-open.cpp | 17 extern "C" int openat(int dirfd, const char *pathname, int flags, ...); 50 openat(0, "filename", O_RDWR); in c() 53 TEMP_FAILURE_RETRY(openat(0, "filename", O_RDWR)); in c() 56 openat(0, "filename", O_RDWR | O_EXCL); in c() 59 TEMP_FAILURE_RETRY(openat(0, "filename", O_RDWR | O_EXCL)); in c() 77 openat(0, "filename", 3); in f() 80 TEMP_FAILURE_RETRY(openat(0, "filename", 3)); in f() 93 openat(0, "filename", flag); in f() 95 TEMP_FAILURE_RETRY(openat(0, "filename", flag)); in f() 102 int openat(int dirfd, const char *pathname, int flags, ...); [all …]
|
/external/llvm-project/lld/test/ELF/ |
D | version-script-twice.s | 8 .weak openat 9 openat: label 11 .global openat@FBSD_1.1 12 openat@FBSD_1.1 = openat 14 .global openat@@FBSD_1.2 15 openat@@FBSD_1.2 = openat 17 # CHECK-DAG: openat@FBSD_1.1 18 # CHECK-DAG: openat@@FBSD_1.2
|
/external/python/cffi/demo/ |
D | readdir_ctypes.py | 33 openat = C.openat variable 34 openat.argtypes = [ctypes.c_int, ctypes.c_char_p, ctypes.c_int] 35 openat.restype = ctypes.c_int 48 dirfd = openat(basefd, path, 0)
|
/external/igt-gpu-tools/runner/ |
D | runner_tests.c | 51 int fd = openat(dirfd, name, O_RDONLY); in dump_file() 133 clear_directory_fd(openat(dirfd, dirent->d_name, O_DIRECTORY | O_RDONLY)); in clear_directory_fd() 194 igt_assert_f((fd = openat(dirfd, name, O_RDONLY)) >= 0, in assert_execution_created() 306 igt_require((fd = openat(dirfd, tmptestlist, O_CREAT | O_EXCL | O_WRONLY, 0660)) >= 0); 772 igt_assert_f((fd = openat(dirfd, "metadata.txt", O_RDONLY)), 823 igt_assert_f((fd = openat(dirfd, "joblist.txt", O_RDONLY)) >= 0, 879 igt_assert_f(openat(dirfd, "0", O_DIRECTORY | O_RDONLY) < 0, 881 igt_assert_f((fd = openat(dirfd, "metadata.txt", O_RDONLY)) >= 0, 884 igt_assert_f((fd = openat(dirfd, "joblist.txt", O_RDONLY)) >= 0, 887 igt_assert_f((fd = openat(dirfd, "uname.txt", O_RDONLY)) < 0, [all …]
|
D | executor.c | 334 int fd = openat(dirfd, name, O_RDWR | O_CREAT | O_CLOEXEC, 0666); in open_at_end() 351 return openat(dirfd, name, O_RDONLY); in open_for_reading() 925 if ((dirfd = openat(resdirfd, name, O_DIRECTORY | O_RDONLY | O_CLOEXEC)) < 0) { in execute_next_entry() 1069 if ((resdirfd = openat(dirfd, name, O_DIRECTORY | O_RDONLY)) < 0) in clear_old_results() 1133 if ((resdirfd = openat(dirfd, name, O_DIRECTORY | O_RDONLY)) >= 0) in initialize_execute_state_from_resume() 1143 if ((fd = openat(resdirfd, filenames[_F_JOURNAL], O_RDONLY)) >= 0) { in initialize_execute_state_from_resume() 1216 if ((abortfd = openat(resdirfd, "aborted.txt", O_CREAT | O_WRONLY | O_EXCL, 0666)) >= 0) { in write_abort_file() 1311 if ((unamefd = openat(resdirfd, "uname.txt", O_CREAT | O_WRONLY | O_TRUNC, 0666)) < 0) { in execute() 1319 if ((timefd = openat(resdirfd, "starttime.txt", O_CREAT | O_WRONLY | O_EXCL, 0666)) >= 0) { in execute() 1441 if ((timefd = openat(resdirfd, "endtime.txt", O_CREAT | O_WRONLY | O_EXCL, 0666)) >= 0) { in execute()
|
D | runner_json_tests.c | 128 int testdirfd = openat(dirfd, dirname, O_RDONLY | O_DIRECTORY); in run_results_and_compare() 136 reference = openat(testdirfd, "reference.json", O_RDONLY); in run_results_and_compare()
|
/external/ltp/testcases/kernel/syscalls/openat/ |
D | openat02.c | 123 TEST(openat(AT_FDCWD, TEST_FILE, O_APPEND | O_RDWR, 0777)); in testfunc_append() 154 TEST(openat(AT_FDCWD, TEST_FILE, O_CLOEXEC | O_RDWR, 0777)); in testfunc_cloexec() 210 TEST(openat(AT_FDCWD, LARGE_FILE, O_LARGEFILE | O_RDONLY, 0777)); in testfunc_largefile() 245 TEST(openat(AT_FDCWD, TEST_FILE, O_NOATIME | O_RDONLY, 0777)); in testfunc_noatime() 266 TEST(openat(AT_FDCWD, SFILE, O_NOFOLLOW | O_RDONLY, 0777)); in testfunc_nofollow() 280 TEST(openat(AT_FDCWD, TEST_FILE, O_TRUNC | O_RDWR, 0777)); in testfunc_trunc()
|
D | openat.h | 29 int openat(int dirfd, const char *pathname, int flags, mode_t mode) in openat() function
|
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/ |
D | android-cloexec-open.rst | 9 sensitive data. Open-like functions including ``open()``, ``openat()``, and 18 openat(0, "filename", O_RDWR); 24 openat(0, "filename", O_RDWR | O_CLOEXEC);
|
/external/llvm-project/clang/test/Analysis/ |
D | unix-api.c | 12 int openat(int, const char *, int, ...); 33 …fd = openat(base_fd, path, O_RDONLY, mode, NULL); // expected-warning{{Call to 'openat' with more … in openat_2() 47 …fd = openat(base_fd, path, O_RDONLY, NULL); // expected-warning{{The 4th argument to 'openat' is n… in openat_3()
|
D | unix-fns.c | 78 int openat(int, const char *, int, ...); 94 fd = openat(directory_fd, relative_path, O_RDONLY); // no-warning in test_open_at() 98 …fd = openat(directory_fd, relative_path, O_CREAT); // expected-warning{{Call to 'openat' requires … in test_open_at()
|
/external/linux-kselftest/tools/testing/selftests/proc/ |
D | read.c | 45 fd = openat(dirfd(d), filename, O_RDONLY|O_NONBLOCK); in f_reg() 58 fd = openat(dirfd(d), filename, O_WRONLY); in f_reg_write() 107 fd = openat(dirfd(d), de->d_name, O_DIRECTORY|O_RDONLY); in f()
|
D | fd-003-kthread.c | 56 fd = openat(dir_fd, "stat", O_RDONLY); in kernel_thread_fd() 90 fd = openat(dir_fd, "fd", O_RDONLY|O_DIRECTORY); in kernel_thread_fd()
|
/external/igt-gpu-tools/lib/ |
D | igt_sysfs.c | 183 params = openat(dir, in igt_sysfs_open_parameters() 222 fd = openat(dir, attr, O_WRONLY); in igt_sysfs_write() 248 fd = openat(dir, attr, O_RDONLY); in igt_sysfs_read() 292 fd = openat(dir, attr, O_RDONLY); in igt_sysfs_get() 346 fd = openat(dir, attr, O_RDONLY); in igt_sysfs_scanf() 372 fd = openat(dir, attr, O_WRONLY); in igt_sysfs_vprintf()
|
/external/linux-kselftest/tools/testing/selftests/tmpfs/ |
D | bug-link-o-tmpfile.c | 49 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main() 60 fd = openat(AT_FDCWD, "/tmp", O_WRONLY|O_TMPFILE, 0600); in main()
|
/external/ltp/testcases/network/nfs/nfs_stress/ |
D | nfs05_make_tree.c | 142 fd = openat(dirfd, "makefile", O_CREAT | O_RDWR, in thread_fn() 156 fd = openat(dirfd, cfile, O_CREAT | O_RDWR, in thread_fn() 173 dirfd = openat(dirfd, "dir", O_DIRECTORY); in thread_fn()
|
/external/toybox/toys/other/ |
D | lspci.c | 50 if (-1 == (dirfd = openat(dirtree_parentfd(new), new->name, O_RDONLY))) 61 if (-1 == (fd = openat(dirfd, *fields, O_RDONLY))) {
|
D | acpi.c | 37 if ((fd = openat(dirfd, name, O_RDONLY)) < 0) return -1; 56 if ((fd = openat(dfd, "type", O_RDONLY)) < 0) goto done; in acpi_callback()
|
/external/perfetto/src/profiling/perf/ |
D | proc_descriptors.cc | 57 base::ScopedFile{openat(dir_fd.get(), "maps", O_RDONLY | O_CLOEXEC)}; in GetDescriptorsForPid() 66 base::ScopedFile{openat(dir_fd.get(), "mem", O_RDONLY | O_CLOEXEC)}; in GetDescriptorsForPid()
|
/external/igt-gpu-tools/tests/ |
D | debugfs_test.c | 54 openat(path_fd, dirent->d_name, O_RDONLY | in read_and_discard_sysfs_entries() 68 sub_fd = openat(path_fd, dirent->d_name, O_RDONLY); in read_and_discard_sysfs_entries()
|
/external/strace/tests-m32/ |
D | dev-yy.gen.test | 4 run_strace_match_diff -a30 -e trace=openat,fsync -P "/dev/full" -P "/dev/zero" -P "/dev/sda" -yy
|
/external/strace/tests/ |
D | dev-yy.gen.test | 4 run_strace_match_diff -a30 -e trace=openat,fsync -P "/dev/full" -P "/dev/zero" -P "/dev/sda" -yy
|
/external/strace/tests-mx32/ |
D | dev-yy.gen.test | 4 run_strace_match_diff -a30 -e trace=openat,fsync -P "/dev/full" -P "/dev/zero" -P "/dev/sda" -yy
|
/external/crosvm/seccomp/x86_64/ |
D | gpu_device.policy | 68 # mmap/mprotect/open/openat differ from the common_device.policy 72 openat: 1
|
/external/crosvm/seccomp/aarch64/ |
D | balloon_device.policy | 7 openat: return ENOENT
|