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

1234567891011>>

/freebsd-13-stable/contrib/libarchive/cpio/test/
H A Dtest_option_B_upper.c44 assertEqualInt(512, st.st_size);
51 assertEqualInt(5120, st.st_size);
/freebsd-13-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-13-stable/contrib/nvi/ex/
H A Dex_source.c59 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 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-13-stable/usr.sbin/mpsutil/
H A Dmps_flash.c165 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 Dstat.h44 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
/freebsd-13-stable/cddl/contrib/opensolaris/lib/libdtrace/arm/
H A Ddt_isadep.c65 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 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-13-stable/contrib/mandoc/
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-13-stable/usr.bin/truncate/
H A Dtruncate.c110 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 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-13-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-13-stable/lib/libsecureboot/
H A Dreadfile.c66 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 Dstat.h51 (void) ioctl(fd, DIOCGMEDIASIZE, &sb->st_size);
68 if (ioctl(fd, BLKGETSIZE64, &st->st_size) != 0)
/freebsd-13-stable/bin/sh/
H A Dmail.c109 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 Dmkuz_insize.c70 sb.st_size = ms;
76 sb.st_size = ms;
82 return (sb.st_size);
/freebsd-13-stable/lib/libc/locale/
H A Dldpart.c97 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 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-13-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-13-stable/usr.sbin/bluetooth/iwmbtfw/
H A Diwmbt_fw.c67 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 Ddt_isadep.c71 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 Dcpio.c97 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 Dmmap_exec.c64 if (mmap(0, statbuf.st_size,
/freebsd-13-stable/tests/sys/cddl/zfs/tests/exec/
H A Dmmap_exec.c63 if (mmap(0, statbuf.st_size,

Completed in 291 milliseconds

1234567891011>>