Home
last modified time | relevance | path

Searched refs:statbuf (Results 1 – 14 of 14) sorted by relevance

/llvm-project/libc/src/sys/stat/linux/
H A Dkernel_statx.h74 struct stat *__restrict statbuf) { in statx()
75 // We make a statx syscall and copy out the result into the |statbuf|. in statx()
82 statbuf->st_dev = MKDEV(xbuf.stx_dev_major, xbuf.stx_dev_minor); in statx()
83 statbuf->st_ino = static_cast<decltype(statbuf->st_ino)>(xbuf.stx_ino); in statx()
84 statbuf->st_mode = xbuf.stx_mode; in statx()
85 statbuf->st_nlink = xbuf.stx_nlink; in statx()
86 statbuf->st_uid = xbuf.stx_uid; in statx()
87 statbuf->st_gid = xbuf.stx_gid; in statx()
88 statbuf in statx()
73 statx(int dirfd,const char * __restrict path,int flags,struct stat * __restrict statbuf) statx() argument
[all...]
H A Dfstat.cpp21 LLVM_LIBC_FUNCTION(int, fstat, (int fd, struct stat *statbuf)) {
22 int err = statx(fd, "", AT_EMPTY_PATH, statbuf);
H A Dstat.cpp23 struct stat *__restrict statbuf)) {
24 int err = statx(AT_FDCWD, path, 0, statbuf);
H A Dlstat.cpp24 struct stat *__restrict statbuf)) {
25 int err = statx(AT_FDCWD, path, AT_SYMLINK_NOFOLLOW, statbuf);
/llvm-project/libc/test/src/sys/stat/
H A Dfstat_test.cpp35 struct stat statbuf; in TEST() local
36 ASSERT_THAT(LIBC_NAMESPACE::fstat(fd, &statbuf), Succeeds(0)); in TEST()
38 ASSERT_EQ(int(statbuf.st_mode), int(S_IRWXU | S_IFREG)); in TEST()
47 struct stat statbuf; in TEST() local
48 ASSERT_THAT(LIBC_NAMESPACE::fstat(-1, &statbuf), Fails(EBADF)); in TEST()
H A Dlstat_test.cpp36 struct stat statbuf; in TEST() local
37 ASSERT_THAT(LIBC_NAMESPACE::lstat(TEST_FILE, &statbuf), Succeeds(0)); in TEST()
39 ASSERT_EQ(int(statbuf.st_mode), int(S_IRWXU | S_IFREG)); in TEST()
47 struct stat statbuf; in TEST() local
48 ASSERT_THAT(LIBC_NAMESPACE::lstat("non-existent-file", &statbuf), in TEST()
H A Dstat_test.cpp36 struct stat statbuf; in TEST() local
37 ASSERT_THAT(LIBC_NAMESPACE::stat(TEST_FILE, &statbuf), Succeeds(0)); in TEST()
39 ASSERT_EQ(int(statbuf.st_mode), int(S_IRWXU | S_IFREG)); in TEST()
47 struct stat statbuf; in TEST() local
48 ASSERT_THAT(LIBC_NAMESPACE::stat("non-existent-file", &statbuf), in TEST()
/llvm-project/compiler-rt/include/sanitizer/
H A Dlinux_syscall_hooks.h477 #define __sanitizer_syscall_pre_stat(filename, statbuf) \ argument
478 __sanitizer_syscall_pre_impl_stat((long)(filename), (long)(statbuf))
479 #define __sanitizer_syscall_post_stat(res, filename, statbuf) \ argument
480 __sanitizer_syscall_post_impl_stat(res, (long)(filename), (long)(statbuf))
499 #define __sanitizer_syscall_pre_lstat(filename, statbuf) \ argument
500 __sanitizer_syscall_pre_impl_lstat((long)(filename), (long)(statbuf))
501 #define __sanitizer_syscall_post_lstat(res, filename, statbuf) \ argument
502 __sanitizer_syscall_post_impl_lstat(res, (long)(filename), (long)(statbuf))
503 #define __sanitizer_syscall_pre_fstat(fd, statbuf) \ argument
504 __sanitizer_syscall_pre_impl_fstat((long)(fd), (long)(statbuf))
[all …]
/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common_syscalls.inc902 PRE_SYSCALL(stat)(const void *filename, void *statbuf) {
908 POST_SYSCALL(stat)(long res, const void *filename, void *statbuf) {
910 if (statbuf)
911 POST_WRITE(statbuf, struct___old_kernel_stat_sz);
961 PRE_SYSCALL(lstat)(const void *filename, void *statbuf) {
967 POST_SYSCALL(lstat)(long res, const void *filename, void *statbuf) {
969 if (statbuf)
970 POST_WRITE(statbuf, struct___old_kernel_stat_sz);
974 PRE_SYSCALL(fstat)(long fd, void *statbuf) {}
976 POST_SYSCALL(fstat)(long res, long fd, void *statbuf) {
[all...]
/llvm-project/libc/src/sys/stat/
H A Dfstat.h17 int fstat(int fd, struct stat *statbuf);
H A Dstat.h17 int stat(const char *__restrict path, struct stat *__restrict statbuf);
H A Dlstat.h17 int lstat(const char *__restrict path, struct stat *__restrict statbuf);
/llvm-project/llvm/lib/Support/
H A Draw_ostream.cpp850 struct stat statbuf; in preferred_buffer_size()
851 if (fstat(FD, &statbuf) != 0) in preferred_buffer_size()
857 if (S_ISCHR(statbuf.st_mode) && is_displayed()) in preferred_buffer_size()
860 return statbuf.st_blksize; in preferred_buffer_size()
/llvm-project/clang/test/Analysis/Inputs/
H A Dstd-c-library-functions-POSIX.h105 int fstat(int fd, struct stat *statbuf);