filesize
send_data(FILE *instr, FILE *outstr, off_t blksize, off_t filesize, int isreg)
if (isreg && filesize < 16 * 1024 * 1024) {
size_t fsize = (size_t)filesize;
off_t filesize;
filesize = (off_t)DIP(dp, di_size);
for (ret = 0, i = 0; filesize > 0 && i < NDADDR; i++) {
filesize, tapesize, nodump);
filesize = 0;
filesize -= sblock->fs_bsize;
for (i = 0; filesize > 0 && i < NIADDR; i++) {
ret |= dirindir(ino, DIP(&di, di_ib[i]), i, &filesize,
dirindir(ino_t ino, daddr_t blkno, int ind_level, off_t *filesize,
for (i = 0; *filesize > 0 && i < NINDIR(sblock); i++) {
*filesize, tapesize, nodump);
*filesize = 0;
*filesize -= sblock->fs_bsize;
for (i = 0; *filesize > 0 && i < NINDIR(sblock); i++) {
ret |= dirindir(ino, blkno, ind_level, filesize,
searchdir(ino_t ino, daddr_t blkno, long size, off_t filesize,
if (filesize < size)
size = filesize;
off_t filesize;
filesize = (off_t)DIP(dp, di_size);
for (i = 0; filesize > 0 && i < NDADDR; i++) {
filesize, path);
filesize -= sblock->fs_bsize;
for (i = 0; filesize > 0 && i < NIADDR; i++) {
dirindir(ino, DIP(dp, di_ib[i]), i, &filesize, path);
searchdir(ufsino_t ino, daddr_t blkno, long size, off_t filesize,
if (filesize < size)
size = filesize;
size_t filesize = st.st_size;
const char *p = mmap(NULL, filesize, PROT_READ, MAP_SHARED, fd, 0);
if (ehdr.e_shoff > filesize)
if (ehdr.e_shnum > (filesize - ehdr.e_shoff) / ehdr.e_shentsize)
if (shdr.sh_offset > filesize)
if (shdr.sh_size > filesize - shdr.sh_offset)
if (shdr.sh_offset > filesize)
if (shdr.sh_size > filesize - shdr.sh_offset)
*size = ntohl(h->filesize);
int filesize;
h[i].filesize = htonl(h[i].filesize);
h[i].filesize = ntohl(h[i].filesize);
if ((p = malloc(h[i].filesize)) == NULL) {
if (read(fdin, p, h[i].filesize) < 1) {
if (write(fdout, p, h[i].filesize) < 1) {
int filesize;
h[j].filesize = s.st_size;
fwsize += h[j].filesize;
h[j].filename, h[j].filesize);
offset += h[i].filesize;
int filesize;
if (read(fdin, &h[i]->filesize, sizeof(h[i]->filesize)) < 1)
h[i]->filesize = htonl(h[i]->filesize);
if ((p = malloc(h[i]->filesize)) == NULL)
if (read(fdin, p, h[i]->filesize) < 1)
if (write(fdout, p, h[i]->filesize) < 1)
h[i]->filename, h[i]->filesize, h[i]->fileoffset);
ip->filesize = vattr.va_size;
if (uio->uio_offset > ip->filesize) {
ip->filesize = uio->uio_offset;
return (lf_advlock(&ip->i_lockf, ip->filesize, ap->a_id,
kn->kn_data = ip->filesize - foffset(kn->kn_fp);
if (vap->va_size != VNOVAL && vap->va_size != ip->filesize) {
ip->filesize = vap->va_size;
off_t filesize;
elf_convert(char *p, size_t filesize)
if (elf_getshstab(p, filesize, &shstab, &shstabsz))
if (elf_getsymtab(p, filesize, shstab, shstabsz, &symtab, &nsymb,
if (elf_getsection(p, filesize, DEBUG_ABBREV, shstab, shstabsz, &abbuf,
if (elf_getsection(p, filesize, DEBUG_INFO, shstab, shstabsz, &infobuf,
if (elf_getsection(p, filesize, DEBUG_STR, shstab, shstabsz, &dstrbuf,
if (sh->sh_size > filesize - sh->sh_offset) {
elf_getsymtab(const char *p, size_t filesize, const char *shstab,
if (shoff > (filesize - sizeof(*sh)))
if (sh->sh_offset > filesize)
if (sh->sh_size > (filesize - sh->sh_offset))
if (shoff > (filesize - sizeof(*sh)))
if ((sh->sh_offset + sh->sh_size) > filesize)
elf_getsection(char *p, size_t filesize, const char *sname, const char *shstab,
if (shoff > (filesize - sizeof(*sh)))
if (sh->sh_offset > filesize)
if (sh->sh_size > (filesize - sh->sh_offset))
elf_reloc_apply(p, filesize, shstab, shstabsz, sidx,
elf_reloc_apply(const char *p, size_t filesize, const char *shstab,
symtabidx = elf_getsymtab(p, filesize, shstab, shstabsz, &symtab,
if (shoff > (filesize - sizeof(*sh)))
if (sh->sh_offset > filesize)
if (sh->sh_size > (filesize - sh->sh_offset))
if (roff >= filesize)
iself(const char *p, size_t filesize)
if (roff >= filesize)
if (filesize < sizeof(Elf_Ehdr)) {
if (eh->e_shoff > filesize) {
if (eh->e_shnum > (filesize - eh->e_shoff) / eh->e_shentsize) {
elf_getshstab(const char *p, size_t filesize, const char **shstab,
if (shoff > (filesize - sizeof(*sh))) {
if (sh->sh_offset > filesize) {
isctf(const char *p, size_t filesize)
if (filesize < sizeof(struct ctf_header)) {
if (dlen > filesize && !(cth.cth_flags & CTF_F_COMPRESS)) {
prepare(int i, FILE *fd, off_t filesize, int flags)
sz = ((uintmax_t)filesize <= SIZE_MAX ? (size_t)filesize : SIZE_MAX) / 25;
prepare(int i, FILE *fd, off_t filesize, int flags)
sz = (filesize <= SIZE_MAX ? filesize : SIZE_MAX) / 25;
filesize != -1 && len == 0 && bytes != filesize) {
filesize = -1;
filesize = st.st_size;
filesize = -1;
filesize = strtonum(cp, 0, LLONG_MAX, &errstr);
filesize += restart_point;
filesize = -1;
if (hash && (!progress || filesize < 0)) {
if (hash && (!progress || filesize < 0) && bytes > 0) {
while (hash && (!progress || filesize < 0) &&
if (hash && (!progress || filesize < 0)) {
filesize = -1;
filesize = st.st_size;
if (hash && (!progress || filesize < 0) ) {
if (hash && (!progress || filesize < 0) && bytes > 0) {
while (hash && (!progress || filesize < 0) &&
if (hash && (!progress || filesize < 0)) {
filesize = -1;
filesize = remotesize(remote, 0);
extern off_t filesize; /* size of file being transferred */
off_t filesize;
if (!progress || filesize < 0)
if (filesize)
ratio = cursize * 100 / filesize;
} else if (bytes <= 0 || elapsed <= 0.0 || cursize > filesize) {
remaining = (int)((filesize - restart_point) /
if (siginfo && bytes > 0 && elapsed > 0.0 && filesize >= 0 &&
bytes + restart_point <= filesize) {
remaining = (int)((filesize - restart_point) /
ch_fsize = filesize(ch_file);
ch_fsize = filesize(ch_file);
len = filesize(f);
off_t filesize(int);
prepare(int i, FILE *fd, off_t filesize, int flags)
sz = ((uintmax_t)filesize <= SIZE_MAX ? (size_t)filesize : SIZE_MAX) / 25;
off_t offs, filesize;
c = pre_file(u, fileinfd, &filesize, sess);
if (*fileinfd != -1 && filesize > 0) {
init_blkset(&blk, filesize);
start_progress_meter(const char *f, off_t filesize, off_t *ctr)
end_pos = filesize;