/bionic/tests/ |
D | sys_statvfs_test.cpp | 27 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 …]
|
D | sys_vfs_test.cpp | 27 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 …]
|
D | ftw_test.cpp | 52 void sanity_check_ftw(const char* fpath, const struct stat* sb, int tflag) { in sanity_check_ftw() argument 54 ASSERT_TRUE(sb != nullptr); 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 …]
|
D | sys_stat_test.cpp | 39 struct stat sb; in TEST() local 40 ASSERT_EQ(0, fstat(fd, &sb)); in TEST() 41 ASSERT_EQ(times[0].tv_sec, static_cast<long>(sb.st_atime)); in TEST() 42 ASSERT_EQ(times[1].tv_sec, static_cast<long>(sb.st_mtime)); in TEST() 79 struct stat sb; in TEST() local 80 ASSERT_EQ(0, stat(path.c_str(), &sb)); in TEST() 81 ASSERT_TRUE(S_ISFIFO(sb.st_mode)); in TEST() 90 struct stat64 sb; in TEST() local 91 ASSERT_EQ(0, stat64("/proc/version", &sb)); in TEST() 92 ASSERT_EQ(0, lstat64("/proc/version", &sb)); in TEST() [all …]
|
D | fcntl_test.cpp | 128 struct stat sb; in TEST() local 129 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST() 130 ASSERT_EQ(0, sb.st_size); in TEST() 134 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST() 135 ASSERT_EQ(1, sb.st_size); in TEST() 138 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST() 139 ASSERT_EQ(2, sb.st_size); in TEST() 143 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST() 144 ASSERT_EQ(3, sb.st_size); in TEST() 147 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST() [all …]
|
D | unistd_test.cpp | 170 struct stat sb; in TEST() local 171 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST() 172 ASSERT_EQ(123, sb.st_size); in TEST() 180 struct stat sb; in TEST() local 181 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST() 182 ASSERT_EQ(123, sb.st_size); in TEST() 190 struct stat sb; in TEST() local 191 ASSERT_EQ(0, stat(tf.path, &sb)); in TEST() 192 ASSERT_EQ(123, sb.st_size); in TEST() 200 struct stat sb; in TEST() local [all …]
|
D | stdlib_test.cpp | 414 struct stat64 sb; in TEST() local 415 ASSERT_EQ(0, fstat64(tf.fd, &sb)); in TEST() 421 struct stat sb; in TEST() local 422 ASSERT_EQ(0, fstat(tf.fd, &sb)); in TEST()
|
D | system_properties_test.cpp | 434 struct stat sb; in TEST_F() local 435 ASSERT_FALSE(stat(PROP_FILENAME, &sb) == -1 && errno == ENOENT); in TEST_F()
|
D | stdio_test.cpp | 114 struct stat sb; in TEST() local 115 int rc = fstat(fd, &sb); in TEST() 117 ASSERT_EQ(sb.st_mode & 0777, 0600U); in TEST() 2323 struct stat sb; in TEST() local 2327 ASSERT_EQ(-1, lstat(tf.path, &sb)); in TEST() 2332 ASSERT_EQ(-1, lstat(td.path, &sb)); in TEST()
|
/bionic/libc/bionic/ |
D | pathconf.cpp | 143 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()
|
D | stat.cpp | 34 int stat(const char* path, struct stat* sb) { in stat() argument 35 return fstatat(AT_FDCWD, path, sb, 0); in stat()
|
D | lstat.cpp | 34 int lstat(const char* path, struct stat* sb) { in lstat() argument 35 return fstatat(AT_FDCWD, path, sb, AT_SYMLINK_NOFOLLOW); in lstat()
|
D | tmpfile.cpp | 65 struct stat sb; in __tmpfile_dir() local 66 int rc = fstat(fd, &sb); in __tmpfile_dir()
|
D | dirent.cpp | 90 struct stat sb; in fdopendir() local 91 if (fstat(fd, &sb) == -1) { in fdopendir() 94 if (!S_ISDIR(sb.st_mode)) { in fdopendir()
|
D | fts.c | 790 struct stat *sbp, sb; in fts_stat() local 801 sbp = ISSET(FTS_NOSTAT) ? &sb : p->fts_statp; in fts_stat() 1016 struct stat sb; in fts_safe_changedir() local 1023 if (fstat(newfd, &sb)) { in fts_safe_changedir() 1027 if (p->fts_dev != sb.st_dev || p->fts_ino != sb.st_ino) { in fts_safe_changedir()
|
/bionic/libc/upstream-freebsd/lib/libc/stdlib/ |
D | realpath.c | 53 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/ |
D | memset.S | 296 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/ |
D | bfs_fs.h | 69 #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/ |
D | mktemp.c | 50 struct stat sb; in mktemp_internal() local 92 if (lstat(path, &sb) != 0) in mktemp_internal()
|
/bionic/libc/upstream-freebsd/lib/libc/gen/ |
D | glob.c | 649 struct stat sb; in glob2() local 660 if (g_lstat(pathbuf, &sb, pglob)) in glob2() 670 (S_ISDIR(sb.st_mode) || in glob2() 671 (S_ISLNK(sb.st_mode) && in glob2() 672 g_stat(pathbuf, &sb, pglob) == 0 && in glob2() 673 S_ISDIR(sb.st_mode)))) { in glob2() 1021 g_lstat(Char *fn, struct stat *sb, glob_t *pglob) in g_lstat() argument 1030 return((*pglob->gl_lstat)(buf, sb)); in g_lstat() 1031 return (lstat(buf, sb)); in g_lstat() 1035 g_stat(Char *fn, struct stat *sb, glob_t *pglob) in g_stat() argument [all …]
|