/freebsd-current/contrib/libarchive/cpio/test/ |
H A D | test_option_B_upper.c | 42 assertEqualInt(512, st.st_size); 49 assertEqualInt(5120, st.st_size);
|
/freebsd-current/usr.sbin/bluetooth/ath3kfw/ |
H A D | ath3k_fw.c | 63 buf = calloc(1, sb.st_size); 71 r = read(fd, buf, sb.st_size); 79 if (r != sb.st_size) { 83 (int) sb.st_size); 94 fw->len = sb.st_size; 95 fw->size = sb.st_size;
|
/freebsd-current/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-current/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-current/usr.sbin/mpsutil/ |
H A D | mps_flash.c | 163 mem = mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 176 munmap(mem, st.st_size); 182 munmap(mem, st.st_size); 191 munmap(mem, st.st_size); 196 if ((st.st_size % 512) != 0) { 198 munmap(mem, st.st_size); 210 munmap(mem, st.st_size); 220 munmap(mem, st.st_size); 228 if (mps_firmware_send(fd, mem, st.st_size, bios) < 0) { 230 munmap(mem, st.st_size); [all...] |
/freebsd-current/tools/test/stress2/misc/ |
H A D | sendfile4.sh | 99 error = sendfile(from, sv[0], pos, st.st_size - pos, 106 if (pos == st.st_size) 113 buf = malloc(st.st_size); 115 err(1, "malloc %jd", st.st_size); 119 if (written > st.st_size - pos) 120 written = st.st_size - pos; 122 written = st.st_size - pos; 133 if (pos == st.st_size)
|
H A D | nfs12.sh | 113 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) 120 if ((src = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fdin, 0)) == 124 if ((dst = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE, 128 memcpy(dst, src, statbuf.st_size); 130 if (munmap(src, statbuf.st_size) == -1) 134 if (munmap(dst, statbuf.st_size) == -1)
|
H A D | sendfile5.sh | 122 error = sendfile(from, sv[0], pos, st.st_size - pos, 129 if (pos == st.st_size) 136 buf = malloc(st.st_size); 138 err(1, "malloc %jd", st.st_size); 142 if (written > st.st_size - pos) 143 written = st.st_size - pos; 145 written = st.st_size - pos; 156 if (pos == st.st_size)
|
/freebsd-current/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/ |
H A D | stat.h | 44 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
|
/freebsd-current/stand/kboot/include/arch/aarch64/ |
H A D | stat_arch.h | 20 host_off_t st_size; member in struct:host_kstat
|
/freebsd-current/stand/kboot/include/arch/amd64/ |
H A D | stat_arch.h | 21 host_off_t st_size; member in struct:host_kstat
|
/freebsd-current/stand/kboot/include/arch/powerpc64/ |
H A D | stat_arch.h | 19 host_off_t st_size; member in struct:host_kstat
|
/freebsd-current/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-current/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-current/tools/test/stress2/testcases/mmap/ |
H A D | mmap.c | 118 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) 125 if ((src = mmap(0, statbuf.st_size, PROT_READ, MAP_SHARED, fdin, 0)) == 129 if ((dst = mmap(0, statbuf.st_size, PROT_READ | PROT_WRITE, 133 memcpy(dst, src, statbuf.st_size); 135 if (munmap(src, statbuf.st_size) == -1) 139 if (munmap(dst, statbuf.st_size) == -1)
|
/freebsd-current/contrib/file/src/ |
H A D | is_csv.c | 189 if ((p = CAST(char *, malloc(st.st_size))) == NULL) 191 (intmax_t)st.st_size); 192 if (read(fd, p, st.st_size) != st.st_size) 194 (intmax_t)st.st_size); 195 printf("is csv %d\n", csv_parse(p, p + st.st_size));
|
/freebsd-current/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-current/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-current/lib/libsecureboot/ |
H A D | readfile.c | 66 ucp = read_fd(fd, st.st_size); 70 *len = st.st_size;
|
/freebsd-current/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-current/tools/test/stress2/tools/ |
H A D | lsholes.c | 61 mn, (intmax_t)st.st_size); 65 while (pos < st.st_size) { 88 siz = st.st_size - hole; 95 if (hole == st.st_size) {
|
/freebsd-current/usr.bin/mkuzip/ |
H A D | mkuz_insize.c | 68 sb.st_size = ms; 74 sb.st_size = ms; 80 return (sb.st_size);
|
/freebsd-current/bin/sh/ |
H A D | mail.c | 101 statb.st_size = 0; 102 if (statb.st_size > mailtime[i] && ! silent) { 106 mailtime[i] = statb.st_size;
|
/freebsd-current/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-current/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) {
|