/freebsd-10-stable/contrib/libarchive/cpio/test/ |
H A D | test_option_B_upper.c | 44 assertEqualInt(512, st.st_size); 51 assertEqualInt(5120, st.st_size);
|
/freebsd-10-stable/usr.sbin/bhyve/ |
H A D | bootrom.c | 76 if (sbuf.st_size > MAX_BOOTROM_SIZE || sbuf.st_size < PAGE_SIZE) { 77 fprintf(stderr, "Invalid bootrom size %ld\n", sbuf.st_size); 81 if (sbuf.st_size & PAGE_MASK) { 83 "page size\n", sbuf.st_size); 87 ptr = vm_create_devmem(ctx, VM_BOOTROM, "bootrom", sbuf.st_size); 93 gpa = (1ULL << 32) - sbuf.st_size; 94 if (vm_mmap_memseg(ctx, gpa, VM_BOOTROM, 0, sbuf.st_size, prot) != 0) 98 for (i = 0; i < sbuf.st_size / PAGE_SIZE; i++) {
|
/freebsd-10-stable/contrib/nvi/ex/ |
H A D | ex_source.c | 63 if (sb.st_size > MEGABYTE) { 68 MALLOC(sp, bp, char *, (size_t)sb.st_size + 1); 73 bp[sb.st_size] = '\0'; 76 len = read(fd, bp, (int)sb.st_size); 78 if (len == -1 || len != sb.st_size) { 79 if (len != sb.st_size) 87 if (CHAR2INT(sp, bp, (size_t)sb.st_size + 1, wp, wlen))
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/powerpc/ |
H A D | dt_isadep.c | 47 ftp->ftps_size = (size_t)symp->st_size; 70 if ((text = malloc(symp->st_size + 4)) == NULL) { 75 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 85 text[symp->st_size / 4] = 0; 89 ftp->ftps_size = symp->st_size; 92 for (i = 0; i < symp->st_size / 4; i++) { 115 temp <= (symp->st_value + symp->st_size)) 145 ftp->ftps_size = (size_t)symp->st_size; 167 ftp->ftps_size = (size_t)symp->st_size; [all...] |
/freebsd-10-stable/usr.sbin/mpsutil/ |
H A D | mps_flash.c | 162 mem = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 175 munmap(mem, st.st_size); 181 munmap(mem, st.st_size); 190 munmap(mem, st.st_size); 194 if ((st.st_size % 512) != 0) { 196 munmap(mem, st.st_size); 207 munmap(mem, st.st_size); 216 munmap(mem, st.st_size); 223 if (mps_firmware_send(fd, mem, st.st_size, bios) < 0) { 225 munmap(mem, st.st_size); [all...] |
/freebsd-10-stable/usr.sbin/ctm/mkCTM/ |
H A D | mkctm.c | 176 if (s1.st_size == s2.st_size) { 178 s_same_bytes += s1.st_size; 184 p1=mmap(0, s1.st_size, PROT_READ, MAP_PRIVATE, fd1, 0); 188 p2=mmap(0, s2.st_size, PROT_READ, MAP_PRIVATE, fd2, 0); 193 if((s1.st_size == s2.st_size) && !memcmp(p1, p2, s1.st_size)) { 195 s_same_bytes += s1.st_size; 201 if (s1.st_size > s [all...] |
/freebsd-10-stable/usr.bin/truncate/tests/ |
H A D | truncate_test.sh | 207 [ ${st_size} -eq 1024 ] || atf_fail "expected file size of 1k" 215 [ ${st_size} -eq 1048576 ] || atf_fail "expected file size of 1m" 232 [ ${st_size} -eq 1048576 ] || atf_fail "expected file size of 1m" 240 [ ${st_size} -eq 1024 ] || atf_fail "expected file size of 1k" 257 [ ${st_size} -eq 1024 ] || atf_fail "expected file size of 1k" 265 [ ${st_size} -eq 1048576 ] || atf_fail "expected file size of 1m" 282 [ ${st_size} -eq 1049600 ] || atf_fail "expected file size of 1m" 290 [ ${st_size} -eq 1024 ] || atf_fail "expected file size of 1k" 314 [ ${st_size} -eq 1024 ] || atf_fail "expected file size of 1k" 316 [ ${st_size} [all...] |
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/sparc/ |
H A D | dt_isadep.c | 58 ftp->ftps_size = (size_t)symp->st_size; 80 if ((text = malloc(symp->st_size + 4)) == NULL) { 85 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 95 text[symp->st_size / 4] = 0; 99 ftp->ftps_size = symp->st_size; 102 for (i = 0; i < symp->st_size / 4; i++) { 183 if ((uintptr_t)dst >= (uintptr_t)symp->st_size) 246 (uintptr_t)symp->st_size) { 286 ftp->ftps_size = (size_t)symp->st_size; [all...] |
/freebsd-10-stable/sys/cddl/compat/opensolaris/sys/ |
H A D | stat.h | 50 (void)ioctl(fd, DIOCGMEDIASIZE, &sb->st_size);
|
/freebsd-10-stable/bin/sh/ |
H A D | mail.c | 107 statb.st_size = 0; 108 if (statb.st_size > mailtime[i] && ! silent) { 112 mailtime[i] = statb.st_size;
|
/freebsd-10-stable/sys/compat/svr4/ |
H A D | svr4_stat.h | 45 svr4_off_t st_size; member in struct:svr4_stat 61 svr4_off_t st_size; member in struct:svr4_xstat 82 svr4_off64_t st_size; member in struct:svr4_stat64
|
/freebsd-10-stable/lib/libc/locale/ |
H A D | ldpart.c | 94 if (st.st_size <= 0) { 98 bufsize = namesize + st.st_size; 105 plim = p + st.st_size; 106 if (_read(fd, p, (size_t) st.st_size) != st.st_size)
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libdtrace/i386/ |
H A D | dt_isadep.c | 72 ftp->ftps_size = (size_t)symp->st_size; 163 if ((text = calloc(1, symp->st_size + 4)) == NULL) { 168 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 176 ftp->ftps_size = (size_t)symp->st_size; 253 if (size == 5 && text[i] == DT_JMP32 && symp->st_size <= 258 if (size == 2 && text[i] == DT_JMP8 && symp->st_size <= 264 symp->st_size <= 269 if (size == 2 && DT_ISJ8(text[i]) && symp->st_size <= 299 ftp->ftps_size = (size_t)symp->st_size; [all...] |
/freebsd-10-stable/usr.sbin/cpucontrol/ |
H A D | amd.c | 126 if (st.st_size < 0 || (unsigned)st.st_size < sizeof(*fw_header)) { 133 fw_image = (uint32_t *)mmap(NULL, st.st_size, PROT_READ, 146 fw_size = (st.st_size - sizeof(*fw_header)) / sizeof(uint32_t); 162 args.size = st.st_size; 178 if(munmap(fw_image, st.st_size) != 0)
|
H A D | via.c | 148 if (st.st_size < 0 || (unsigned)st.st_size < sizeof(*fw_header)) { 156 fw_image = (uint32_t *)mmap(NULL, st.st_size, PROT_READ, 171 if (total_size > (unsigned)st.st_size || st.st_size < 0) { 217 if (munmap(fw_image, st.st_size) != 0)
|
/freebsd-10-stable/bin/pax/ |
H A D | cpio.c | 95 if ((strcmp(arcn->name, TRAILER) == 0) && (arcn->sb.st_size == 0)) 141 arcn->skip = arcn->sb.st_size; 215 if ((arcn->sb.st_size == 0) || 216 ((size_t)arcn->sb.st_size >= sizeof(arcn->ln_name))) { 219 arcn->sb.st_size); 222 (uintmax_t)arcn->sb.st_size); 230 if (rd_wrbuf(arcn->ln_name, (int)arcn->sb.st_size) != 231 (int)arcn->sb.st_size) { 235 arcn->ln_nlen = arcn->sb.st_size; 312 arcn->sb.st_size [all...] |
/freebsd-10-stable/usr.bin/cmp/ |
H A D | cmp.c | 173 if (zflag && sb1.st_size != sb2.st_size) { 179 c_regular(fd1, file1, skip1, sb1.st_size, 180 fd2, file2, skip2, sb2.st_size);
|
/freebsd-10-stable/lib/libmd/ |
H A D | mdXhl.c | 64 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;
|
/freebsd-10-stable/tests/sys/file/ |
H A D | ftruncate_test.c | 101 if (sb.st_size != len) 103 (intmax_t)len, (intmax_t)sb.st_size); 124 if (sb.st_size != len) 126 sb.st_size);
|
/freebsd-10-stable/crypto/heimdal/lib/roken/ |
H A D | dumpdata.c | 74 *buf = malloc(sb.st_size); 79 *size = sb.st_size;
|
/freebsd-10-stable/lib/libc/iconv/ |
H A D | citrus_mmap.c | 72 head = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_FILE|MAP_PRIVATE, 78 _region_init(r, head, (size_t)st.st_size);
|
/freebsd-10-stable/contrib/libpcap/tests/ |
H A D | filtertest.c | 85 cp = malloc((u_int)buf.st_size + 1); 87 error("malloc(%d) for %s: %s", (u_int)buf.st_size + 1, 89 cc = read(fd, cp, (u_int)buf.st_size); 92 if (cc != buf.st_size) 93 error("short read %s (%d != %d)", fname, cc, (int)buf.st_size);
|
/freebsd-10-stable/usr.sbin/mfiutil/ |
H A D | mfi_flash.c | 117 if (sb.st_size % 1024 != 0 || sb.st_size > 0x7fffffff) { 131 mbox_store_word(mbox, sb.st_size); 147 while (sb.st_size > 0) { 167 sb.st_size -= nread;
|
/freebsd-10-stable/usr.bin/mkulzma/ |
H A D | mkulzma.c | 157 sb.st_size = ms; 164 hdr.nblocks = sb.st_size / hdr.blksz; 165 if ((sb.st_size % hdr.blksz) != 0) { 195 "%u, index length %zu bytes\n", sb.st_size, 266 (long long)(sb.st_size - offset), 267 100.0 * (long long)(sb.st_size - offset) / 268 (float)sb.st_size);
|
/freebsd-10-stable/contrib/libucl/tests/ |
H A D | test_speed.c | 86 map = mmap (NULL, st.st_size, PROT_READ, MAP_SHARED, fin, 0); 95 ucl_parser_add_chunk (parser, map, st.st_size); 148 munmap (map, st.st_size);
|