Home
last modified time | relevance | path

Searched refs:stat (Results 1 – 25 of 60) 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.cpp52 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 …]
Dsys_stat_test.cpp47 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()
Dfcntl_test.cpp128 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/
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()
Dtmpfile.cpp72 struct stat sb; in __tmpfile_dir_legacy()
/bionic/libc/include/
Dglob.h43 struct stat;
63 int (*gl_lstat)(const char*, struct stat*);
64 int (*gl_stat)(const char*, struct stat*);
Dftw.h58 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…
Dfts.h114 struct stat *fts_statp; /* stat(2) information */
/bionic/libc/include/sys/
Dstat.h102 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/
Dftok.c35 struct stat st; in ftok()
37 if (stat(path, &st) == -1) in ftok()
/bionic/libc/kernel/uapi/asm-x86/asm/
Dstat.h24 struct stat { struct
71 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/linker/
Dlinker_utils.cpp218 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()
Dlinker_main.h53 const struct stat* file_stat, off64_t file_offset,
/bionic/libc/kernel/uapi/asm-generic/
Dstat.h23 struct stat { struct
/bionic/libc/kernel/uapi/asm-arm/asm/
Dstat.h35 struct stat { struct
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dmakebuf.c82 struct stat st; in __swhatbuf()
/bionic/benchmarks/tests/
Dinterface_test.cpp150 struct stat st; in TEST_F()
151 ASSERT_NE(-1, stat(exe, &st)) << "Stat of " << exe << " failed"; in TEST_F()

123