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

1234567891011>>

/haiku-fatelf/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-fatelf/src/bin/sharutils/intl/
H A Dloadmsgcat.c92 && st.st_size < (off_t) sizeof (struct mo_file_header))
103 data = (struct mo_file_header *) mmap (NULL, st.st_size, PROT_READ,
121 data = (struct mo_file_header *) malloc (st.st_size);
125 to_read = st.st_size;
152 munmap ((caddr_t) data, st.st_size);
180 munmap ((caddr_t) data, st.st_size);
/haiku-fatelf/src/system/libroot/posix/unistd/
H A Dtruncate.c31 stat.st_size = newSize;
45 stat.st_size = newSize;
/haiku-fatelf/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;
/haiku-fatelf/src/bin/
H A Dfortune.c123 buffer = malloc(stat.st_size + 1);
129 if (read(fd, buffer, stat.st_size) < 0) {
135 buffer[stat.st_size] = '\0';
141 for (i = 0; i < stat.st_size - 2; i++) {
157 for (i = 0; i < stat.st_size - 2; i++) {
/haiku-fatelf/src/bin/gawk/posix/
H A Dgawkmisc.c135 && 0 < stb->st_size /* non-zero size */
136 && (stb->st_size < DEFBLKSIZE /* small file */
138 return stb->st_size; /* use file size */
/haiku-fatelf/headers/posix/compat/sys/
H A Dstat.h25 off_t st_size; /* size in bytes of this file */ member in struct:stat_beos
/haiku-fatelf/src/bin/coreutils/lib/
H A Dfile-type.c38 return st->st_size == 0 ? _("regular empty file") : _("regular file");
H A Dftruncate.c37 if (filebuf.st_size < length)
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_open/
H A D21-1.c52 if(stat_buf.st_size == 0) {
H A D25-1.c66 if(stat_buf.st_size == 0) {
/haiku-fatelf/src/tests/system/libroot/posix/posixtestsuite/conformance/interfaces/shm_unlink/
H A D8-1.c100 stat_after.st_size != stat_before.st_size ||
/haiku-fatelf/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)
50 buffer[stat.st_size] = '\0';
55 file->size = stat.st_size;
/haiku-fatelf/src/bin/bash/lib/sh/
H A Dmailstat.c45 * st_size total number of bytes in all files
85 st_ret.st_size = 0;
138 st_ret.st_size += st_tmp.st_size;
/haiku-fatelf/src/add-ons/kernel/file_systems/netfs/shared/
H A DNodeInfo.cpp16 visitor->Visit(this, st.st_size);
/haiku-fatelf/src/system/libroot/posix/sys/
H A Dstat.c80 beosStat->st_size = stat->st_size;
102 stat->st_size = beosStat->st_size;
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/userlandfs/r5/src/test/netfs/shared/
H A DNodeInfo.cpp16 visitor->Visit(this, st.st_size);
/haiku-fatelf/src/tests/system/libroot/posix/
H A Dtruncate.cpp36 printf("size %10Ld\n", st.st_size);
/haiku-fatelf/src/apps/debugger/files/
H A DSourceFile.cpp66 if (st.st_size > kMaxSourceFileSize) {
70 size_t fileSize = st.st_size;
/haiku-fatelf/src/bin/gdb/include/elf/
H A Dexternal.h131 unsigned char st_size[4]; /* Associated symbol size */ member in struct:__anon4081
143 unsigned char st_size[8]; /* Associated symbol size */ member in struct:__anon4082
/haiku-fatelf/src/tests/system/boot/loader/
H A DHandle.cpp116 if (stat.st_size == 0) {
121 return stat.st_size;
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/dos/r5/
H A Dfile.c85 buffer[0x1c] = node->st_size & 0xff; // file size
86 buffer[0x1d] = (node->st_size >> 8) & 0xff;
87 buffer[0x1e] = (node->st_size >> 16) & 0xff;
88 buffer[0x1f] = (node->st_size >> 24) & 0xff;
162 st->st_size = node->st_size;
210 DPRINTF(0, ("setting file size to %Lx\n", st->st_size));
214 } else if (st->st_size > MAX_FILE_SIZE) {
218 uint32 clusters = (st->st_size + vol->bytes_per_sector*vol->sectors_per_cluster - 1) / vol->bytes_per_sector / vol->sectors_per_cluster;
221 node->st_size
[all...]
/haiku-fatelf/src/add-ons/kernel/file_systems/fat/
H A Dfile.c111 buffer[0x1c] = node->st_size & 0xff; // file size
112 buffer[0x1d] = (node->st_size >> 8) & 0xff;
113 buffer[0x1e] = (node->st_size >> 16) & 0xff;
114 buffer[0x1f] = (node->st_size >> 24) & 0xff;
180 st->st_size = node->st_size;
181 st->st_blocks = (node->st_size + 511) / 512;
226 DPRINTF(0, ("setting file size to %Lx\n", st->st_size));
230 } else if (st->st_size > MAX_FILE_SIZE) {
234 uint32 clusters = (st->st_size
[all...]
/haiku-fatelf/src/tests/add-ons/kernel/file_systems/beserved/FileSharing-Windows/
H A DManageQueue.cpp203 if (st.st_size > 1024 * 1024)
204 sprintf(buffer, "%.2f MB", (float) st.st_size / (1024.0 * 1024.0));
205 else if (st.st_size > 1024)
206 sprintf(buffer, "%d KB", st.st_size / 1024);
208 sprintf(buffer, "%d", st.st_size);
/haiku-fatelf/src/bin/rcs/
H A Drcsfcmp.c180 if (!(result = xstatp->st_size!=ustat.st_size)) {
182 result = !!memcmp(xfp->base,ufp->base,(size_t)xstatp->st_size);

Completed in 144 milliseconds

1234567891011>>