Home
last modified time | relevance | path

Searched refs:st_size (Results 1 – 25 of 140) sorted by relevance

123456

/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DMetadataCache.cpp43 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 Dfortune.c124 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 Dstat.h46 __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 Dmd5hl.c64 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 Dload_driver_settings.cpp36 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 Dtruncate.c24 stat.st_size = newSize; in truncate()
38 stat.st_size = newSize; in ftruncate()
/haiku/src/system/libroot/posix/sys/
H A Dstat.c75 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 Dfileops.c611 && 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 DHandle.cpp116 if (stat.st_size == 0) { in Size()
121 return stat.st_size; in Size()
/haiku/src/kits/debugger/files/
H A DSourceFile.cpp66 if (st.st_size > kMaxSourceFileSize) { in Init()
70 size_t fileSize = st.st_size; in Init()
/haiku/src/tests/kits/storage/
H A DBasicTest.h63 && st1.st_size == st2.st_size
/haiku/src/tools/anyboot/
H A Danyboot.cpp240 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 Dstat.h25 off_t st_size; /* size in bytes of this file */ member
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DNodeInfo.cpp16 visitor->Visit(this, st.st_size); in ShowAround()
/haiku/src/system/libroot/os/
H A Ddriver_settings.cpp447 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 Dfs_index.c46 indexInfo->size = stat.st_size; in fs_stat_index()
/haiku/src/kits/debug/
H A DImage.cpp98 || 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 Dtruncate.cpp37 printf("size %10Ld\n", st.st_size); in main()
H A Dfseek_test.cpp324 } 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 Delf_haiku_version.cpp223 && 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 Druntime_loader.cpp501 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 Drule_based_prefetcher.cpp376 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 Dwrite_overlay.cpp280 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 Dstat_util.cpp159 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 DPopulatePkgSizesProcess.cpp107 return s.st_size; in _DeriveSize()

123456