Home
last modified time | relevance | path

Searched refs:phnum (Results 1 – 25 of 27) sorted by relevance

12

/freebsd-12.1/usr.bin/tip/tip/
H A Dacu.c72 char *phnum, string[256]; in con() local
106 phnum = cp; in con()
111 if (strlen(phnum) == 0) in con()
114 conflag = (*acu->acu_dialer)(phnum, CU); in con()
118 logent(value(HOST), phnum, acu->acu_name, "call failed"); in con()
135 phnum = cp; in con()
138 if (strlen(phnum) == 0) in con()
141 conflag = (*acu->acu_dialer)(phnum, CU); in con()
145 logent(value(HOST), phnum, acu->acu_name, "call failed"); in con()
153 logent(value(HOST), phnum, acu->acu_name, "call completed"); in con()
/freebsd-12.1/contrib/file/src/
H A Delfclass.h39 phnum = elf_getu16(swap, elfhdr.e_phnum);
40 if (phnum > ms->elf_phnum_max)
41 return toomany(ms, "program headers", phnum);
44 (off_t)elf_getu(swap, elfhdr.e_phoff), phnum,
52 phnum = elf_getu16(swap, elfhdr.e_phnum);
53 if (phnum > ms->elf_phnum_max)
54 return toomany(ms, "program", phnum);
59 (off_t)elf_getu(swap, elfhdr.e_phoff), phnum,
/freebsd-12.1/contrib/elftoolchain/libelf/
H A Delf_phnum.c35 _libelf_getphdrnum(Elf *e, size_t *phnum) in _libelf_getphdrnum() argument
49 *phnum = e->e_u.e_elf.e_nphdr; in _libelf_getphdrnum()
55 elf_getphdrnum(Elf *e, size_t *phnum) in elf_getphdrnum() argument
57 return (_libelf_getphdrnum(e, phnum)); in elf_getphdrnum()
62 elf_getphnum(Elf *e, size_t *phnum) in elf_getphnum() argument
64 return (_libelf_getphdrnum(e, phnum) >= 0); in elf_getphnum()
H A Dlibelf_extended.c108 _libelf_setphnum(Elf *e, void *eh, int ec, size_t phnum) in _libelf_setphnum() argument
112 if (phnum >= PN_XNUM) { in _libelf_setphnum()
119 scn->s_shdr.s_shdr32.sh_info = phnum; in _libelf_setphnum()
121 scn->s_shdr.s_shdr64.sh_info = phnum; in _libelf_setphnum()
125 phnum = PN_XNUM; in _libelf_setphnum()
129 ((Elf32_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
131 ((Elf64_Ehdr *) eh)->e_phnum = phnum & 0xFFFFU; in _libelf_setphnum()
H A Dlibelf_ehdr.c41 _libelf_load_extended(Elf *e, int ec, uint64_t shoff, uint16_t phnum, in _libelf_load_extended() argument
77 e->e_u.e_elf.e_nphdr = (phnum != PN_XNUM) ? phnum : in _libelf_load_extended()
105 uint16_t phnum, shnum, strndx; in _libelf_ehdr() local
175 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
180 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
187 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || in _libelf_ehdr()
197 if ((shnum == 0 && shoff != 0) || phnum == PN_XNUM || strndx == SHN_XINDEX) { in _libelf_ehdr()
198 if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0) in _libelf_ehdr()
202 e->e_u.e_elf.e_nphdr = phnum; in _libelf_ehdr()
H A Dlibelf_phdr.c39 size_t phnum; in _libelf_getphdr() local
66 phnum = e->e_u.e_elf.e_nphdr; in _libelf_getphdr()
76 fsz = gelf_fsize(e, ELF_T_PHDR, phnum, e->e_version); in _libelf_getphdr()
89 if ((phdr = calloc(phnum, msz)) == NULL) { in _libelf_getphdr()
102 (*xlator)(phdr, phnum * msz, e->e_rawfile + phoff, phnum, in _libelf_getphdr()
H A Dgelf_phdr.c56 size_t phnum; in gelf_getphdr() local
61 elf_getphdrnum(e, &phnum) < 0) { in gelf_getphdr()
66 if ((size_t)index >= phnum) { in gelf_getphdr()
126 size_t phnum; in gelf_update_phdr() local
133 elf_getphdrnum(e, &phnum) < 0) { in gelf_update_phdr()
146 if (ndx < 0 || (size_t)ndx > phnum) { in gelf_update_phdr()
H A Delf_update.c509 size_t phnum, shnum; in _libelf_resync_elf() local
568 phnum = e->e_u.e_elf.e_nphdr; in _libelf_resync_elf()
582 (E)->e_phentsize = (uint16_t) ((phnum == 0) ? 0 : \ in _libelf_resync_elf()
607 if (phnum) { in _libelf_resync_elf()
608 fsz = _libelf_fsize(ELF_T_PHDR, ec, eh_version, phnum); in _libelf_resync_elf()
688 _libelf_setphnum(e, ehdr, ec, phnum); in _libelf_resync_elf()
891 size_t fsz, phnum; in _libelf_write_phdr() local
898 phnum = e->e_u.e_elf.e_nphdr; in _libelf_write_phdr()
900 assert(phnum > 0); in _libelf_write_phdr()
919 fsz = _libelf_fsize(ELF_T_PHDR, ec, e->e_version, phnum); in _libelf_write_phdr()
[all …]
/freebsd-12.1/lib/libc/gen/
H A Dtls.c431 size_t phent, phnum; in _init_tls() local
440 phent = phnum = 0; in _init_tls()
452 phnum = auxp->a_un.a_val; in _init_tls()
456 if (phdr == NULL || phent != sizeof(Elf_Phdr) || phnum == 0) in _init_tls()
459 for (i = 0; (unsigned) i < phnum; i++) { in _init_tls()
/freebsd-12.1/lib/libkvm/
H A Dkvm_arm.c60 size_t phnum; member
75 n = vm->phnum; in _kvm_pa2off()
129 if (_kvm_read_core_phdrs(kd, &vm->phnum, &vm->phdr) == -1) in _arm_initvtop()
133 for (i = 0; i < vm->phnum; i++) { in _arm_initvtop()
H A Dkvm_amd64.c60 size_t phnum; member
81 n = vm->phnum; in _kvm_pa2off()
126 if (_kvm_read_core_phdrs(kd, &kd->vmst->phnum, in _amd64_initvtop()
H A Dkvm_private.c165 size_t i, phnum; in _kvm_read_core_phdrs() local
193 if (elf_getphdrnum(elf, &phnum) == -1) { in _kvm_read_core_phdrs()
198 phdr = calloc(phnum, sizeof(*phdr)); in _kvm_read_core_phdrs()
204 for (i = 0; i < phnum; i++) { in _kvm_read_core_phdrs()
212 *phnump = phnum; in _kvm_read_core_phdrs()
H A Dkvm_i386.c66 size_t phnum; member
86 n = vm->phnum; in _kvm_pa2off()
132 if (_kvm_read_core_phdrs(kd, &kd->vmst->phnum, in _i386_initvtop()
/freebsd-12.1/usr.bin/elf2aout/
H A Delf2aout.c72 Elf64_Half phnum; in main() local
130 phnum = xe16toh(e->e_phnum); in main()
133 for (i = 0; i < phnum; i++) { in main()
/freebsd-12.1/usr.bin/elfdump/
H A Delfdump.c502 u_int64_t phnum; in main() local
592 phnum = elf_get_quarter(e, e, E_PHNUM); in main()
622 for (i = 0; (u_int64_t)i < phnum; i++) { in main()
705 u_int64_t phnum; in elf_print_ehdr() local
722 phnum = elf_get_quarter(e, e, E_PHNUM); in elf_print_ehdr()
737 fprintf(out, "\te_phnum: %jd\n", (intmax_t)phnum); in elf_print_ehdr()
751 u_int64_t phnum; in elf_print_phdr() local
764 phnum = elf_get_quarter(e, e, E_PHNUM); in elf_print_phdr()
766 for (i = 0; (u_int64_t)i < phnum; i++) { in elf_print_phdr()
/freebsd-12.1/sys/sys/
H A Dimgact_elf.h55 Elf_Size phnum; member
/freebsd-12.1/sys/compat/cloudabi64/
H A Dcloudabi64_module.c128 VAL(CLOUDABI_AT_PHNUM, args->phnum), in cloudabi64_fixup()
/freebsd-12.1/sys/compat/cloudabi32/
H A Dcloudabi32_module.c128 VAL(CLOUDABI_AT_PHNUM, args->phnum), in cloudabi32_fixup()
/freebsd-12.1/contrib/elftoolchain/elfdump/
H A Delfdump.c1334 size_t phnum, i; in elf_print_phdr() local
1337 if (elf_getphnum(ed->elf, &phnum) == 0) { in elf_print_phdr()
1342 for (i = 0; i < phnum; i++) { in elf_print_phdr()
1833 size_t filesize, i, phnum; in elf_print_interp() local
1842 if (!elf_getphnum(ed->elf, &phnum)) { in elf_print_interp()
1846 for (i = 0; i < phnum; i++) { in elf_print_interp()
/freebsd-12.1/contrib/elftoolchain/readelf/
H A Dreadelf.c2204 size_t phnum, shnum, shstrndx; in dump_ehdr() local
2269 if (elf_getphnum(re->elf, &phnum)) in dump_ehdr()
2270 printf(" (%zu)", phnum); in dump_ehdr()
2404 size_t phnum, size; in dump_phdr() local
2418 if (elf_getphnum(re->elf, &phnum) == 0) { in dump_phdr()
2422 if (phnum == 0) { in dump_phdr()
2441 for (i = 0; (size_t) i < phnum; i++) { in dump_phdr()
2476 for (i = 0; (size_t)i < phnum; i++) { in dump_phdr()
3525 size_t filesize, phnum; in dump_notes() local
3537 if (phnum == 0) in dump_notes()
[all …]
/freebsd-12.1/sys/arm64/linux/
H A Dlinux_sysvec.c183 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); in linux_elf_fixup()
/freebsd-12.1/libexec/rtld-elf/
H A Drtld.c385 int argc, fd, i, phnum, rtld_argc; in _rtld() local
582 phnum = aux_info[AT_PHNUM]->a_un.a_val; in _rtld()
587 if ((obj_main = digest_phdr(phdr, phnum, imgentry, argv0)) == NULL) in _rtld()
1389 digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry, const char *path) in digest_phdr() argument
1392 const Elf_Phdr *phlimit = phdr + phnum; in digest_phdr()
/freebsd-12.1/sys/amd64/linux/
H A Dlinux_sysvec.c268 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); in linux_fixup_elf()
/freebsd-12.1/sys/amd64/linux32/
H A Dlinux32_sysvec.c234 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); in linux_fixup_elf()
/freebsd-12.1/sys/i386/linux/
H A Dlinux_sysvec.c244 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); in linux_fixup_elf()

12