/haiku/src/add-ons/kernel/file_systems/nfs4/ |
H A D | MetadataCache.cpp | 43 st->st_size = fStatCache.st_size; in GetStat() 78 off_t oldSize = fStatCache.st_size; in GrowFile() 79 fStatCache.st_size = max_c((off_t)newSize, fStatCache.st_size); in GrowFile() 81 if (oldSize != fStatCache.st_size) { in GrowFile() 159 if (oldStat->st_size != newStat->st_size) in NotifyChanges()
|
/haiku/src/bin/ |
H A D | fortune.c | 124 buffer = malloc(stat.st_size + 1); in main() 130 if (read(fd, buffer, stat.st_size) < 0) { in main() 137 buffer[stat.st_size] = '\0'; in main() 143 for (i = 0; i < stat.st_size - 2; i++) { in main() 160 for (i = 0; i < stat.st_size - 2; i++) { in main()
|
/haiku/src/system/libroot/posix/glibc/include/bits/ |
H A D | stat.h | 46 __off_t st_size; /* Size of file, in bytes. */ 48 __off64_t st_size; /* Size of file, in bytes. */ 96 __off64_t st_size; /* Size of file, in bytes. */
|
/haiku/src/bin/network/ftpd/ |
H A D | md5hl.c | 64 if (ofs > stbuf.st_size) in MD5FileChunk() 65 ofs = stbuf.st_size; in MD5FileChunk() 66 if ((len == 0) || (len > stbuf.st_size - ofs)) in MD5FileChunk() 67 len = stbuf.st_size - ofs; in MD5FileChunk()
|
/haiku/src/system/boot/loader/ |
H A D | load_driver_settings.cpp | 36 char* buffer = (char*)kernel_args_malloc(stat.st_size + 1); in load_driver_settings_file() 40 if (read(fd, buffer, stat.st_size) != stat.st_size) { in load_driver_settings_file() 52 buffer[stat.st_size] = '\0'; in load_driver_settings_file() 57 file->size = stat.st_size; in load_driver_settings_file()
|
/haiku/src/system/libroot/posix/unistd/ |
H A D | truncate.c | 24 stat.st_size = newSize; in truncate() 38 stat.st_size = newSize; in ftruncate()
|
/haiku/src/system/libroot/posix/sys/ |
H A D | stat.c | 75 beosStat->st_size = stat->st_size; in convert_to_stat_beos() 97 stat->st_size = beosStat->st_size; in convert_from_stat_beos()
|
/haiku/src/system/libroot/posix/glibc/libio/ |
H A D | fileops.c | 611 && S_ISREG (st.st_mode) && st.st_size != 0 in INTDEF2() 613 && (sizeof (ptrdiff_t) > 4 || st.st_size < 1*1024*1024)) in INTDEF2() 617 if (ROUNDED (st.st_size) < ROUNDED (fp->_IO_buf_end in INTDEF2() 621 (void) __munmap (fp->_IO_buf_base + ROUNDED (st.st_size), in INTDEF2() 623 - ROUNDED (st.st_size)); in INTDEF2() 624 fp->_IO_buf_end = fp->_IO_buf_base + st.st_size; in INTDEF2() 626 else if (ROUNDED (st.st_size) > ROUNDED (fp->_IO_buf_end in INTDEF2() 634 ROUNDED (st.st_size), MREMAP_MAYMOVE); in INTDEF2() 645 p = _G_MMAP64 (NULL, st.st_size, PROT_READ, MAP_SHARED, in INTDEF2() 648 p = __mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, in INTDEF2() [all …]
|
/haiku/src/tests/system/boot/loader/ |
H A D | Handle.cpp | 116 if (stat.st_size == 0) { in Size() 121 return stat.st_size; in Size()
|
/haiku/src/kits/debugger/files/ |
H A D | SourceFile.cpp | 66 if (st.st_size > kMaxSourceFileSize) { in Init() 70 size_t fileSize = st.st_size; in Init()
|
/haiku/src/tests/kits/storage/ |
H A D | BasicTest.h | 63 && st1.st_size == st2.st_size
|
/haiku/src/tools/anyboot/ |
H A D | anyboot.cpp | 240 off_t isoSize = stat.st_size; in main() 256 efiSize = stat.st_size; in main() 264 off_t imageSize = stat.st_size; in main()
|
/haiku/headers/posix/compat/sys/ |
H A D | stat.h | 25 off_t st_size; /* size in bytes of this file */ member
|
/haiku/src/add-ons/kernel/file_systems/netfs/shared/ |
H A D | NodeInfo.cpp | 16 visitor->Visit(this, st.st_size); in ShowAround()
|
/haiku/src/system/libroot/os/ |
H A D | driver_settings.cpp | 447 if (stat.st_size > B_OK && stat.st_size < MAX_SETTINGS_SIZE) { in load_driver_settings_from_file() 448 char *text = (char *)malloc(stat.st_size + 1); in load_driver_settings_from_file() 449 if (text != NULL && read(file, text, stat.st_size) == stat.st_size) { in load_driver_settings_from_file() 452 text[stat.st_size] = '\0'; in load_driver_settings_from_file()
|
H A D | fs_index.c | 46 indexInfo->size = stat.st_size; in fs_stat_index()
|
/haiku/src/kits/debug/ |
H A D | Image.cpp | 98 || symbol->st_size >= (size_t)fInfo.text_size + fInfo.data_size) { in LookupSymbol() 107 if (symbolDelta >= 0 && symbolDelta < symbol->st_size) in LookupSymbol() 154 *_symbolSize = symbol->st_size; in NextSymbol() 269 fFileSize = st.st_size; in _LoadFile()
|
/haiku/src/tests/system/libroot/posix/ |
H A D | truncate.cpp | 37 printf("size %10Ld\n", st.st_size); in main()
|
H A D | fseek_test.cpp | 324 } else if (ftello(fp) != st1.st_size) { in glibc_test() 326 (size_t) st1.st_size, (size_t) ftello(fp)); in glibc_test() 346 } else if (ftello(fp) != st1.st_size) { in glibc_test() 348 (size_t) st1.st_size, (size_t) ftello(fp)); in glibc_test()
|
/haiku/src/system/runtime_loader/ |
H A D | elf_haiku_version.cpp | 223 && symbol->st_size >= sizeof(uint32)) { in analyze_image_haiku_version_and_abi() 236 && symbol->st_size >= sizeof(uint32)) { in analyze_image_haiku_version_and_abi()
|
H A D | runtime_loader.cpp | 501 B_ANY_ADDRESS, st.st_size, B_READ_AREA, REGION_NO_PRIVATE_MAP, false, in determine_x86_abi() 527 if (elfHeader.e_shoff + (off_t)sectionHeadersSize > st.st_size) in determine_x86_abi() 545 > st.st_size) { in determine_x86_abi() 602 if (symbol->st_value > 0 && symbol->st_size >= sizeof(uint32) in determine_x86_abi() 611 if (fileOffset + (off_t)sizeof(uint32) <= st.st_size) { in determine_x86_abi()
|
/haiku/src/add-ons/kernel/file_cache/ |
H A D | rule_based_prefetcher.cpp | 376 if (stat.st_size > 32767) { in load_rules() 383 char *buffer = (char *)malloc(stat.st_size + 1); in load_rules() 389 if (read(fd, buffer, stat.st_size) < stat.st_size) { in load_rules() 395 buffer[stat.st_size] = '\0'; in load_rules()
|
/haiku/src/add-ons/kernel/file_systems/layers/write_overlay/ |
H A D | write_overlay.cpp | 280 fStat.st_size = 0; in OverlayInode() 505 stat->st_blocks = (stat->st_size + stat->st_blksize - 1) / stat->st_blksize; in ReadStat() 521 if (fStat.st_size != stat->st_size) { in WriteStat() 522 fStat.st_size = stat->st_size; in WriteStat() 586 fStat.st_size = 0; in Open() 598 if (fStat.st_size != 0) { in Open() 599 fStat.st_size = 0; in Open() 634 fOriginalNodeLength = stat.st_size; in Open() 683 if (position >= fStat.st_size) { in Read() 690 size_t bytesLeft = (size_t)MIN(fStat.st_size - position, (off_t)*length); in Read() [all …]
|
/haiku/src/tools/fs_shell/ |
H A D | stat_util.cpp | 159 fsshStat->fssh_st_size = st->st_size; in from_platform_stat() 178 st->st_size = fsshStat->fssh_st_size; in to_platform_stat()
|
/haiku/src/apps/haikudepot/server/ |
H A D | PopulatePkgSizesProcess.cpp | 107 return s.st_size; in _DeriveSize()
|