/bionic/libc/include/bits/fortify/ |
D | fcntl.h | 78 int openat(int dirfd, const char* pathname, int flags, mode_t modes, ...) 83 int openat(int dirfd, const char* const __pass_object_size pathname, int flags) in openat() argument 87 return __openat_2(dirfd, pathname, flags); in openat() 89 return __openat_real(dirfd, pathname, flags); in openat() 94 int openat(int dirfd, const char* const __pass_object_size pathname, int flags, mode_t modes) in openat() argument 98 return __openat_real(dirfd, pathname, flags, modes); in openat() 124 int openat64(int dirfd, const char* pathname, int flags, mode_t modes, ...) 129 int openat64(int dirfd, const char* const __pass_object_size pathname, int flags) in openat64() argument 132 return openat(dirfd, pathname, flags); in openat64() 136 int openat64(int dirfd, const char* const __pass_object_size pathname, int flags, mode_t modes) in openat64() argument [all …]
|
D | unistd.h | 49 ssize_t __readlinkat_chk(int dirfd, const char*, char*, size_t, size_t) __INTRODUCED_IN(23); 197 ssize_t readlinkat(int dirfd, const char* path, char* const __pass_object_size buf, size_t size) in readlinkat() argument 205 return __readlinkat_chk(dirfd, path, buf, size, bos); in readlinkat() 208 return __call_bypassing_fortify(readlinkat)(dirfd, path, buf, size); in readlinkat()
|
/bionic/libc/bionic/ |
D | fchmodat.cpp | 39 int fchmodat(int dirfd, const char* pathname, mode_t mode, int flags) { in fchmodat() argument 50 ScopedFd fd(openat(dirfd, pathname, O_PATH | O_NOFOLLOW | O_CLOEXEC)); in fchmodat() 61 return __fchmodat(dirfd, pathname, mode); in fchmodat()
|
D | faccessat.cpp | 35 int faccessat(int dirfd, const char* pathname, int mode, int flags) { in faccessat() argument 59 return __faccessat(dirfd, pathname, mode); in faccessat()
|
D | dirent.cpp | 83 int dirfd(DIR* d) { in dirfd() function
|
D | fortify.cpp | 207 ssize_t __readlinkat_chk(int dirfd, const char* path, char* buf, size_t size, size_t buf_size) { in __readlinkat_chk() argument 210 return readlinkat(dirfd, path, buf, size); in __readlinkat_chk()
|
D | fts.c | 615 if (fts_safe_changedir(sp, cur, dirfd(dirp), NULL)) { in fts_build() 727 p->fts_info = fts_stat(sp, p, 0, dirfd(dirp)); in fts_build()
|
/bionic/tests/ |
D | clang_fortify_tests.cpp | 247 int dirfd = 0; in FORTIFY_TEST() local 271 EXPECT_FORTIFY_DEATH(openat(dirfd, target, O_CREAT)); in FORTIFY_TEST() 273 EXPECT_FORTIFY_DEATH(openat(dirfd, target, O_TMPFILE)); in FORTIFY_TEST() 275 EXPECT_FORTIFY_DEATH(openat64(dirfd, target, O_CREAT)); in FORTIFY_TEST() 277 EXPECT_FORTIFY_DEATH(openat64(dirfd, target, O_TMPFILE)); in FORTIFY_TEST() 284 EXPECT_NO_DEATH(openat(dirfd, target, O_RDONLY, 0777)); in FORTIFY_TEST() 286 EXPECT_NO_DEATH(openat64(dirfd, target, O_RDONLY, 0777)); in FORTIFY_TEST()
|
D | fdsan_test.cpp | 135 EXPECT_FDSAN_DEATH(close(dirfd(dir)), "actually owned by DIR"); in TEST_F()
|
D | stdio_test.cpp | 2726 android::base::unique_fd dirfd{open(td.path, O_PATH)}; in TEST() local 2737 ASSERT_EQ(0, renameat(dirfd, "old", dirfd, "new")); in TEST() 2747 android::base::unique_fd dirfd{open(td.path, O_PATH)}; in TEST() 2758 ASSERT_EQ(0, renameat2(dirfd, "old", dirfd, "new", 0)); in TEST() 2766 ASSERT_EQ(-1, renameat2(dirfd, "old", dirfd, "new", RENAME_NOREPLACE)); in TEST()
|
/bionic/tests/headers/posix/ |
D | dirent_h.c | 48 FUNCTION(dirfd, int (*f)(DIR*)); in dirent_h()
|
/bionic/libc/include/ |
D | dirent.h | 171 int dirfd(DIR* __dir);
|
/bionic/libc/ |
D | SECCOMP_ALLOWLIST_COMMON.TXT | 49 int execveat(int dirfd, const char* pathname, char* const* argv, char* const* envp, int flags) all
|
D | libc.map.txt | 292 dirfd;
|
/bionic/libc/tools/ |
D | posix-2013.txt | 178 dirfd
|
/bionic/tools/versioner/platforms/ |
D | libc.map.txt | 292 dirfd;
|