Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 54) sorted by relevance

123

/bionic/libc/bionic/
Dstat.cpp34 int stat(const char* path, struct stat* sb) { in stat() function
37 __strong_alias(stat64, stat);
Dftw.cpp29 int (*ftw_fn)(const char*, const struct stat*, int), in do_nftw() argument
30 int (*nftw_fn)(const char*, const struct stat*, int, FTW*), in do_nftw()
117 int ftw(const char* path, int (*ftw_fn)(const char*, const struct stat*, int), int nfds) { in ftw() argument
121 int nftw(const char* path, int (*nftw_fn)(const char*, const struct stat*, int, FTW*), in nftw() argument
Dlfs64_support.cpp36 typedef int (*ftw_fn)(const char*, const struct stat*, int);
37 typedef int (*nftw_fn)(const char*, const struct stat*, int, struct FTW*);
Dlstat.cpp34 int lstat(const char* path, struct stat* sb) { in lstat()
Dtmpfile.cpp80 struct stat sb; in __tmpfile_dir()
Dgetentropy_linux.c219 struct stat st; in getentropy_urandom()
351 struct stat st; in getentropy_fallback()
470 HX(stat(".", &st) == -1, st); in getentropy_fallback()
474 HX(stat("/", &st) == -1, st); in getentropy_fallback()
Ddirent.cpp78 struct stat sb; in fdopendir()
/bionic/tests/
Dftw_test.cpp52 void sanity_check_ftw(const char* fpath, const struct stat* sb, int tflag) { in sanity_check_ftw()
59 struct stat sb; in sanity_check_ftw()
60 EXPECT_EQ(-1, stat(fpath, &sb)); in sanity_check_ftw()
78 void sanity_check_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in sanity_check_nftw()
83 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { in check_ftw()
89 sanity_check_ftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag); in check_ftw64()
93 int check_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in check_nftw()
99 sanity_check_nftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag, ftwbuf); in check_nftw64()
151 ASSERT_EQ(0, ftw(root.dirname, bug_28197840_ftw<struct stat>, 128)); in TEST()
153 ASSERT_EQ(0, nftw(root.dirname, bug_28197840_nftw<struct stat>, 128, FTW_PHYS)); in TEST()
Dsys_stat_test.cpp40 struct stat sb; in TEST()
80 struct stat sb; in TEST()
81 ASSERT_EQ(0, stat(path.c_str(), &sb)); in TEST()
142 struct stat sb; in AssertFileModeEquals()
143 ASSERT_EQ(0, stat(filename, &sb)); in AssertFileModeEquals()
199 struct stat sb; in AssertSymlinkModeEquals()
207 struct stat tf_sb; in TEST()
208 ASSERT_EQ(0, stat(tf.filename, &tf_sb)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/gen/
Dftok.c35 struct stat st; in ftok()
37 if (stat(path, &st) < 0) in ftok()
/bionic/libc/include/
Dftw.h58 int ftw(const char*, int (*)(const char*, const struct stat*, int), int) __INTRODUCED_IN(17);
59 int nftw(const char*, int (*)(const char*, const struct stat*, int, struct FTW*), int, int)
Dfts.h113 struct stat *fts_statp; /* stat(2) information */
/bionic/libc/include/sys/
Dstat.h117 struct stat { __STAT64_BODY }; struct
158 int fstat(int, struct stat*);
160 int fstatat(int, const char*, struct stat*, int);
162 int lstat(const char*, struct stat*);
164 int stat(const char*, struct stat*);
/bionic/libc/arch-mips64/bionic/
Dstat.cpp56 static void copy_stat(struct stat* st, struct kernel_stat* s) { in copy_stat()
75 int fstat(int fp, struct stat* st) { in fstat()
83 int fstatat(int dirfd, const char* pathname, struct stat* buf, int flags) { in fstatat()
/bionic/libc/kernel/uapi/asm-mips/asm/
Dstat.h24 struct stat { struct
69 struct stat { struct
/bionic/libc/kernel/uapi/asm-x86/asm/
Dstat.h24 struct stat { struct
71 struct stat { struct
/bionic/tools/versioner/src/
DUtils.h38 struct stat st; in is_directory()
39 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in is_directory()
Dversioner.cpp101 struct stat st; in collectRequirements()
102 if (stat(dependency.c_str(), &st) != 0) { in collectRequirements()
501 struct stat st; in main()
502 if (stat(platform_dir.c_str(), &st) != 0) { in main()
598 struct stat st; in main()
599 if (stat(header_dir.c_str(), &st) != 0) { in main()
/bionic/libc/kernel/uapi/asm-generic/
Dstat.h23 struct stat { struct
/bionic/libc/kernel/uapi/asm-arm/asm/
Dstat.h35 struct stat { struct
/bionic/linker/
Dlinker_main.h54 struct stat* file_stat, off64_t file_offset,
Dlinker_utils.cpp211 struct stat s; in resolve_paths()
212 if (stat(resolved_path, &s) == 0) { in resolve_paths()
/bionic/libc/upstream-netbsd/lib/libc/gen/
Dutmp.c62 struct stat st; in getutent()
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dmakebuf.c82 struct stat st; in __swhatbuf()
Dmktemp.c50 struct stat sb; in mktemp_internal()

123