Home
last modified time | relevance | path

Searched refs:dirfd (Results 1 – 16 of 16) sorted by relevance

/bionic/libc/include/bits/fortify/
Dfcntl.h78 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 …]
Dunistd.h49 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/
Dfchmodat.cpp39 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()
Dfaccessat.cpp35 int faccessat(int dirfd, const char* pathname, int mode, int flags) { in faccessat() argument
59 return __faccessat(dirfd, pathname, mode); in faccessat()
Ddirent.cpp83 int dirfd(DIR* d) { in dirfd() function
Dfortify.cpp207 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()
Dfts.c615 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/
Dclang_fortify_tests.cpp247 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()
Dfdsan_test.cpp135 EXPECT_FDSAN_DEATH(close(dirfd(dir)), "actually owned by DIR"); in TEST_F()
Dstdio_test.cpp2726 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/
Ddirent_h.c48 FUNCTION(dirfd, int (*f)(DIR*)); in dirent_h()
/bionic/libc/include/
Ddirent.h171 int dirfd(DIR* __dir);
/bionic/libc/
DSECCOMP_ALLOWLIST_COMMON.TXT49 int execveat(int dirfd, const char* pathname, char* const* argv, char* const* envp, int flags) all
Dlibc.map.txt292 dirfd;
/bionic/libc/tools/
Dposix-2013.txt178 dirfd
/bionic/tools/versioner/platforms/
Dlibc.map.txt292 dirfd;