/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_ehdr.c | 44 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 D | elf_update.c | 114 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 D | libelf_xlate.c | 51 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 D | elf_scn.c | 66 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 D | libelf_phdr.c | 40 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 D | elf_data.c | 43 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 D | libelf_open.c | 50 _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 D | libelf_convert.m4 | 294 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 D | compress_004_pos.ksh | 63 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 D | compress_004_pos.ksh | 54 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 D | segments.c | 77 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 D | elfcopy.h | 150 uint64_t fsz; /* file size */ member
|
/freebsd/sbin/newfs/ |
H A D | newfs.c | 408 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 D | lio_ctrl.h | 160 ih3->fsz = LIO_PCICMD_O3; in lio_prepare_pci_cmd_o3()
|
H A D | lio_common.h | 322 uint64_t fsz:6; member 345 uint64_t fsz:6;
|
H A D | lio_request_manager.c | 669 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 D | roff.c | 3762 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 D | shell.c | 8779 #define APND_START_ROUNDUP(fsz) (((fsz)+APND_ALIGN_MASK) & ~APND_ALIGN_MASK) argument
|