/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | clscook.c | 147 size_t fsz, msz; in _elf_cookscn() local 172 fsz = elf_fsize(d->db_data.d_type, 1, elf->ed_version); in _elf_cookscn() 174 d->db_data.d_size = MAX(sh->sh_size, (sh->sh_size / fsz) * msz); in _elf_cookscn() 215 register size_t fsz; /* field size */ in _elf_ehdr() local 218 fsz = elf_fsize(ELF_T_EHDR, 1, elf->ed_version); in _elf_ehdr() 219 if (fsz > elf->ed_fsz) { in _elf_ehdr() 223 if (inplace && (fsz >= sizeof (Ehdr))) { in _elf_ehdr() 247 src.d_size = fsz; in _elf_ehdr() 253 if ((_elf_vm(elf, (size_t)0, fsz) != OK_YES) || in _elf_ehdr() 291 register size_t fsz, msz; in _elf_phdr() local [all …]
|
H A D | rawput.c | 45 _elf_read(int fd, off_t off, size_t fsz) in _elf_read() argument 49 if (fsz == 0) in _elf_read() 61 if ((p = (char *)malloc(fsz)) == 0) { in _elf_read() 66 if (read(fd, p, fsz) != fsz) { in _elf_read()
|
H A D | update.c | 220 register Lword fsz, j; in _elf_upd_lib() local 238 if ((fsz = elf_fsize(d->db_data.d_type, in _elf_upd_lib() 243 fsz *= (d->db_data.d_size / j); in _elf_upd_lib() 244 d->db_osz = (size_t)fsz; in _elf_upd_lib() 254 sz += fsz; in _elf_upd_lib() 281 if ((fsz = hi % j) != 0) in _elf_upd_lib() 282 hi += j - fsz; in _elf_upd_lib() 398 register Lword fsz, j; in _elf_upd_usr() local 407 if ((fsz = elf_fsize(d->db_data.d_type, 1, in _elf_upd_usr() 411 fsz *= (d->db_data.d_size / j); in _elf_upd_usr() [all …]
|
H A D | ar.c | 126 _elf_armem(Elf *elf, char *file, size_t fsz) in _elf_armem() argument 133 if (fsz < sizeof (struct ar_hdr)) { in _elf_armem()
|
/illumos-gate/usr/src/uts/sun4/os/ |
H A D | forthdebug.c | 99 uint64_t fsz; in forthdebug_init() local 116 i = kobj_get_filesize(file, &fsz); in forthdebug_init() 117 if (i || !fsz) { in forthdebug_init() 119 FDEBUGFILE, i, (long long)fsz); in forthdebug_init() 123 fth_buf = (char *)kobj_zalloc(fsz + 1, KM_SLEEP); in forthdebug_init() 124 sz = kobj_read_file(file, fth_buf, fsz, 0); /* entire file */ in forthdebug_init() 129 ASSERT(fsz == sz); in forthdebug_init() 179 kobj_free(fth_buf, fsz + 1); in forthdebug_init()
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/compression/ |
H A D | compress_004_pos.ksh | 55 typeset -i fsz=$1 61 for start in 0 `expr $RANDOM % $fsz` 63 (( dist = fsz - start )) 66 log_must randfree_file -l fsz -s $start \
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | gprof.c | 1297 getpfiledata(caddr_t memp, size_t fsz) in getpfiledata() argument 1313 file_end = memp + fsz; in getpfiledata() 1493 handle_versioned(FILE *pfile, char *filename, size_t *fsz) in handle_versioned() argument 1538 *fsz = lret; in handle_versioned() 1540 fmem = mmap(0, *fsz, PROT_READ, MAP_PRIVATE, fd, 0); in handle_versioned() 1567 openpfile(char *filename, size_t *fsz) in openpfile() argument 1604 return (handle_versioned(pfile, filename, fsz)); in openpfile() 1615 fsz = 0; in openpfile() 1765 size_t fsz; in getpfile() local 1767 handle = openpfile(filename, &fsz); in getpfile() [all …]
|
/illumos-gate/usr/src/lib/libc/port/i18n/ |
H A D | gettext_real.c | 1086 mp->fsz = (size_t)statbuf.st_size; in handle_mo() 1087 mp->addr = mmap(NULL, mp->fsz, PROT_READ, MAP_SHARED, fd, 0); in handle_mo() 1097 if (setmsg(mnp, (char *)mp->addr, mp->fsz) == -1) { in handle_mo() 1100 (void) munmap(mp->addr, mp->fsz); in handle_mo()
|
H A D | gettext.h | 153 size_t fsz; /* file size */ member
|
H A D | gettext_util.c | 434 gprintf(level, " fsz: %d\n", mp->fsz); in printmp()
|
/illumos-gate/usr/src/uts/common/io/i40e/ |
H A D | i40e_transceiver.c | 884 size_t fsz; in i40e_free_tx_dma() local 902 fsz = sizeof (i40e_tx_control_block_t) * in i40e_free_tx_dma() 904 kmem_free(itrq->itrq_tcb_area, fsz); in i40e_free_tx_dma() 909 fsz = sizeof (i40e_tx_control_block_t *) * in i40e_free_tx_dma() 911 kmem_free(itrq->itrq_tcb_free_list, fsz); in i40e_free_tx_dma() 916 fsz = sizeof (i40e_tx_control_block_t *) * in i40e_free_tx_dma() 918 kmem_free(itrq->itrq_tcb_work_list, fsz); in i40e_free_tx_dma()
|
/illumos-gate/usr/src/cmd/mandoc/ |
H A D | roff.c | 3744 size_t fsz, ssz; in roff_tr() local 3755 fsz = ssz = 1; in roff_tr() 3765 fsz = (size_t)(p - first); in roff_tr() 3784 if (fsz > 1) { in roff_tr() 3785 roff_setstrn(&r->xmbtab, first, fsz, in roff_tr()
|