Home
last modified time | relevance | path

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

/llvm-project-15.0.7/libc/src/dirent/
H A DCMakeLists.txt14 dirfd
16 dirfd.cpp
18 dirfd.h
H A Ddirfd.h16 int dirfd(::DIR *dir);
H A Ddirfd.cpp18 LLVM_LIBC_FUNCTION(int, dirfd, (::DIR * dir)) {
/llvm-project-15.0.7/clang/test/Analysis/
H A Dstd-c-library-functions-POSIX.c127 int faccessat(int dirfd, const char *pathname, int mode, int flags);
144 int dirfd(DIR *dirp);
157 int mkdirat(int dirfd, const char *pathname, mode_t mode);
160 int mknodat(int dirfd, const char *pathname, mode_t mode, dev_t dev);
162 int fchmodat(int dirfd, const char *pathname, mode_t mode, int flags);
166 int fchownat(int dirfd, const char *pathname, uid_t owner, gid_t group, int flags);
257 int utimensat(int dirfd, const char *pathname, const struct timespec times[2], int flags);
H A Dtaint-generic.c424 ssize_t readlinkat(int dirfd, const char *pathname, char *buf, size_t bufsiz);
425 int testReadlinkat(int dirfd, char *path, char *buf, size_t bufsiz) { in testReadlinkat() argument
426 ssize_t s = readlinkat(dirfd, path, buf, bufsiz); in testReadlinkat()
428 (void)(1 / dirfd); // arg 0 is not tainted in testReadlinkat()
/llvm-project-15.0.7/compiler-rt/test/msan/
H A Dfstatat64.cpp11 int dirfd = open("/dev", O_RDONLY); in main() local
12 if (fstatat64(dirfd, "null", &st, 0)) in main()
/llvm-project-15.0.7/clang-tools-extra/test/clang-tidy/checkers/android/
H A Dcloexec-open.cpp17 extern "C" int openat(int dirfd, const char *pathname, int flags, ...);
102 int openat(int dirfd, const char *pathname, int flags, ...);
164 int openat(int dirfd, const char *pathname, int flags, ...);
/llvm-project-15.0.7/libc/test/src/dirent/
H A DCMakeLists.txt14 libc.src.dirent.dirfd
H A Ddirent_test.cpp28 ASSERT_GT(__llvm_libc::dirfd(dir), 2); in TEST()
/llvm-project-15.0.7/libc/spec/
H A Dposix.td607 "dirfd",
/llvm-project-15.0.7/libc/config/linux/x86_64/
H A Dentrypoints.txt232 libc.src.dirent.dirfd
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl-old/
H A Dtsan_interceptors_posix.cpp44 #define dirfd(dirp) (*(int *)(dirp)) macro
98 extern "C" int dirfd(void *dirp);
1875 int fd = dirfd(dirp); in TSAN_INTERCEPTOR()
/llvm-project-15.0.7/compiler-rt/lib/tsan/rtl/
H A Dtsan_interceptors_posix.cpp44 #define dirfd(dirp) (*(int *)(dirp)) macro
98 extern "C" int dirfd(void *dirp);
1875 int fd = dirfd(dirp); in TSAN_INTERCEPTOR()
/llvm-project-15.0.7/compiler-rt/lib/msan/tests/
H A Dmsan_test.cpp734 int dirfd = open(DIR_TO_READ, O_RDONLY); in TEST() local
735 ASSERT_GT(dirfd, 0); in TEST()
736 int res = fstatat(dirfd, SUBFILE_TO_READ, st, 0); in TEST()
741 close(dirfd); in TEST()
/llvm-project-15.0.7/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_interceptors.inc6350 INTERCEPTOR(int, flopenat, int dirfd, const char *path, int flags, ...) {
6360 return REAL(flopenat)(dirfd, path, flags, mode);
7554 INTERCEPTOR(SSIZE_T, readlinkat, int dirfd, const char *path, char *buf,
7557 COMMON_INTERCEPTOR_ENTER(ctx, readlinkat, dirfd, path, buf, bufsiz);
7559 SSIZE_T res = REAL(readlinkat)(dirfd, path, buf, bufsiz);
7571 INTERCEPTOR(int, name_to_handle_at, int dirfd, const char *pathname,
7574 COMMON_INTERCEPTOR_ENTER(ctx, name_to_handle_at, dirfd, pathname, handle,
7584 int res = REAL(name_to_handle_at)(dirfd, pathname, handle, mount_id, flags);
/llvm-project-15.0.7/compiler-rt/lib/dfsan/
H A Dlibc_ubuntu1404_abilist.txt1553 fun:dirfd=uninstrumented