/bionic/tests/headers/posix/ |
D | sys_stat_h.c | 34 TYPE(struct stat); in sys_stat_h() 36 STRUCT_MEMBER(struct stat, unsigned long long, st_dev); in sys_stat_h() 38 STRUCT_MEMBER(struct stat, dev_t, st_dev); in sys_stat_h() 41 STRUCT_MEMBER(struct stat, unsigned long long, st_ino); in sys_stat_h() 43 STRUCT_MEMBER(struct stat, ino_t, st_ino); in sys_stat_h() 46 STRUCT_MEMBER(struct stat, unsigned int, st_mode); in sys_stat_h() 48 STRUCT_MEMBER(struct stat, mode_t, st_mode); in sys_stat_h() 52 STRUCT_MEMBER(struct stat, unsigned long, st_nlink); in sys_stat_h() 54 STRUCT_MEMBER(struct stat, nlink_t, st_nlink); in sys_stat_h() 56 STRUCT_MEMBER(struct stat, uid_t, st_uid); in sys_stat_h() [all …]
|
D | ftw_h.c | 51 FUNCTION(ftw, int (*f)(const char*, int (*)(const char*, const struct stat*, int), int)); in ftw_h() 53 TYPE(struct stat); in ftw_h()
|
/bionic/tests/ |
D | ftw_test.cpp | 52 void smoke_test_ftw(const char* fpath, const struct stat* sb, int tflag) { in smoke_test_ftw() 59 struct stat sb; in smoke_test_ftw() 60 EXPECT_EQ(-1, stat(fpath, &sb)); in smoke_test_ftw() 78 void smoke_test_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in smoke_test_nftw() 83 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { in check_ftw() 89 smoke_test_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 smoke_test_nftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag, ftwbuf); in check_nftw64() 151 ASSERT_EQ(0, ftw(root.path, bug_28197840_ftw<struct stat>, 128)); in TEST() 153 ASSERT_EQ(0, nftw(root.path, bug_28197840_nftw<struct stat>, 128, FTW_PHYS)); in TEST() [all …]
|
D | sys_stat_test.cpp | 47 struct stat sb; in TEST() 87 struct stat sb; in TEST() 88 ASSERT_EQ(0, stat(path.c_str(), &sb)); in TEST() 171 struct stat sb; in AssertFileModeEquals() 172 ASSERT_EQ(0, stat(filename, &sb)); in AssertFileModeEquals() 228 struct stat sb; in AssertSymlinkModeEquals() 236 struct stat tf_sb; in TEST() 237 ASSERT_EQ(0, stat(tf.path, &tf_sb)); in TEST()
|
D | fcntl_test.cpp | 128 struct stat sb; in TEST() 329 struct stat sb = {}; in TEST() 343 ASSERT_EQ(0, stat(final_path.c_str(), &sb)); in TEST()
|
/bionic/libc/bionic/ |
D | stat.cpp | 34 int stat(const char* path, struct stat* sb) { in stat() function 37 __strong_alias(stat64, stat);
|
D | ftw.cpp | 31 int (*ftw_fn)(const char*, const struct stat*, int), in do_nftw() argument 32 int (*nftw_fn)(const char*, const struct stat*, int, FTW*), in do_nftw() 118 int ftw(const char* path, int (*ftw_fn)(const char*, const struct stat*, int), int nfds) { in ftw() argument 122 int nftw(const char* path, int (*nftw_fn)(const char*, const struct stat*, int, FTW*), in nftw() argument
|
D | lfs64_support.cpp | 36 typedef int (*ftw_fn)(const char*, const struct stat*, int); 37 typedef int (*nftw_fn)(const char*, const struct stat*, int, struct FTW*);
|
D | realpath.cpp | 58 struct stat sb; in realpath() 72 if (stat(dst, &sb) == -1 || st_dev != sb.st_dev || st_ino != sb.st_ino) { in realpath()
|
D | lstat.cpp | 34 int lstat(const char* path, struct stat* sb) { in lstat()
|
D | tmpfile.cpp | 72 struct stat sb; in __tmpfile_dir_legacy()
|
/bionic/libc/include/ |
D | glob.h | 43 struct stat; 63 int (*gl_lstat)(const char*, struct stat*); 64 int (*gl_stat)(const char*, struct stat*);
|
D | ftw.h | 58 int ftw(const char* __dir_path, int (*__callback)(const char*, const struct stat*, int), int __max_… 59 int nftw(const char* __dir_path, int (*__callback)(const char*, const struct stat*, int, struct FTW…
|
D | fts.h | 114 struct stat *fts_statp; /* stat(2) information */
|
/bionic/libc/include/sys/ |
D | stat.h | 102 struct stat { __STAT64_BODY }; struct 143 int fstat(int __fd, struct stat* __buf); 145 int fstatat(int __dir_fd, const char* __path, struct stat* __buf, int __flags); 147 int lstat(const char* __path, struct stat* __buf); 149 int stat(const char* __path, struct stat* __buf); 150 int stat64(const char* __path, struct stat64* __buf) __RENAME_STAT64(stat, 3, 21);
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | ftok.c | 35 struct stat st; in ftok() 37 if (stat(path, &st) == -1) in ftok()
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | stat.h | 24 struct stat { struct 71 struct stat { struct
|
/bionic/tools/versioner/src/ |
D | Utils.h | 40 struct stat st; in is_directory() 41 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in is_directory()
|
D | versioner.cpp | 94 struct stat st; in is_dir() 95 return stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode); in is_dir() 124 struct stat st; in collectRequirements() 125 if (stat(dependency.c_str(), &st) != 0) { in collectRequirements() 538 struct stat st; in main() 539 if (stat(platform_dir.c_str(), &st) != 0) { in main() 649 struct stat st; in main() 650 if (const char *path = location.header_path.c_str(); stat(path, &st) != 0) { in main()
|
/bionic/linker/ |
D | linker_utils.cpp | 218 struct stat s; in resolve_path() 219 if (stat(resolved_path, &s) == -1) { in resolve_path() 246 struct stat s; in resolve_path() 247 if (stat(normalized_path.c_str(), &s) == 0 && S_ISDIR(s.st_mode)) { in resolve_path()
|
D | linker_main.h | 53 const struct stat* file_stat, off64_t file_offset,
|
/bionic/libc/kernel/uapi/asm-generic/ |
D | stat.h | 23 struct stat { struct
|
/bionic/libc/kernel/uapi/asm-arm/asm/ |
D | stat.h | 35 struct stat { struct
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | makebuf.c | 82 struct stat st; in __swhatbuf()
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 150 struct stat st; in TEST_F() 151 ASSERT_NE(-1, stat(exe, &st)) << "Stat of " << exe << " failed"; in TEST_F()
|