/freebsd-11.0-release/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-11.0-release/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-11.0-release/usr.sbin/bluetooth/ath3kfw/ |
H A D | ath3k_fw.c | 66 buf = calloc(1, sb.st_size); 75 r = read(fd, buf, sb.st_size); 83 if (r != sb.st_size) { 87 (int) sb.st_size); 98 fw->len = sb.st_size; 99 fw->size = sb.st_size;
|
/freebsd-11.0-release/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-11.0-release/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-11.0-release/usr.sbin/mpsutil/ |
H A D | mps_flash.c | 164 mem = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 177 munmap(mem, st.st_size); 183 munmap(mem, st.st_size); 192 munmap(mem, st.st_size); 197 if ((st.st_size % 512) != 0) { 199 munmap(mem, st.st_size); 211 munmap(mem, st.st_size); 221 munmap(mem, st.st_size); 229 if (mps_firmware_send(fd, mem, st.st_size, bios) < 0) { 231 munmap(mem, st.st_size); [all...] |
/freebsd-11.0-release/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-11.0-release/cddl/contrib/opensolaris/lib/libdtrace/arm/ |
H A D | dt_isadep.c | 67 ftp->ftps_size = (size_t)symp->st_size; 92 if ((text = malloc(symp->st_size + 4)) == NULL) { 97 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 107 text[symp->st_size / 4] = 0; 111 ftp->ftps_size = symp->st_size; 138 ftp->ftps_size = (size_t)symp->st_size; 160 ftp->ftps_size = (size_t)symp->st_size; 170 for (i = 0; i < symp->st_size; i += 4) { 176 for (i = 0; i < symp->st_size; [all...] |
/freebsd-11.0-release/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-11.0-release/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-11.0-release/sys/cddl/compat/opensolaris/sys/ |
H A D | stat.h | 50 (void)ioctl(fd, DIOCGMEDIASIZE, &sb->st_size);
|
/freebsd-11.0-release/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-11.0-release/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-11.0-release/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-11.0-release/cddl/contrib/opensolaris/lib/libdtrace/aarch64/ |
H A D | dt_isadep.c | 53 ftp->ftps_size = (size_t)symp->st_size; 87 ftp->ftps_size = (size_t)symp->st_size; 109 ftp->ftps_size = (size_t)symp->st_size; 119 for (i = 0; i < symp->st_size; i += 4) { 125 for (i = 0; i < symp->st_size; i += 4) {
|
/freebsd-11.0-release/cddl/contrib/opensolaris/lib/libdtrace/riscv/ |
H A D | dt_isadep.c | 53 ftp->ftps_size = (size_t)symp->st_size; 87 ftp->ftps_size = (size_t)symp->st_size; 109 ftp->ftps_size = (size_t)symp->st_size; 119 for (i = 0; i < symp->st_size; i += 4) { 125 for (i = 0; i < symp->st_size; i += 4) {
|
/freebsd-11.0-release/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-11.0-release/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-11.0-release/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-11.0-release/tests/sys/kern/pipe/ |
H A D | pipe_fstat_bug_test.c | 127 if (status.st_size != error) 129 (intmax_t)status.st_size, error); 132 (intmax_t)status.st_size, error);
|
/freebsd-11.0-release/tests/sys/file/ |
H A D | ftruncate_test.c | 102 if (sb.st_size != len) 104 (intmax_t)len, (intmax_t)sb.st_size); 125 if (sb.st_size != len) 127 sb.st_size);
|
/freebsd-11.0-release/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-11.0-release/crypto/heimdal/lib/roken/ |
H A D | dumpdata.c | 74 *buf = malloc(sb.st_size); 79 *size = sb.st_size;
|
/freebsd-11.0-release/lib/libc/iconv/ |
H A D | citrus_mmap.c | 74 head = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_FILE|MAP_PRIVATE, 80 _region_init(r, head, (size_t)st.st_size);
|