Searched refs:st_size (Results 151 - 175 of 280) sorted by relevance

1234567891011>>

/haiku-fatelf/src/system/kernel/vm/
H A DVMAnonymousCache.cpp1295 if (st.st_size < B_PAGE_SIZE) {
1321 uint32 pageCount = st.st_size >> PAGE_SHIFT;
1582 existingSwapSize = existingSwapStat.st_size;
1600 stat.st_size = swapSize;
/haiku-fatelf/src/apps/debugger/elf/
H A DElfFile.cpp144 fFileSize = st.st_size;
/haiku-fatelf/src/apps/aboutsystem/
H A DAboutSystem.cpp915 char* buff = (char*)malloc((size_t)st.st_size + 1);
918 buff[(size_t)st.st_size] = '\0';
920 if (fortunes.Read(buff, (size_t)st.st_size) == (ssize_t)st.st_size) {
/haiku-fatelf/src/add-ons/kernel/file_systems/exfat/
H A DVolume.cpp181 *_size = stat.st_size;
/haiku-fatelf/src/add-ons/kernel/file_systems/layers/log_overlay/
H A Dlog_overlay.cpp342 stat->st_size);
629 stat->st_gid, stat->st_size, stat->st_type);
957 stat->st_mode, stat->st_uid, stat->st_gid, stat->st_size,
/haiku-fatelf/src/add-ons/kernel/file_systems/packagefs/
H A Dkernel_interface.cpp335 st->st_size = node->FileSize();
342 st->st_blocks = (st->st_size + 511) / 512;
975 stat->st_size = index->CountEntries();
/haiku-fatelf/src/bin/coreutils/src/
H A Ddd.c1299 if (S_ISREG (st.st_mode) && st.st_size < (input_offset + offset))
1304 records = ( offset - st.st_size ) / blocksize;
1305 offset = st.st_size - input_offset;
H A Dod.c986 /* The st_size field is valid only for regular files
991 when st_size is 0, because some kernels report that
992 nonempty files in /proc have st_size == 0. */
993 if (S_ISREG (file_stats.st_mode) && 0 < file_stats.st_size)
995 if ((uintmax_t) file_stats.st_size < n_skip)
996 n_skip -= file_stats.st_size;
/haiku-fatelf/src/bin/gdb/gdb/
H A Dremote-fileio.c406 remote_fileio_to_fio_ulong ((LONGEST) st->st_size, fst->fst_size);
414 remote_fileio_to_fio_ulong (((LONGEST) st->st_size + st->st_blksize - 1)
1135 st.st_size = 0;
/haiku-fatelf/src/bin/gzip/
H A Dgzip.c747 ifile_size = istat.st_size;
1424 && stat1->st_size == stat2->st_size
/haiku-fatelf/src/bin/network/atftpd/
H A Dtftpd_file.c504 opt_set_tsize(file_stat.st_size, data->tftp_options);
505 logger(LOG_INFO, "tsize option -> %d", file_stat.st_size);
563 if ((file_stat.st_size / (data->data_buffer_size - 4)) > 65535)
/haiku-fatelf/src/bin/rcs/
H A Drcslex.c977 size_t s = status->st_size;
979 if (s != status->st_size)
1048 status->st_size = s -= bufsiz;
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/udf/r5/
H A Dudf.cpp305 PRINT((" st_size: %Ld\n", stat.st_size));
307 deviceSize = stat.st_size / 2048;
565 st->st_size = icb->Length();
/haiku-fatelf/src/add-ons/kernel/file_systems/ntfs/
H A Dfs_func.c804 stbuf->st_size = ni->data_size;
810 stbuf->st_size = ni->data_size;
820 stbuf->st_size = na->data_size;
891 TRACE("fs_wstat: setting file size to %Lx\n", st->st_size);
902 ntfs_attr_truncate(na, st->st_size);
/haiku-fatelf/src/add-ons/kernel/file_systems/ramfs/
H A Dkernel_interface.cpp689 st->st_size = node->GetSize();
717 error = node->SetSize(st->st_size);
1756 st->st_size = attribute->GetSize();
1991 st->st_size = index->GetKeyLength();
1993 st->st_size = kMaxIndexKeyLength;
/haiku-fatelf/src/bin/gdb/bfd/
H A Delfcode.h184 dst->st_size = H_GET_WORD (abfd, src->st_size);
209 H_PUT_WORD (abfd, src->st_size, dst->st_size);
1126 sym->symbol.value = isym->st_size;
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/bt_fs/
H A DbtClient.c668 st->st_size = btRPCGetInt64(packet);
685 btRPCPutInt64(packet, (int64) st->st_size);
951 if (filePos >= st.st_size)
954 while (filePos < st.st_size && bytesRead < len && error == B_OK)
1278 btRPCPutArg(outPacket, B_INT32_TYPE, &st->st_size, sizeof(int32));
H A Dnfs_add_on.c784 (*cookie)->original_size = st.st_size;
897 (*cookie)->original_size = st.st_size;
921 (*cookie)->original_size = st.st_size;
/haiku-fatelf/src/tests/system/kernel/file_corruption/fs/
H A Dchecksumfs.cpp1414 st->st_size = node->Size();
1421 st->st_blocks = 1 + (st->st_size + B_PAGE_SIZE - 1) / B_PAGE_SIZE;
1452 if ((statMask & B_STAT_SIZE) != 0 && (uint64)st->st_size != node->Size()) {
1456 error = node->Resize(st->st_size, true, transaction);
2111 st->st_size = cookie->attribute->Size();
/haiku-fatelf/src/tools/docbook/libxml2/
H A Dxmllint.c1808 base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ;
1812 reader = xmlReaderForMemory(base, info.st_size, filename,
1951 munmap((char *) base, info.st_size);
2194 base = mmap(NULL, info.st_size, PROT_READ, MAP_SHARED, fd, 0) ;
2199 doc = xmlReadMemory((char *) base, info.st_size,
2202 doc = xmlCtxtReadMemory(rectxt, (char *) base, info.st_size,
2205 munmap((char *) base, info.st_size);
/haiku-fatelf/src/add-ons/kernel/file_systems/nfs/
H A Dnfs_add_on.c658 st->st_size=XDRInPacketGetInt32(reply);
1457 (*cookie)->original_size = st.st_size;
1557 if (pos >= st.st_size)
1662 XDROutPacketAddInt32(&call, (mask & WSTAT_SIZE) ? st->st_size : -1);
1757 (*cookie)->original_size=st.st_size;
1838 (*cookie)->original_size = st.st_size;
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfts.c284 /* Overload the fts_statp->st_size member (otherwise unused, when
291 p->fts_statp->st_size = (required
965 if (p->fts_statp->st_size == FTS_STAT_REQUIRED)
988 fts_assert (p->fts_statp->st_size == FTS_NO_STAT_REQUIRED);
/haiku-fatelf/src/build/libroot/
H A Dfs.cpp929 if (ftruncate(realFD, st->st_size) < 0)
959 if (truncate(realPath.c_str(), st->st_size) < 0)
1462 st.st_size = newSize;
/haiku-fatelf/src/add-ons/kernel/debugger/hangman/
H A Dhangman.c133 sz = (size_t)st.st_size;
/haiku-fatelf/src/add-ons/kernel/file_systems/ext2/
H A Dkernel_interface.cpp601 stat->st_size = inode->Size();
631 if ((mask & B_STAT_SIZE) != 0 && inode->Size() != stat->st_size) {
640 (long)inode->Size(), (long)stat->st_size);
644 status_t status = inode->Resize(transaction, stat->st_size);

Completed in 279 milliseconds

1234567891011>>