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

1234567891011>>

/freebsd-11-stable/contrib/libarchive/cpio/test/
H A Dtest_option_B_upper.c44 assertEqualInt(512, st.st_size);
51 assertEqualInt(5120, st.st_size);
/freebsd-11-stable/usr.sbin/bhyve/
H A Dbootrom.c78 if (sbuf.st_size > MAX_BOOTROM_SIZE || sbuf.st_size < PAGE_SIZE) {
79 fprintf(stderr, "Invalid bootrom size %ld\n", sbuf.st_size);
83 if (sbuf.st_size & PAGE_MASK) {
85 "page size\n", sbuf.st_size);
89 ptr = vm_create_devmem(ctx, VM_BOOTROM, "bootrom", sbuf.st_size);
95 gpa = (1ULL << 32) - sbuf.st_size;
96 if (vm_mmap_memseg(ctx, gpa, VM_BOOTROM, 0, sbuf.st_size, prot) != 0)
100 for (i = 0; i < sbuf.st_size / PAGE_SIZE; i++) {
/freebsd-11-stable/usr.sbin/bluetooth/ath3kfw/
H A Dath3k_fw.c66 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-stable/contrib/nvi/ex/
H A Dex_source.c63 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-stable/cddl/contrib/opensolaris/lib/libdtrace/powerpc/
H A Ddt_isadep.c47 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-stable/usr.sbin/mpsutil/
H A Dmps_flash.c164 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-stable/usr.sbin/ctm/mkCTM/
H A Dmkctm.c176 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-stable/cddl/contrib/opensolaris/lib/libdtrace/arm/
H A Ddt_isadep.c67 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-stable/contrib/mdocml/
H A Ddbm_map.c69 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-11-stable/contrib/file/src/
H A Dis_csv.c188 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 Dbuffer.c72 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-11-stable/usr.bin/truncate/tests/
H A Dtruncate_test.sh207 [ ${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-stable/cddl/contrib/opensolaris/lib/libdtrace/sparc/
H A Ddt_isadep.c58 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-stable/sys/cddl/compat/opensolaris/sys/
H A Dstat.h50 (void)ioctl(fd, DIOCGMEDIASIZE, &sb->st_size);
/freebsd-11-stable/bin/sh/
H A Dmail.c107 statb.st_size = 0;
108 if (statb.st_size > mailtime[i] && ! silent) {
112 mailtime[i] = statb.st_size;
/freebsd-11-stable/sys/compat/svr4/
H A Dsvr4_stat.h45 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-stable/usr.bin/mkuzip/
H A Dmkuz_insize.c71 sb.st_size = ms;
77 sb.st_size = ms;
83 return (sb.st_size);
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libdtrace/aarch64/
H A Ddt_isadep.c53 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-stable/cddl/contrib/opensolaris/lib/libdtrace/riscv/
H A Ddt_isadep.c53 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-stable/lib/libc/locale/
H A Dldpart.c94 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-stable/cddl/contrib/opensolaris/lib/libdtrace/i386/
H A Ddt_isadep.c72 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-stable/usr.sbin/cpucontrol/
H A Dvia.c150 if (st.st_size < 0 || (unsigned)st.st_size < sizeof(*fw_header)) {
158 fw_image = (uint32_t *)mmap(NULL, st.st_size, PROT_READ,
173 if (total_size > (unsigned)st.st_size || st.st_size < 0) {
219 if (munmap(fw_image, st.st_size) != 0)
H A Damd.c128 if (st.st_size < 0 || (unsigned)st.st_size < sizeof(*fw_header)) {
135 fw_image = (uint32_t *)mmap(NULL, st.st_size, PROT_READ,
148 fw_size = (st.st_size - sizeof(*fw_header)) / sizeof(uint32_t);
164 args.size = st.st_size;
180 if(munmap(fw_image, st.st_size) != 0)
/freebsd-11-stable/bin/pax/
H A Dcpio.c95 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-stable/tests/sys/file/
H A Dftruncate_test.c101 if (sb.st_size != len)
103 (intmax_t)len, (intmax_t)sb.st_size);
124 if (sb.st_size != len)
126 sb.st_size);

Completed in 305 milliseconds

1234567891011>>