Searched refs:stb (Results 1 - 3 of 3) sorted by relevance
/commonlibrary/c_utils/base/src/ |
H A D | mapped_file.cpp | 33 bool MappedFile::ValidMappedSize(off_t& targetSize, const struct stat& stb) in ValidMappedSize() argument 35 off_t max = RoundSize(stb.st_size) - offset_; // Avoid mapped size excessing in ValidMappedSize() 85 struct stat stb = {0}; in NormalizeSize() local 87 if (stat(path_.c_str(), &stb) != 0) { in NormalizeSize() 93 size_ = stb.st_size; in NormalizeSize() 97 if (!ValidMappedSize(size_, stb)) { in NormalizeSize() 99 __FUNCTION__, static_cast<long long>(size_), static_cast<long long>(stb.st_size)); in NormalizeSize() 277 struct stat stb = {0}; in SyncFileSize() local 278 if (stat(path_.c_str(), &stb) != 0) { in SyncFileSize() 281 } else if (offset_ + newSize <= stb in SyncFileSize() 297 struct stat stb = {0}; Resize() local 325 struct stat stb = {0}; Resize() local 376 struct stat stb = {0}; TurnNext() local [all...] |
/commonlibrary/c_utils/base/test/unittest/common/ |
H A D | utils_mapped_file_test.cpp | 125 struct stat* stb) in TestFileStatusAndRead() 127 ASSERT_NE(stb, nullptr); in TestFileStatusAndRead() 135 stat(filename.c_str(), stb); in TestFileStatusAndRead() 136 ASSERT_TRUE(stb->st_size == mf.Size() || mf.PageSize() == mf.Size()); in TestFileStatusAndRead() 172 struct stat* stb) in TestFileStat() 174 ASSERT_NE(stb, nullptr); in TestFileStat() 182 stat(filename.c_str(), stb); in TestFileStat() 183 ASSERT_TRUE(stb->st_size == mf.Size() || mf.PageSize() == mf.Size()); in TestFileStat() 197 struct stat* stb) in TestFileContentEqual() 200 ASSERT_NE(stb, nullpt in TestFileContentEqual() 122 TestFileStatusAndRead(MappedFile& mf, const std::string& filename, const std::string& content, struct stat* stb) TestFileStatusAndRead() argument 169 TestFileStat(MappedFile& mf, const std::string& filename, const std::string& content, struct stat* stb) TestFileStat() argument 193 TestFileContentEqual(const MappedFile& mf, const std::string& filename, std::string& filename1, std::string& content1, struct stat* stb) TestFileContentEqual() argument 317 struct stat stb = {0}; HWTEST_F() local 377 struct stat stb = {0}; HWTEST_F() local 435 struct stat stb = {0}; HWTEST_F() local 567 struct stat stb = {0}; HWTEST_F() local 601 struct stat stb = {0}; HWTEST_F() local 642 struct stat stb = {0}; HWTEST_F() local 676 struct stat stb = {0}; HWTEST_F() local 715 struct stat stb = {0}; HWTEST_F() local 771 struct stat stb = {0}; HWTEST_F() local 788 struct stat stb = {0}; HWTEST_F() local 955 struct stat stb = {0}; HWTEST_F() local 1292 struct stat stb = {0}; HWTEST_F() local 1329 struct stat stb = {0}; HWTEST_F() local [all...] |
/commonlibrary/c_utils/base/test/benchmarktest/mapped_benchmark_test/ |
H A D | mapped_benchmark_test.cpp | 176 struct stat stb = {0}; in BENCHMARK_F() local 177 stat(filename.c_str(), &stb); in BENCHMARK_F() 178 AssertTrue((stb.st_size == mf.Size() || mf.PageSize() == mf.Size()), in BENCHMARK_F() 179 "stb.st_size == mf.Size() || mf.PageSize() == mf.Size() did not equal true as expected.", state); in BENCHMARK_F() 245 struct stat stb = {0}; in BENCHMARK_F() local 246 if (stat(filename.c_str(), &stb) == 0) { in BENCHMARK_F() 247 AssertEqual(stb.st_size, mf.PageSize(), "stb.st_size did not equal mf.PageSize() as expected.", state); in BENCHMARK_F() 304 struct stat stb = {0}; in BENCHMARK_F() local 305 if (stat(filename.c_str(), &stb) in BENCHMARK_F() 439 struct stat stb = {0}; BENCHMARK_F() local 498 struct stat stb = {0}; BENCHMARK_F() local 564 struct stat stb = {0}; BENCHMARK_F() local 622 struct stat stb = {0}; BENCHMARK_F() local 683 struct stat stb = {0}; BENCHMARK_F() local 758 struct stat stb = {0}; BENCHMARK_F() local 821 struct stat stb = {0}; BENCHMARK_F() local 1007 struct stat stb = {0}; BENCHMARK_F() local 1413 struct stat stb = {0}; BENCHMARK_F() local 1454 struct stat stb = {0}; BENCHMARK_F() local [all...] |
Completed in 4 milliseconds