Searched refs:sb (Results 1 - 20 of 20) sorted by relevance

/bionic/tests/
H A Dsys_vfs_test.cpp27 template <typename StatFsT> void Check(StatFsT& sb) { argument
28 EXPECT_EQ(4096, static_cast<int>(sb.f_bsize));
29 EXPECT_EQ(0U, sb.f_bfree);
30 EXPECT_EQ(0U, sb.f_ffree);
31 EXPECT_EQ(0, sb.f_fsid.__val[0]);
32 EXPECT_EQ(0, sb.f_fsid.__val[1]);
33 EXPECT_EQ(255, static_cast<int>(sb.f_namelen));
37 struct statfs sb; local
38 ASSERT_EQ(0, statfs("/proc", &sb));
39 Check(sb);
43 struct statfs64 sb; local
49 struct statfs sb; local
56 struct statfs64 sb; local
[all...]
H A Dsys_statvfs_test.cpp27 template <typename StatVfsT> void Check(StatVfsT& sb) { argument
28 EXPECT_EQ(4096U, sb.f_bsize);
29 EXPECT_EQ(0U, sb.f_bfree);
30 EXPECT_EQ(0U, sb.f_ffree);
31 EXPECT_EQ(0U, sb.f_fsid);
32 EXPECT_EQ(255U, sb.f_namemax);
36 struct statvfs sb; local
37 ASSERT_EQ(0, statvfs("/proc", &sb));
38 Check(sb);
42 struct statvfs64 sb; local
48 struct statvfs sb; local
55 struct statvfs64 sb; local
[all...]
H A Dftw_test.cpp24 void sanity_check_ftw(const char* fpath, const struct stat* sb, int tflag) { argument
26 ASSERT_TRUE(sb != NULL);
27 bool is_dir = S_ISDIR(sb->st_mode);
32 const char* fpath, const struct stat* sb, int tflag, struct FTW* ftwbuf) {
33 sanity_check_ftw(fpath, sb, tflag);
35 bool is_dir = S_ISDIR(sb->st_mode);
40 int check_ftw(const char* fpath, const struct stat* sb, int tflag) { argument
41 sanity_check_ftw(fpath, sb, tflag);
45 int check_ftw64(const char* fpath, const struct stat64* sb, int tflag) { argument
46 sanity_check_ftw(fpath, reinterpret_cast<const struct stat*>(sb), tfla
31 sanity_check_nftw( const char* fpath, const struct stat* sb, int tflag, struct FTW* ftwbuf) argument
50 check_nftw( const char* fpath, const struct stat* sb, int tflag, struct FTW* ftwbuf) argument
56 check_nftw64( const char* fpath, const struct stat64* sb, int tflag, struct FTW* ftwbuf) argument
[all...]
H A Dsys_stat_test.cpp40 struct stat sb; local
41 ASSERT_EQ(0, fstat(fd, &sb));
42 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime));
43 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime));
68 struct stat sb; local
69 ASSERT_EQ(0, stat(path.c_str(), &sb));
70 ASSERT_TRUE(S_ISFIFO(sb.st_mode));
78 struct stat64 sb; local
79 ASSERT_EQ(0, stat64("/proc/version", &sb));
80 ASSERT_EQ(0, lstat64("/proc/version", &sb));
[all...]
H A Dfcntl_test.cpp118 struct stat sb; local
119 ASSERT_EQ(0, fstat(tf.fd, &sb));
120 ASSERT_EQ(0, sb.st_size);
124 ASSERT_EQ(0, fstat(tf.fd, &sb));
125 ASSERT_EQ(1, sb.st_size);
128 ASSERT_EQ(0, fstat(tf.fd, &sb));
129 ASSERT_EQ(2, sb.st_size);
133 ASSERT_EQ(0, fstat(tf.fd, &sb));
134 ASSERT_EQ(3, sb.st_size);
137 ASSERT_EQ(0, fstat(tf.fd, &sb));
[all...]
H A Dunistd_test.cpp145 struct stat sb; local
146 ASSERT_EQ(0, stat(tf.filename, &sb));
147 ASSERT_EQ(123, sb.st_size);
155 struct stat sb; local
156 ASSERT_EQ(0, stat(tf.filename, &sb));
157 ASSERT_EQ(123, sb.st_size);
165 struct stat sb; local
166 ASSERT_EQ(0, stat(tf.filename, &sb));
167 ASSERT_EQ(123, sb.st_size);
175 struct stat sb; local
[all...]
H A Dstdlib_test.cpp167 struct stat sb; local
168 ASSERT_EQ(0, fstat(tf.fd, &sb));
173 struct stat64 sb; local
174 ASSERT_EQ(0, fstat64(tf.fd, &sb));
H A Dstdio_test.cpp39 struct stat sb; local
40 int rc = fstat(fd, &sb);
42 ASSERT_EQ(sb.st_mode & 0777, 0600U);
265 snprintf(buf, sizeof(buf), "a%sb", "01234");
269 snprintf(buf, sizeof(buf), "a%sb", s);
H A Dsystem_properties_test.cpp406 struct stat sb; local
407 if (stat(PROP_FILENAME, &sb) == -1 && errno == ENOENT) {
H A Dpthread_test.cpp346 struct stat sb; local
347 bool has_comm = (stat(filename, &sb) != -1);
/bionic/libc/bionic/
H A Dlstat.cpp34 int lstat(const char* path, struct stat* sb) { argument
35 return fstatat(AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW);
H A Dstat.cpp34 int stat(const char* path, struct stat* sb) { argument
35 return fstatat(AT_FDCWD, path, sb, 0);
H A Dtmpfile.cpp80 struct stat sb; local
81 int rc = fstat(fd, &sb);
H A Ddirent.cpp68 struct stat sb; local
69 if (fstat(fd, &sb) == -1) {
72 if (!S_ISDIR(sb.st_mode)) {
H A Dfts.c797 struct stat *sbp, sb; local
801 sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp;
1019 struct stat sb; local
1026 if (fstat(newfd, &sb)) {
1030 if (p->fts_dev != sb.st_dev || p->fts_ino != sb.st_ino) {
/bionic/libc/kernel/uapi/linux/
H A Dbfs_fs.h81 #define BFS_UNCLEAN(bfs_sb, sb) ((le32_to_cpu(bfs_sb->s_from) != -1) && (le32_to_cpu(bfs_sb->s_to) != -1) && !(sb->s_flags & MS_RDONLY))
/bionic/libc/upstream-freebsd/lib/libc/stdlib/
H A Drealpath.c53 struct stat sb; local
144 if (lstat(resolved, &sb) != 0) {
149 if (!S_ISDIR(sb.st_mode)) {
183 if (lstat(resolved, &sb) != 0) {
188 if (S_ISLNK(sb.st_mode)) {
/bionic/libc/upstream-openbsd/lib/libc/stdio/
H A Dmktemp.c48 struct stat sb; local
84 if (lstat(path, &sb) != 0)
/bionic/libc/arch-mips/string/
H A Dmemcpy.S236 sb v1,-1(a0)
410 sb v1,-1(a0)
/bionic/libc/arch-mips64/string/
H A Dmemcpy.S236 sb v1,-1(a0)
410 sb v1,-1(a0)

Completed in 305 milliseconds