/ast/src/cmd/3d/ |
H A D | peek.c | 42 if (!FSTAT(fd, &state.path.st) && state.path.st.st_size <= siz) 44 while ((n = read(fd, buf, siz)) != state.path.st.st_size && lseek(fd, 0L, 1) > 0 && lseek(fd, 0L, 0) == 0); 45 if (n == state.path.st.st_size || n > 0 && !state.path.st.st_size)
|
H A D | copy.c | 71 if ((filesize = st->st_size) <= 0)
|
/ast/src/lib/libast/port/ |
H A D | iblocks.c | 76 return (st->st_blocks <= 0 || st->st_size <= 0) ? 0 : st->st_blocks; 82 t = b = (st->st_size + B_SIZE - 1) / B_SIZE;
|
H A D | astcopy.c | 69 if (pos >= st.st_size) return(0); 70 mapsize = st.st_size - pos;
|
/ast/src/lib/libast/vec/ |
H A D | vecfile.c | 50 if (!fstat(fd, &st) && S_ISREG(st.st_mode) && (n = st.st_size) > 0 && (buf = newof(0, char, n + 1, 0)))
|
/ast/src/lib/libcs/ |
H A D | msgsend.c | 86 msgputu(&b, e, sp->st_size); 98 msgputu(&b, e, sp->st_size ? ((sp->st_size - 1) / 1024 + 1) : 0);
|
/ast/src/cmd/sort/ |
H A D | rec.c | 124 if (fstat(sffileno(sp), &st) || st.st_size < z) 125 st.st_size = 0; 126 f = recfmt(s, z, st.st_size);
|
/ast/src/cmd/paxlib/rar/ |
H A D | rar.c | 142 f->st->st_size = data; 147 i += sfsprintf(ar->method, sizeof(ar->method), "crypt-rar-%u%s+SIZE=%I*u|", buf[17], ar->solid ? "-RETAIN" : "", sizeof(f->st->st_size), f->st->st_size); 217 if (!f->st->st_size) 219 pos = paxseek(pax, ap, 0, SEEK_CUR, 0) + f->st->st_size; 223 else if (sp = paxpart(pax, ap, f->st->st_size))
|
/ast/src/lib/libast/string/ |
H A D | fmtls.c | 86 s += sfsprintf(s, LS_W_MAX, "%8I*u ", sizeof(st->st_size), st->st_size);
|
/ast/src/cmd/paxlib/zip/ |
H A D | zip.c | 265 f->st->st_size = mem->encoded; 271 f->st->st_size = swapget(3, &hdr[ZIP_LOC_SIZ], 4); 277 i += sfsprintf(ar->method, sizeof(ar->method), "crypt-zip+SIZE=%I*u|", sizeof(f->st->st_size), f->st->st_size); 278 if (!f->st->st_size || (m = swapget(3, &hdr[ZIP_LOC_METHOD], 2)) == ZIP_COPY || (pax->test & 2)) 315 if (!f->st->st_size) 317 pos = paxseek(pax, ap, 0, SEEK_CUR, 0) + f->st->st_size; 321 else if (sp = paxpart(pax, ap, f->st->st_size))
|
/ast/src/cmd/pax/ |
H A D | pax-cpio.c | 122 f->st->st_size = strtoll(s, NiL, 16); 319 f->linkpath = paxstash(pax, &ap->stash.link, NiL, f->st->st_size); 324 f->st->st_size--; 327 if (!f->st->st_size) 381 f->st->st_size = lst.size; 426 if (f->st->st_size > 0x7fffffff) 427 addxopnum(ap, 's', (Sflong_t)f->st->st_size); 451 sizeof(intmax_t), (intmax_t)(f->st->st_size + (f->type == X_IFLNK ? f->linkpathsize : 0))); 487 * that added linknamesize to st_size 490 if (f->st->st_size [all...] |
H A D | delta.c | 49 while (f->st->st_size > 0 && bread(ap, &c, (off_t)1, (off_t)1, 1) > 0) 51 f->st->st_size--; 71 f->st->st_size -= n; 111 if (f->st->st_size <= 0 || bread(ap, &c, (off_t)1, (off_t)1, 1) <= 0) 115 f->st->st_size--; 118 if (f->st->st_size >= 12 && (f->delta.op == DELTA_create || f->delta.op == DELTA_update)) 168 f->st->st_size += ap->delta->trailer; 239 f->st->st_size += n; 259 f->st->st_size -= n; 324 if (S_ISREG(st.st_mode) && st.st_size > [all...] |
H A D | copy.c | 84 * if rfd<0 && st_size>0 then input from bread() 103 c = f->st->st_size; 209 for (c = f->st->st_size; c > 0; c -= n) 248 paxdelta(NiL, ap, f, DELTA_TAR|DELTA_FD|DELTA_FREE|DELTA_OUTPUT|DELTA_COUNT, wfd, DELTA_DEL|DELTA_BIO|DELTA_SIZE, ap, f->st->st_size, 0); 253 c = f->st->st_size; 273 else if (st.st_size != f->delta.base->size || state.modtime && tvcmp(tvmtime(&t1, &st), tvmtime(&t2, f->st))) 289 for (c = f->st->st_size; c > 0; c -= n) 340 if ((!ap->format->getdata || !(*ap->format->getdata)(&state, ap, f, -1)) && ((n = f->st->st_size) > 0 && f->type == X_IFREG || (n = f->datasize)) && bread(ap, NiL, (off_t)0, n, 1) < 0) 413 for (c = f->st->st_size; c > 0; c -= n)
|
H A D | pax-mime.c | 157 f->st->st_size = 0; 182 f->st->st_size += (s - v) - mime->fill; 199 f->st->st_size += m;
|
H A D | pax-tar.c | 309 h.st->st_size = n; 433 if (!(f->st->st_size >> 32) && !(state.test & 1)) 436 sfsprintf(s = num, sizeof(num), "%I*u", sizeof(f->st->st_size), f->st->st_size); 585 if (tar_getoctal("size", tar->header.size, 11, sizeof(f->st->st_size), &f->st->st_size)) 623 f->st->st_size = 0; 657 if (f->st->st_size > 0) 660 if (!(s = paxget(pax, ap, f->st->st_size, NiL))) 662 s[f->st->st_size [all...] |
H A D | pax-slt.c | 167 sfsprintf(slt->buf, sizeof(slt->buf), "%s2%c%05d%05d%010d%s%c 00 ", type, state.record.format, state.blocksize, state.record.size, f->st->st_size, type, '2'); 279 f->st->st_size = 0; 348 if (!ap->io->blocked) f->st->st_size = getlabnum(slt->buf, 16, 10, 10); 391 else if ((m = f->st->st_size - size) <= 0) 558 if (f->st->st_size && f->st->st_size != size) 559 error(1, "%s: header size %I*d does not match data size %I*d", f->name, sizeof(f->st->st_size), f->st->st_size, sizeof(size), size); 560 f->st->st_size = size; 864 if (f->st->st_size > [all...] |
H A D | pax-tnef.c | 83 f->st->st_size = 0; 100 f->st->st_size = size; 131 f->st->st_size = size;
|
H A D | file.c | 59 if ((rfd = open(f->st->st_size ? f->path : "/dev/null", O_RDONLY|O_BINARY)) < 0) 81 f->st->st_size = 0; 107 f->st->st_size = count; 131 f->st->st_size += n; 140 message((-1, "%s: filter file size = %ld", f->path, f->st->st_size)); 159 else if ((rfd = open(f->st->st_size ? f->path : "/dev/null", O_RDONLY|O_BINARY)) < 0) 177 f->st->st_size = 0; 442 f->st->st_size = 0; 515 f->st->st_size = 0; 824 f->linkpathsize = f->st->st_size [all...] |
/ast/src/cmd/paxlib/tp/ |
H A D | tp.c | 143 f->st->st_size = (dp->size[0]<<16) + dp->size[1] + (dp->size[2]<<8); 158 if (!(n = f->st->st_size)) 160 skip = roundof(f->st->st_size, TP_BLOCK); 164 else if (sp = paxpart(pax, ap, f->st->st_size))
|
/ast/src/cmd/paxlib/ico/ |
H A D | ico.c | 145 f->st->st_size = size; 163 if (fd < 0 || !f->st->st_size) 165 if (!(sp = paxpart(pax, ap, f->st->st_size))) 225 z = f->st->st_size; 260 swapput(3, dir+8, 2, f->st->st_size);
|
/ast/src/cmd/paxlib/arj/ |
H A D | arj.c | 134 f->st->st_size = swapget(3, buf+12, 4); 204 if (!(n = f->st->st_size)) 206 pos = paxseek(pax, ap, 0, SEEK_CUR, 0) + f->st->st_size; 210 else if (sp = paxpart(pax, ap, f->st->st_size))
|
/ast/src/cmd/paxlib/lha/ |
H A D | lha.c | 116 f->st->st_size = swapget(3, hdr+5, 4); 206 if (!(n = f->st->st_size)) 208 pos = paxseek(pax, ap, 0, SEEK_CUR, 0) + f->st->st_size; 212 else if (sp = paxpart(pax, ap, f->st->st_size))
|
/ast/src/cmd/paxlib/zoo/ |
H A D | zoo.c | 126 f->st->st_size = swapget(3, buf+24, 4); 265 if (fd < 0 || !f->st->st_size) 275 if (sp = paxpart(pax, ap, f->st->st_size))
|
/ast/src/lib/libast/sfio/ |
H A D | sfsize.c | 71 else if((f->extent = st.st_size) < f->here)
|
/ast/src/lib/libcmd/ |
H A D | wc.c | 168 wp->chars = statb.st_size - lseek(sffileno(fp),0L,1);
|