Searched refs:st_size (Results 1 - 25 of 143) sorted by relevance

123456

/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/system/libroot/posix/unistd/
H A Dtruncate.c24 stat.st_size = newSize;
38 stat.st_size = newSize;
/haiku/src/add-ons/kernel/file_systems/nfs4/
H A DMetadataCache.cpp43 st->st_size = fStatCache.st_size;
78 off_t oldSize = fStatCache.st_size;
79 fStatCache.st_size = max_c((off_t)newSize, fStatCache.st_size);
81 if (oldSize != fStatCache.st_size) {
159 if (oldStat->st_size != newStat->st_size)
/haiku/src/bin/network/ftpd/
H A Dmd5hl.c64 if (ofs > stbuf.st_size)
65 ofs = stbuf.st_size;
66 if ((len == 0) || (len > stbuf.st_size - ofs))
67 len = stbuf.st_size - ofs;
H A Dlogwtmp.c93 (void)ftruncate(fd, buf.st_size);
/haiku/src/bin/
H A Dfortune.c124 buffer = malloc(stat.st_size + 1);
130 if (read(fd, buffer, stat.st_size) < 0) {
137 buffer[stat.st_size] = '\0';
143 for (i = 0; i < stat.st_size - 2; i++) {
160 for (i = 0; i < stat.st_size - 2; i++) {
/haiku/headers/posix/compat/sys/
H A Dstat.h25 off_t st_size; /* size in bytes of this file */ member in struct:stat_beos
/haiku/src/system/boot/loader/
H A Dload_driver_settings.cpp36 char* buffer = (char*)kernel_args_malloc(stat.st_size + 1);
40 if (read(fd, buffer, stat.st_size) != stat.st_size) {
52 buffer[stat.st_size] = '\0';
57 file->size = stat.st_size;
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DNodeInfo.cpp16 visitor->Visit(this, st.st_size);
/haiku/src/system/libroot/posix/sys/
H A Dstat.c80 beosStat->st_size = stat->st_size;
102 stat->st_size = beosStat->st_size;
/haiku/src/kits/debugger/files/
H A DSourceFile.cpp66 if (st.st_size > kMaxSourceFileSize) {
70 size_t fileSize = st.st_size;
/haiku/src/tests/system/boot/loader/
H A DHandle.cpp116 if (stat.st_size == 0) {
121 return stat.st_size;
/haiku/src/add-ons/kernel/file_systems/fat/
H A Dfile.cpp138 buffer[0x1c] = node->st_size & 0xff; // file size
139 buffer[0x1d] = (node->st_size >> 8) & 0xff;
140 buffer[0x1e] = (node->st_size >> 16) & 0xff;
141 buffer[0x1f] = (node->st_size >> 24) & 0xff;
200 st->st_size = node->st_size;
201 st->st_blocks = (node->st_size + 511) / 512;
246 DPRINTF(0, ("setting file size to %" B_PRIdOFF "\n", st->st_size));
250 } else if (st->st_size > MAX_FILE_SIZE) {
254 uint32 clusters = (st->st_size
[all...]
H A Ddir.cpp515 < dir->st_size) {
519 dir->st_size = clusters * vol->bytes_per_sector
659 dir->st_size, last_entry ? "" : "n't"));
662 if (*ne * 0x20 >= dir->st_size) {
677 " clusters\n", dir->st_size / vol->bytes_per_sector
684 dir->st_size = vol->bytes_per_sector*vol->sectors_per_cluster*clusters_needed;
902 info.size = node->st_size;
1003 entry->st_size = info.size;
1006 entry->st_size = count_clusters(vol,entry->cluster)
1011 (entry->st_size
[all...]
/haiku/src/system/libroot/posix/glibc/libio/
H A Dfileops.c611 && S_ISREG (st.st_mode) && st.st_size != 0
613 && (sizeof (ptrdiff_t) > 4 || st.st_size < 1*1024*1024))
617 if (ROUNDED (st.st_size) < ROUNDED (fp->_IO_buf_end
621 (void) __munmap (fp->_IO_buf_base + ROUNDED (st.st_size),
623 - ROUNDED (st.st_size));
624 fp->_IO_buf_end = fp->_IO_buf_base + st.st_size;
626 else if (ROUNDED (st.st_size) > ROUNDED (fp->_IO_buf_end
634 ROUNDED (st.st_size), MREMAP_MAYMOVE);
645 p = _G_MMAP64 (NULL, st.st_size, PROT_READ, MAP_SHARED,
648 p = __mmap (NULL, st.st_size, PROT_REA
[all...]
/haiku/src/tests/kits/storage/
H A DBasicTest.h63 && st1.st_size == st2.st_size
H A DBasicTest.cpp78 printf(" st_size : %lld\n", st.st_size);
/haiku/src/tests/system/libroot/posix/
H A Dtruncate.cpp37 printf("size %10Ld\n", st.st_size);
H A Dfseek_test.cpp324 } else if (ftello(fp) != st1.st_size) {
325 printf("%d: fstat st_size %zd ftello %zd\n", __LINE__,
326 (size_t) st1.st_size, (size_t) ftello(fp));
346 } else if (ftello(fp) != st1.st_size) {
347 printf("%d: fstat st_size %zd ftello %zd\n", __LINE__,
348 (size_t) st1.st_size, (size_t) ftello(fp));
/haiku/src/system/libroot/os/
H A Dfs_index.c46 indexInfo->size = stat.st_size;
/haiku/src/apps/haikudepot/server/
H A DPopulatePkgSizesProcess.cpp100 return s.st_size;
/haiku/src/kits/storage/
H A DFileDescriptorIO.cpp92 *size = st.st_size;
H A DFdIO.cpp120 *_size = st.st_size;
/haiku/src/add-ons/kernel/file_systems/shared/
H A DDeviceOpener.cpp121 *_size = stat.st_size;
/haiku/src/tools/anyboot/
H A Danyboot.cpp240 off_t isoSize = stat.st_size;
256 efiSize = stat.st_size;
264 off_t imageSize = stat.st_size;

Completed in 157 milliseconds

123456