Home
last modified time | relevance | path

Searched refs:fsz (Results 1 – 18 of 18) sorted by relevance

/freebsd/contrib/elftoolchain/libelf/
H A Dlibelf_ehdr.c44 size_t fsz; in _libelf_load_extended() local
51 fsz = _libelf_fsize(ELF_T_SHDR, ec, e->e_version, 1); in _libelf_load_extended()
52 assert(fsz > 0); in _libelf_load_extended()
54 if (shoff + fsz < shoff) { /* Numeric overflow. */ in _libelf_load_extended()
59 if ((uint64_t) e->e_rawsize < shoff + fsz) { in _libelf_load_extended()
109 size_t fsz, msz; in _libelf_ehdr() local
143 fsz = _libelf_fsize(ELF_T_EHDR, ec, e->e_version, (size_t) 1); in _libelf_ehdr()
144 assert(fsz > 0); in _libelf_ehdr()
146 if (e->e_cmd != ELF_C_WRITE && e->e_rawsize < (off_t) fsz) { in _libelf_ehdr()
H A Delf_update.c114 size_t fsz, msz; in _libelf_compute_section_extents() local
260 fsz = _libelf_fsize(d->d_type, ec, d->d_version, in _libelf_compute_section_extents()
262 scn_size += fsz; in _libelf_compute_section_extents()
514 size_t align, fsz; in _libelf_resync_elf() local
614 fsz = _libelf_fsize(ELF_T_PHDR, ec, eh_version, phnum); in _libelf_resync_elf()
634 rc = phoff + (off_t) fsz; in _libelf_resync_elf()
639 (uint64_t) phoff, fsz, phdr)) in _libelf_resync_elf()
670 fsz = _libelf_fsize(ELF_T_SHDR, ec, eh_version, shnum); in _libelf_resync_elf()
681 if (shoff + (off_t) fsz > rc) in _libelf_resync_elf()
682 rc = shoff + (off_t) fsz; in _libelf_resync_elf()
[all …]
H A Dlibelf_xlate.c51 size_t cnt, dsz, fsz, msz; in _libelf_xlate() local
82 if ((fsz = (elfclass == ELFCLASS32 ? elf32_fsize : elf64_fsize) in _libelf_xlate()
89 if (src->d_size % (direction == ELF_TOMEMORY ? fsz : msz)) { in _libelf_xlate()
100 cnt = (size_t) src->d_size / fsz; in _libelf_xlate()
104 dsz = cnt * fsz; in _libelf_xlate()
138 (db == sb && !byteswap && fsz == msz)) in _libelf_xlate()
H A Delf_scn.c66 size_t fsz, i, shnum; in _libelf_load_section_headers() local
76 fsz != (EH)->e_shentsize || \ in _libelf_load_section_headers()
77 shnum > SIZE_MAX / fsz || \ in _libelf_load_section_headers()
78 fsz * shnum > rawsize - shoff) { \ in _libelf_load_section_headers()
85 fsz = _libelf_fsize(ELF_T_SHDR, ec, e->e_version, (size_t) 1); in _libelf_load_section_headers()
86 assert(fsz > 0); in _libelf_load_section_headers()
117 src += fsz; in _libelf_load_section_headers()
120 for (; i < shnum; i++, src += fsz) { in _libelf_load_section_headers()
H A Dlibelf_phdr.c40 size_t fsz, msz; in _libelf_getphdr() local
76 fsz = gelf_fsize(e, ELF_T_PHDR, phnum, e->e_version); in _libelf_getphdr()
78 assert(fsz > 0); in _libelf_getphdr()
80 if (phoff + fsz < phoff) { /* Numeric overflow. */ in _libelf_getphdr()
85 if ((uint64_t) e->e_rawsize < (phoff + fsz)) { in _libelf_getphdr()
H A Delf_data.c43 size_t count, fsz, msz; in elf_getdata() local
103 if ((fsz = (elfclass == ELFCLASS32 ? elf32_fsize : elf64_fsize) in elf_getdata()
109 if (sh_size % fsz) { in elf_getdata()
114 if (sh_size / fsz > SIZE_MAX) { in elf_getdata()
119 count = (size_t) (sh_size / fsz); in elf_getdata()
H A Dlibelf_open.c50 _libelf_read_special_file(int fd, size_t *fsz) in _libelf_read_special_file() argument
107 *fsz = datasz; in _libelf_read_special_file()
H A Dlibelf_convert.m4294 size_t fsz;
296 fsz = elf$3_fsize(ELF_T_$1, (size_t) 1, EV_CURRENT);
298 s0 = src + (count - 1) * fsz;
309 *d-- = t; s0 -= fsz;
/freebsd/tests/sys/cddl/zfs/tests/compression/
H A Dcompress_004_pos.ksh63 typeset -i fsz=$1
69 for start in 0 `expr $RANDOM % $fsz`
71 (( dist = fsz - start ))
74 log_must $RANDFREE_FILE -l fsz -s $start \
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/compression/
H A Dcompress_004_pos.ksh54 typeset -i fsz=$1
60 for start in 0 `expr $RANDOM % $fsz`
62 (( dist = fsz - start ))
73 log_must randfree_file -l fsz -s $start \
/freebsd/contrib/elftoolchain/elfcopy/
H A Dsegments.c77 if (s->off + s->sz > seg->off + seg->fsz && in add_to_inseg_list()
498 seg->fsz = iphdr.p_filesz; in setup_phdr()
526 seg->fsz = seg->msz = gelf_fsize(ecp->eout, ELF_T_PHDR, in copy_phdr()
537 seg->fsz = seg->msz = 0; in copy_phdr()
542 seg->fsz = s->off + s->sz - seg->off; in copy_phdr()
584 ophdr.p_filesz = seg->fsz; in copy_phdr()
H A Delfcopy.h150 uint64_t fsz; /* file size */ member
/freebsd/sbin/newfs/
H A Dnewfs.c408 getfssize(intmax_t *fsz, const char *s, intmax_t disksize, intmax_t reserved) in getfssize() argument
416 if (*fsz == 0) in getfssize()
417 *fsz = available; in getfssize()
418 else if (*fsz > available) in getfssize()
/freebsd/sys/dev/liquidio/base/
H A Dlio_ctrl.h160 ih3->fsz = LIO_PCICMD_O3; in lio_prepare_pci_cmd_o3()
H A Dlio_common.h322 uint64_t fsz:6; member
345 uint64_t fsz:6;
H A Dlio_request_manager.c669 ih3->fsz = LIO_SOFTCMDRESP_IH3; in lio_prepare_soft_command()
674 ih3->fsz = LIO_PCICMD_O3; in lio_prepare_soft_command()
/freebsd/contrib/mandoc/
H A Droff.c3762 size_t fsz, ssz; in roff_tr() local
3772 fsz = ssz = 1; in roff_tr()
3778 fsz = (size_t)(p - first); in roff_tr()
3793 if (fsz > 1) { in roff_tr()
3794 roff_setstrn(&r->xmbtab, first, fsz, in roff_tr()
/freebsd/contrib/sqlite3/
H A Dshell.c8779 #define APND_START_ROUNDUP(fsz) (((fsz)+APND_ALIGN_MASK) & ~APND_ALIGN_MASK) argument