Home
last modified time | relevance | path

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

123

/bionic/tests/headers/posix/
Dsys_stat_h.c34 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 …]
Dftw_h.c51 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/
Dftw_test.cpp54 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 …]
Dsys_stat_test.cpp49 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()
Dsys_statvfs_test.cpp36 struct stat proc_sb; in Check()
37 ASSERT_EQ(0, stat("/proc", &proc_sb)); in Check()
Dsys_vfs_test.cpp38 struct stat proc_sb; in Check()
39 ASSERT_EQ(0, stat("/proc", &proc_sb)); in Check()
Dfcntl_test.cpp135 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/
Dstat.cpp34 int stat(const char* path, struct stat* sb) { in stat() function
37 __strong_alias(stat64, stat);
Dftw.cpp31 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
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*);
Drealpath.cpp58 struct stat sb; in realpath()
72 if (stat(dst, &sb) == -1 || st_dev != sb.st_dev || st_ino != sb.st_ino) { in realpath()
Dlstat.cpp34 int lstat(const char* path, struct stat* sb) { in lstat()
/bionic/libc/include/sys/
Dstat.h102 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/
Dglob.h43 struct stat;
64 int (* _Nullable gl_lstat)(const char* _Nonnull, struct stat* _Nonnull);
66 int (* _Nullable gl_stat)(const char* _Nonnull, struct stat* _Nonnull);
Dftw.h58 …_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/
Dftok.c36 struct stat st; in ftok()
38 if (stat(path, &st) == -1) in ftok()
/bionic/linker/
Dlinker_utils.cpp208 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()
Dlinker_main.h53 const struct stat* file_stat, off64_t file_offset,
Dlinker_crt_pad_segment_test.cpp61 struct stat file_stat; in GetPadSegment()
/bionic/libc/kernel/uapi/asm-x86/asm/
Dstat.h12 struct stat { struct
59 struct stat { struct
/bionic/tools/versioner/src/
DUtils.h40 struct stat st; in is_directory()
41 if (stat(path.c_str(), &st) == 0 && S_ISDIR(st.st_mode)) { in is_directory()
Dversioner.cpp94 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/
Dstat.h11 struct stat { struct
/bionic/libc/kernel/uapi/asm-arm/asm/
Dstat.h23 struct stat { struct
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dmakebuf.c82 struct stat st; in __swhatbuf()

123