Lines Matching refs:sz

162 	register Lword	sz;  in _elf_upd_lib()  local
230 if ((sz = (Lword)_elf_entsz(elf, sh->sh_type, ver)) != 0) in _elf_upd_lib()
232 sh->sh_entsize = (Half)sz; in _elf_upd_lib()
233 sz = 0; in _elf_upd_lib()
246 if (sz % j != 0) in _elf_upd_lib()
247 sz += j - sz % j; in _elf_upd_lib()
249 d->db_data.d_off = (off_t)sz; in _elf_upd_lib()
250 d->db_xoff = sz; in _elf_upd_lib()
251 sz += fsz; in _elf_upd_lib()
254 sh->sh_size = (Xword) sz; in _elf_upd_lib()
283 hi += sz; in _elf_upd_lib()
346 register Lword sz; in _elf_upd_usr() local
378 if ((sz = eh->e_phoff + eh->e_phentsize * eh->e_phnum) > hi) in _elf_upd_usr()
379 hi = sz; in _elf_upd_usr()
403 sz = 0; in _elf_upd_usr()
413 ((j = (d->db_data.d_off + d->db_osz)) > sz)) in _elf_upd_usr()
414 sz = j; in _elf_upd_usr()
416 if (sh->sh_size < sz) { in _elf_upd_usr()
443 if ((sz = eh->e_shoff + eh->e_shentsize * scncnt) > hi) in _elf_upd_usr()
444 hi = sz; in _elf_upd_usr()
461 Xword hi, sz; in wrt() local
609 sz = sh->sh_offset - hi; in wrt()
610 (void) memset(start - sz, byte, sz); in wrt()
630 sz = (Xword)(d->db_data.d_off - off); in wrt()
633 here - start - sz, sz); in wrt()
635 (void) memset(here - sz, byte, sz); in wrt()
670 sz = eh->e_shoff - hi; in wrt()
671 (void) memset(image + hi, byte, sz); in wrt()
745 size_t sz; in _elfxx_update() local
781 sz = elf->ed_wrimagesz; in _elfxx_update()
785 return ((off_t)sz); in _elfxx_update()
787 sz = _elf_outsync(elf->ed_fd, elf->ed_wrimage, in _elfxx_update()
794 return ((off_t)sz); in _elfxx_update()
831 sz = _elf_upd_usr(elf); in _elfxx_update()
834 sz = _elf_upd_lib(elf); in _elfxx_update()
836 if ((sz != 0) && ((cmd == ELF_C_WRITE) || (cmd == ELF_C_WRIMAGE))) in _elfxx_update()
837 sz = wrt(elf, (Xword)sz, u, cmd); in _elfxx_update()
839 if (sz == 0) { in _elfxx_update()
845 return ((off_t)sz); in _elfxx_update()