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

1234567891011>>

/freebsd-10.0-release/contrib/libarchive/cpio/test/
H A Dtest_option_B_upper.c44 assertEqualInt(512, st.st_size);
51 assertEqualInt(5120, st.st_size);
/freebsd-10.0-release/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-10.0-release/tools/regression/pipe/
H A Dpipe-fstatbug.c71 if (status.st_size != error)
72 err(0, "FAILURE: stat size %d read size %d\n", (int)status.st_size, error);
74 printf("SUCCESS at stat size %d read size %d\n", (int)status.st_size, error);
76 /* Sleep to avoid the natural race in reading st_size. */
/freebsd-10.0-release/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-10.0-release/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-10.0-release/lib/libmd/
H A DmdXhl.c64 if (ofs > stbuf.st_size)
65 ofs = stbuf.st_size;
66 if ((len == 0) || (len > stbuf.st_size - ofs))
67 len = stbuf.st_size - ofs;
/freebsd-10.0-release/sys/cddl/compat/opensolaris/sys/
H A Dstat.h50 (void)ioctl(fd, DIOCGMEDIASIZE, &sb->st_size);
/freebsd-10.0-release/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-10.0-release/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-10.0-release/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-10.0-release/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-10.0-release/usr.sbin/cpucontrol/
H A Damd.c126 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 Dvia.c148 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-10.0-release/usr.sbin/crunch/crunchide/
H A Dexec_aout.c79 if(infstat.st_size < sizeof eh)
111 if((aoutdata = (char *) malloc(infstat.st_size)) == NULL) {
116 if((rc = read(inf, aoutdata, infstat.st_size)) < infstat.st_size) {
177 if((rc = write(inf, aoutdata, infstat.st_size)) < infstat.st_size) {
/freebsd-10.0-release/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-10.0-release/usr.bin/truncate/
H A Dtruncate.c101 tsize = sb.st_size;
129 oflow = sb.st_size + rsize;
130 if (oflow < (sb.st_size + rsize)) {
/freebsd-10.0-release/tools/regression/file/ftruncate/
H A Dftruncate.c102 if (sb.st_size != len)
104 sb.st_size);
125 if (sb.st_size != len)
127 sb.st_size);
/freebsd-10.0-release/usr.bin/cmp/
H A Dcmp.c173 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-10.0-release/crypto/heimdal/lib/roken/
H A Ddumpdata.c74 *buf = malloc(sb.st_size);
79 *size = sb.st_size;
/freebsd-10.0-release/lib/libc/iconv/
H A Dcitrus_mmap.c72 head = mmap(NULL, (size_t)st.st_size, PROT_READ, MAP_FILE|MAP_PRIVATE,
78 _region_init(r, head, (size_t)st.st_size);
/freebsd-10.0-release/contrib/libpcap/tests/
H A Dfiltertest.c85 cp = malloc((u_int)buf.st_size + 1);
87 error("malloc(%d) for %s: %s", (u_int)buf.st_size + 1,
89 cc = read(fd, cp, (u_int)buf.st_size);
92 if (cc != buf.st_size)
93 error("short read %s (%d != %d)", fname, cc, (int)buf.st_size);
/freebsd-10.0-release/usr.sbin/mfiutil/
H A Dmfi_flash.c117 if (sb.st_size % 1024 != 0 || sb.st_size > 0x7fffffff) {
131 mbox_store_word(mbox, sb.st_size);
147 while (sb.st_size > 0) {
167 sb.st_size -= nread;
/freebsd-10.0-release/usr.bin/mkulzma/
H A Dmkulzma.c157 sb.st_size = ms;
164 hdr.nblocks = sb.st_size / hdr.blksz;
165 if ((sb.st_size % hdr.blksz) != 0) {
195 "%u, index length %zu bytes\n", sb.st_size,
266 (long long)(sb.st_size - offset),
267 100.0 * (long long)(sb.st_size - offset) /
268 (float)sb.st_size);
/freebsd-10.0-release/usr.bin/mkuzip/
H A Dmkuzip.c142 sb.st_size = ms;
148 hdr.nblocks = sb.st_size / hdr.blksz;
149 if ((sb.st_size % hdr.blksz) != 0) {
177 "%u, index length %zu bytes\n", sb.st_size,
212 "bytes, %.2f%% decrease.\n", offset, (long long)(sb.st_size - offset),
213 100.0 * (long long)(sb.st_size - offset) / (float)sb.st_size);
/freebsd-10.0-release/lib/libelf/
H A Delf_begin.c61 if ((m = mmap(NULL, (size_t) sb.st_size, PROT_READ, MAP_PRIVATE, fd,
67 if ((e = elf_memory(m, (size_t) sb.st_size)) == NULL) {
68 (void) munmap(m, (size_t) sb.st_size);

Completed in 296 milliseconds

1234567891011>>