/freebsd-13-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-13-stable/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-13-stable/contrib/nvi/ex/ |
H A D | ex_source.c | 59 if (sb.st_size > MEGABYTE) { 64 MALLOC(sp, bp, (size_t)sb.st_size + 1); 69 bp[sb.st_size] = '\0'; 72 len = read(fd, bp, (int)sb.st_size); 74 if (len == -1 || len != sb.st_size) { 75 if (len != sb.st_size) 83 if (CHAR2INT(sp, bp, (size_t)sb.st_size + 1, wp, wlen))
|
/freebsd-13-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-13-stable/usr.sbin/mpsutil/ |
H A D | mps_flash.c | 165 mem = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 178 munmap(mem, st.st_size); 184 munmap(mem, st.st_size); 193 munmap(mem, st.st_size); 198 if ((st.st_size % 512) != 0) { 200 munmap(mem, st.st_size); 212 munmap(mem, st.st_size); 222 munmap(mem, st.st_size); 230 if (mps_firmware_send(fd, mem, st.st_size, bios) < 0) { 232 munmap(mem, st.st_size); [all...] |
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/ |
H A D | stat.h | 44 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
|
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/arm/ |
H A D | dt_isadep.c | 65 ftp->ftps_size = (size_t)symp->st_size; 90 if ((text = malloc(symp->st_size + 4)) == NULL) { 95 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 105 text[symp->st_size / 4] = 0; 109 ftp->ftps_size = symp->st_size; 136 ftp->ftps_size = (size_t)symp->st_size; 158 ftp->ftps_size = (size_t)symp->st_size; 168 for (i = 0; i < symp->st_size; i += 4) { 174 for (i = 0; i < symp->st_size; [all...] |
/freebsd-13-stable/contrib/file/src/ |
H A D | is_csv.c | 188 if ((p = malloc(st.st_size)) == NULL) 190 (intmax_t)st.st_size); 191 if (read(fd, p, st.st_size) != st.st_size) 193 (intmax_t)st.st_size); 194 printf("is csv %d\n", csv_parse(p, p + st.st_size));
|
H A D | buffer.c | 72 b->elen = CAST(size_t, b->st.st_size) < b->flen ? 73 CAST(size_t, b->st.st_size) : b->flen; 77 b->eoff = b->st.st_size - b->elen;
|
/freebsd-13-stable/contrib/mandoc/ |
H A D | dbm_map.c | 69 if (st.st_size < 5) { 74 if (st.st_size > INT32_MAX) { 78 if ((dbm_base = mmap(NULL, st.st_size, PROT_READ, MAP_SHARED, 102 if (st.st_size != max_offset) { 104 fname, (long long)st.st_size, max_offset); 130 if (munmap(dbm_base, st.st_size) == -1)
|
/freebsd-13-stable/usr.bin/truncate/ |
H A D | truncate.c | 110 tsize = sb.st_size; 138 oflow = sb.st_size + rsize; 139 if (oflow < (sb.st_size + rsize)) { 156 if (sb.st_size % sz) { 157 round = sb.st_size / sz; 164 tsize = sb.st_size;
|
/freebsd-13-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-13-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-13-stable/lib/libsecureboot/ |
H A D | readfile.c | 66 ucp = read_fd(fd, st.st_size); 69 *len = st.st_size;
|
/freebsd-13-stable/sys/contrib/openzfs/lib/libspl/include/os/freebsd/sys/ |
H A D | stat.h | 51 (void) ioctl(fd, DIOCGMEDIASIZE, &sb->st_size); 68 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
|
/freebsd-13-stable/bin/sh/ |
H A D | mail.c | 109 statb.st_size = 0; 110 if (statb.st_size > mailtime[i] && ! silent) { 114 mailtime[i] = statb.st_size;
|
/freebsd-13-stable/usr.bin/mkuzip/ |
H A D | mkuz_insize.c | 70 sb.st_size = ms; 76 sb.st_size = ms; 82 return (sb.st_size);
|
/freebsd-13-stable/lib/libc/locale/ |
H A D | ldpart.c | 97 if (st.st_size <= 0) { 101 bufsize = namesize + st.st_size; 108 plim = p + st.st_size; 109 if (_read(fd, p, (size_t) st.st_size) != st.st_size)
|
/freebsd-13-stable/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-13-stable/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-13-stable/usr.sbin/bluetooth/iwmbtfw/ |
H A D | iwmbt_fw.c | 67 buf = calloc(1, sb.st_size); 76 r = read(fd, buf, sb.st_size); 84 if (r != sb.st_size) { 87 (int) sb.st_size); 98 fw->len = sb.st_size;
|
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/i386/ |
H A D | dt_isadep.c | 71 ftp->ftps_size = (size_t)symp->st_size; 154 if ((text = calloc(1, symp->st_size + 4)) == NULL) { 159 if (Pread(P, text, symp->st_size, symp->st_value) != symp->st_size) { 167 ftp->ftps_size = (size_t)symp->st_size; 244 if (size == 5 && text[i] == DT_JMP32 && symp->st_size <= 249 if (size == 2 && text[i] == DT_JMP8 && symp->st_size <= 255 symp->st_size <= 260 if (size == 2 && DT_ISJ8(text[i]) && symp->st_size <= 290 ftp->ftps_size = (size_t)symp->st_size; [all...] |
/freebsd-13-stable/bin/pax/ |
H A D | cpio.c | 97 if ((strcmp(arcn->name, TRAILER) == 0) && (arcn->sb.st_size == 0)) 143 arcn->skip = arcn->sb.st_size; 217 if ((arcn->sb.st_size == 0) || 218 ((size_t)arcn->sb.st_size >= sizeof(arcn->ln_name))) { 221 arcn->sb.st_size); 224 (uintmax_t)arcn->sb.st_size); 232 if (rd_wrbuf(arcn->ln_name, (int)arcn->sb.st_size) != 233 (int)arcn->sb.st_size) { 237 arcn->ln_nlen = arcn->sb.st_size; 314 arcn->sb.st_size [all...] |
/freebsd-13-stable/sys/contrib/openzfs/tests/zfs-tests/cmd/mmap_exec/ |
H A D | mmap_exec.c | 64 if (mmap(0, statbuf.st_size,
|
/freebsd-13-stable/tests/sys/cddl/zfs/tests/exec/ |
H A D | mmap_exec.c | 63 if (mmap(0, statbuf.st_size,
|