/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 | 54 void smoke_test_ftw(const char* fpath, const struct stat* sb, int tflag) { in smoke_test_ftw() 61 struct stat sb; in smoke_test_ftw() 62 EXPECT_EQ(-1, stat(fpath, &sb)); in smoke_test_ftw() 80 void smoke_test_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in smoke_test_nftw() 85 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { in check_ftw() 91 smoke_test_ftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag); in check_ftw64() 95 int check_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in check_nftw() 101 smoke_test_nftw(fpath, reinterpret_cast<const struct stat*>(sb), tflag, ftwbuf); in check_nftw64() 153 ASSERT_EQ(0, ftw(root.path, bug_28197840_ftw<struct stat>, 128)); in TEST() 155 ASSERT_EQ(0, nftw(root.path, bug_28197840_nftw<struct stat>, 128, FTW_PHYS)); in TEST() [all …]
|
D | sys_stat_test.cpp | 49 struct stat sb; in TEST() 89 struct stat sb; in TEST() 90 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 | sys_statvfs_test.cpp | 36 struct stat proc_sb; in Check() 37 ASSERT_EQ(0, stat("/proc", &proc_sb)); in Check()
|
D | sys_vfs_test.cpp | 38 struct stat proc_sb; in Check() 39 ASSERT_EQ(0, stat("/proc", &proc_sb)); in Check()
|
D | fcntl_test.cpp | 135 struct stat sb; in TEST() 335 struct stat sb = {}; in TEST() 349 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()
|
/bionic/libc/include/sys/ |
D | stat.h | 102 struct stat { __STAT64_BODY }; struct 143 int fstat(int __fd, struct stat* _Nonnull __buf); 145 int fstatat(int __dir_fd, const char* _Nonnull __path, struct stat* _Nonnull __buf, int __flags); 147 int lstat(const char* _Nonnull __path, struct stat* _Nonnull __buf); 149 int stat(const char* _Nonnull __path, struct stat* _Nonnull __buf);
|
/bionic/libc/include/ |
D | glob.h | 43 struct stat; 64 int (* _Nullable gl_lstat)(const char* _Nonnull, struct stat* _Nonnull); 66 int (* _Nullable gl_stat)(const char* _Nonnull, struct stat* _Nonnull);
|
D | ftw.h | 58 …_dir_path, int (* _Nonnull __callback)(const char* _Nonnull, const struct stat* _Nonnull, int), in… 59 …_dir_path, int (* _Nonnull __callback)(const char* _Nonnull, const struct stat* _Nonnull, int, str…
|
/bionic/libc/upstream-openbsd/lib/libc/gen/ |
D | ftok.c | 36 struct stat st; in ftok() 38 if (stat(path, &st) == -1) in ftok()
|
/bionic/linker/ |
D | linker_utils.cpp | 208 struct stat s; in resolve_path() 209 if (stat(resolved_path, &s) == -1) { in resolve_path() 236 struct stat s; in resolve_path() 237 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,
|
D | linker_crt_pad_segment_test.cpp | 61 struct stat file_stat; in GetPadSegment()
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
D | stat.h | 12 struct stat { struct 59 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/libc/kernel/uapi/asm-generic/ |
D | stat.h | 11 struct stat { struct
|
/bionic/libc/kernel/uapi/asm-arm/asm/ |
D | stat.h | 23 struct stat { struct
|
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | makebuf.c | 82 struct stat st; in __swhatbuf()
|