Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 19 of 19) sorted by relevance

/bionic/tests/
Dsys_statvfs_test.cpp27 template <typename StatVfsT> void Check(StatVfsT& sb) { in Check() argument
28 EXPECT_EQ(4096U, sb.f_bsize); in Check()
29 EXPECT_EQ(0U, sb.f_bfree); in Check()
30 EXPECT_EQ(0U, sb.f_ffree); in Check()
31 EXPECT_EQ(0U, sb.f_fsid); in Check()
32 EXPECT_EQ(255U, sb.f_namemax); in Check()
37 EXPECT_TRUE((sb.f_flag & ST_VALID) == 0) << sb.f_flag; in Check()
41 struct statvfs sb; in TEST() local
42 ASSERT_EQ(0, statvfs("/proc", &sb)); in TEST()
43 Check(sb); in TEST()
[all …]
Dsys_vfs_test.cpp27 template <typename StatFsT> void Check(StatFsT& sb) { in Check() argument
28 EXPECT_EQ(4096, static_cast<int>(sb.f_bsize)); in Check()
29 EXPECT_EQ(0U, sb.f_bfree); in Check()
30 EXPECT_EQ(0U, sb.f_ffree); in Check()
31 EXPECT_EQ(0, sb.f_fsid.__val[0]); in Check()
32 EXPECT_EQ(0, sb.f_fsid.__val[1]); in Check()
33 EXPECT_EQ(255, static_cast<int>(sb.f_namelen)); in Check()
38 EXPECT_TRUE((sb.f_flags & ST_VALID) == 0) << sb.f_flags; in Check()
42 struct statfs sb; in TEST() local
43 ASSERT_EQ(0, statfs("/proc", &sb)); in TEST()
[all …]
Dftw_test.cpp52 void sanity_check_ftw(const char* fpath, const struct stat* sb, int tflag) { in sanity_check_ftw() argument
54 ASSERT_TRUE(sb != NULL); in sanity_check_ftw()
59 struct stat sb; in sanity_check_ftw() local
60 EXPECT_EQ(-1, stat(fpath, &sb)); in sanity_check_ftw()
65 if (S_ISDIR(sb->st_mode)) { in sanity_check_ftw()
71 } else if (S_ISLNK(sb->st_mode)) { in sanity_check_ftw()
78 void sanity_check_nftw(const char* fpath, const struct stat* sb, int tflag, FTW* ftwbuf) { in sanity_check_nftw() argument
79 sanity_check_ftw(fpath, sb, tflag); in sanity_check_nftw()
83 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { in check_ftw() argument
84 sanity_check_ftw(fpath, sb, tflag); in check_ftw()
[all …]
Dsys_stat_test.cpp40 struct stat sb; in TEST() local
41 ASSERT_EQ(0, fstat(fd, &sb)); in TEST()
42 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime)); in TEST()
43 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime)); in TEST()
80 struct stat sb; in TEST() local
81 ASSERT_EQ(0, stat(path.c_str(), &sb)); in TEST()
82 ASSERT_TRUE(S_ISFIFO(sb.st_mode)); in TEST()
91 struct stat64 sb; in TEST() local
92 ASSERT_EQ(0, stat64("/proc/version", &sb)); in TEST()
93 ASSERT_EQ(0, lstat64("/proc/version", &sb)); in TEST()
[all …]
Dfcntl_test.cpp127 struct stat sb; in TEST() local
128 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
129 ASSERT_EQ(0, sb.st_size); in TEST()
133 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
134 ASSERT_EQ(1, sb.st_size); in TEST()
137 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
138 ASSERT_EQ(2, sb.st_size); in TEST()
142 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
143 ASSERT_EQ(3, sb.st_size); in TEST()
146 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
[all …]
Dunistd_test.cpp171 struct stat sb; in TEST() local
172 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
173 ASSERT_EQ(123, sb.st_size); in TEST()
181 struct stat sb; in TEST() local
182 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
183 ASSERT_EQ(123, sb.st_size); in TEST()
191 struct stat sb; in TEST() local
192 ASSERT_EQ(0, stat(tf.filename, &sb)); in TEST()
193 ASSERT_EQ(123, sb.st_size); in TEST()
201 struct stat sb; in TEST() local
[all …]
Dstdlib_test.cpp266 struct stat64 sb; in TEST() local
267 ASSERT_EQ(0, fstat64(tf.fd, &sb)); in TEST()
273 struct stat sb; in TEST() local
274 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
Dsystem_properties_test.cpp447 struct stat sb; in TEST_F() local
448 ASSERT_FALSE(stat(PROP_FILENAME, &sb) == -1 && errno == ENOENT); in TEST_F()
Dstdio_test.cpp90 struct stat sb; in TEST() local
91 int rc = fstat(fd, &sb); in TEST()
93 ASSERT_EQ(sb.st_mode & 0777, 0600U); in TEST()
1423 struct stat sb; in TEST() local
1427 ASSERT_EQ(-1, lstat(tf.filename, &sb)); in TEST()
1432 ASSERT_EQ(-1, lstat(td.dirname, &sb)); in TEST()
/bionic/libc/bionic/
Dpathconf.cpp143 struct statfs sb; in pathconf() local
144 if (statfs(path, &sb) == -1) { in pathconf()
147 return __pathconf(sb, name); in pathconf()
151 struct statfs sb; in fpathconf() local
152 if (fstatfs(fd, &sb) == -1) { in fpathconf()
155 return __pathconf(sb, name); in fpathconf()
Dstat.cpp34 int stat(const char* path, struct stat* sb) { in stat() argument
35 return fstatat(AT_FDCWD, path, sb, 0); in stat()
Dlstat.cpp34 int lstat(const char* path, struct stat* sb) { in lstat() argument
35 return fstatat(AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW); in lstat()
Dtmpfile.cpp80 struct stat sb; in __tmpfile_dir() local
81 int rc = fstat(fd, &sb); in __tmpfile_dir()
Ddirent.cpp78 struct stat sb; in fdopendir() local
79 if (fstat(fd, &sb) == -1) { in fdopendir()
82 if (!S_ISDIR(sb.st_mode)) { in fdopendir()
Dfts.c799 struct stat *sbp, sb; in fts_stat() local
810 sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; in fts_stat()
1028 struct stat sb; in fts_safe_changedir() local
1035 if (fstat(newfd, &sb)) { in fts_safe_changedir()
1039 if (p->fts_dev != sb.st_dev || p->fts_ino != sb.st_ino) { in fts_safe_changedir()
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
Drealpath.c53 struct stat sb; in realpath() local
164 if (lstat(resolved, &sb) != 0) { in realpath()
169 if (S_ISLNK(sb.st_mode)) { in realpath()
220 } else if (!S_ISDIR(sb.st_mode) && p != NULL) { in realpath()
/bionic/libc/arch-mips/string/
Dmemset.S296 sb a1,6(a0)
298 sb a1,5(a0)
300 sb a1,4(a0)
302 sb a1,3(a0)
304 sb a1,2(a0)
306 sb a1,1(a0)
308 sb a1,0(a0)
435 sb a1,-1(a0)
/bionic/libc/kernel/uapi/linux/
Dbfs_fs.h81 #define BFS_UNCLEAN(bfs_sb,sb) ((le32_to_cpu(bfs_sb->s_from) != - 1) && (le32_to_cpu(bfs_sb->s_to) … argument
/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dmktemp.c50 struct stat sb; in mktemp_internal() local
92 if (lstat(path, &sb) != 0) in mktemp_internal()