Lines Matching refs:stb
33 bool MappedFile::ValidMappedSize(off_t& targetSize, const struct stat& stb)
35 off_t max = RoundSize(stb.st_size) - offset_; // Avoid mapped size excessing
85 struct stat stb = {0};
87 if (stat(path_.c_str(), &stb) != 0) {
93 size_ = stb.st_size;
97 if (!ValidMappedSize(size_, stb)) {
99 __FUNCTION__, static_cast<long long>(size_), static_cast<long long>(stb.st_size));
277 struct stat stb = {0};
278 if (stat(path_.c_str(), &stb) != 0) {
281 } else if (offset_ + newSize <= stb.st_size) {
297 struct stat stb = {0};
298 if (stat(path_.c_str(), &stb) != 0) {
304 newSize = stb.st_size;
325 struct stat stb = {0};
326 if (stat(path_.c_str(), &stb) != 0) {
331 if (!ValidMappedSize(newSize, stb)) {
376 struct stat stb = {0};
377 int ret = stat(path_.c_str(), &stb);
382 if (EndOffset() + 1 >= stb.st_size) {
398 if (EndOffset() + 1 + size_ > stb.st_size) {
399 size_ = stb.st_size - EndOffset() - 1;