Home
last modified time | relevance | path

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

12

/freebsd/usr.bin/tip/tip/
H A Dacu.c62 char *phnum, string[256]; in con() local
96 phnum = cp; in con()
101 if (strlen(phnum) == 0) in con()
104 conflag = (*acu->acu_dialer)(phnum, CU); in con()
108 logent(value(HOST), phnum, acu->acu_name, "call failed"); in con()
125 phnum = cp; in con()
128 if (strlen(phnum) == 0) in con()
131 conflag = (*acu->acu_dialer)(phnum, CU); in con()
135 logent(value(HOST), phnum, acu->acu_name, "call failed"); in con()
143 logent(value(HOST), phnum, acu->acu_name, "call completed"); in con()
/freebsd/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 = (Elf32_Word) phnum; in _libelf_setphnum()
121 scn->s_shdr.s_shdr64.sh_info = (Elf64_Word) 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
82 e->e_u.e_elf.e_nphdr = (phnum != PN_XNUM) ? phnum : in _libelf_load_extended()
110 uint16_t phnum, shnum, strndx; in _libelf_ehdr() local
179 phnum = ((Elf32_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
184 phnum = ((Elf64_Ehdr *) ehdr)->e_phnum; in _libelf_ehdr()
191 (shoff == 0LL && (shnum != 0 || phnum == PN_XNUM || in _libelf_ehdr()
201 if ((shnum == 0 && shoff != 0) || phnum == PN_XNUM || strndx == SHN_XINDEX) { in _libelf_ehdr()
202 if (_libelf_load_extended(e, ec, shoff, phnum, strndx) == 0) in _libelf_ehdr()
206 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()
93 if ((phdr = calloc(phnum, msz)) == NULL) { in _libelf_getphdr()
106 (*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.c515 size_t phnum, shnum; in _libelf_resync_elf() local
574 phnum = e->e_u.e_elf.e_nphdr; in _libelf_resync_elf()
588 (E)->e_phentsize = (uint16_t) ((phnum == 0) ? 0 : \ in _libelf_resync_elf()
613 if (phnum) { in _libelf_resync_elf()
614 fsz = _libelf_fsize(ELF_T_PHDR, ec, eh_version, phnum); in _libelf_resync_elf()
694 _libelf_setphnum(e, ehdr, ec, phnum); in _libelf_resync_elf()
899 size_t fsz, msz, phnum; in _libelf_write_phdr() local
909 phnum = e->e_u.e_elf.e_nphdr; in _libelf_write_phdr()
910 assert(phnum > 0); in _libelf_write_phdr()
931 fsz = _libelf_fsize(ELF_T_PHDR, ec, e->e_version, phnum); in _libelf_write_phdr()
[all …]
/freebsd/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 CAST(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 CAST(off_t, elf_getu(swap, elfhdr.e_phoff)), phnum,
H A Dreadelf.c1831 uint16_t type, phnum, shnum, notecount; in file_tryelf() local
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_globals.cpp30 ElfW(Half) phnum) { in CheckCodeModel()
32 for (unsigned i = 0; i != phnum; ++i) { in CheckCodeModel()
54 ElfW(Half) phnum) { in HwasanGlobalsFor()
56 for (unsigned i = 0; i != phnum; ++i) { in HwasanGlobalsFor()
78 CheckCodeModel(base, phdr, phnum); in HwasanGlobalsFor()
H A Dhwasan_globals.h46 ElfW(Half) phnum);
H A Dhwasan_interface_internal.h31 ElfW(Half) phnum);
35 ElfW(Half) phnum);
H A Dhwasan.cpp418 ElfW(Half) phnum) { in __hwasan_library_loaded()
419 for (const hwasan_global &global : HwasanGlobalsFor(base, phdr, phnum)) in __hwasan_library_loaded()
424 ElfW(Half) phnum) { in __hwasan_library_unloaded()
425 for (; phnum != 0; ++phdr, --phnum) in __hwasan_library_unloaded()
/freebsd/lib/libc/gen/
H A Dtls.c408 size_t phent, phnum; in _init_tls() local
417 phent = phnum = 0; in _init_tls()
429 phnum = auxp->a_un.a_val; in _init_tls()
433 if (phdr == NULL || phent != sizeof(Elf_Phdr) || phnum == 0) in _init_tls()
436 for (i = 0; (unsigned) i < phnum; i++) { in _init_tls()
/freebsd/lib/libkvm/
H A Dkvm_arm.c57 size_t phnum; member
72 n = vm->phnum; in _kvm_pa2off()
126 if (_kvm_read_core_phdrs(kd, &vm->phnum, &vm->phdr) == -1) in _arm_initvtop()
130 for (i = 0; i < vm->phnum; i++) { in _arm_initvtop()
H A Dkvm_amd64.c57 size_t phnum; member
78 n = vm->phnum; in _kvm_pa2off()
123 if (_kvm_read_core_phdrs(kd, &kd->vmst->phnum, in _amd64_initvtop()
H A Dkvm_i386.c63 size_t phnum; member
83 n = vm->phnum; in _kvm_pa2off()
129 if (_kvm_read_core_phdrs(kd, &kd->vmst->phnum, in _i386_initvtop()
H A Dkvm_private.c164 size_t i, phnum; in _kvm_read_core_phdrs() local
192 if (elf_getphdrnum(elf, &phnum) == -1) { in _kvm_read_core_phdrs()
197 phdr = calloc(phnum, sizeof(*phdr)); in _kvm_read_core_phdrs()
203 for (i = 0; i < phnum; i++) { in _kvm_read_core_phdrs()
211 *phnump = phnum; in _kvm_read_core_phdrs()
/freebsd/usr.bin/elfdump/
H A Delfdump.c509 u_int64_t phnum; in main() local
612 phnum = elf_get_quarter(e, e, E_PHNUM); in main()
642 for (i = 0; (u_int64_t)i < phnum; i++) { in main()
725 u_int64_t phnum; in elf_print_ehdr() local
742 phnum = elf_get_quarter(e, e, E_PHNUM); in elf_print_ehdr()
757 fprintf(out, "\te_phnum: %jd\n", (intmax_t)phnum); in elf_print_ehdr()
771 u_int64_t phnum; in elf_print_phdr() local
784 phnum = elf_get_quarter(e, e, E_PHNUM); in elf_print_phdr()
786 for (i = 0; (u_int64_t)i < phnum; i++) { in elf_print_phdr()
/freebsd/sys/sys/
H A Dimgact_elf.h62 Elf_Size phnum; member
/freebsd/sys/powerpc/powerpc/
H A Delf_common.c66 AUXARGS_ENTRY(pos, AT_OLD_PHNUM, args->phnum); in __elfN()
/freebsd/contrib/elftoolchain/elfdump/
H A Delfdump.c1337 size_t phnum, i; in elf_print_phdr() local
1340 if (elf_getphnum(ed->elf, &phnum) == 0) { in elf_print_phdr()
1345 for (i = 0; i < phnum; i++) { in elf_print_phdr()
1836 size_t filesize, i, phnum; in elf_print_interp() local
1845 if (!elf_getphnum(ed->elf, &phnum)) { in elf_print_interp()
1849 for (i = 0; i < phnum; i++) { in elf_print_interp()
/freebsd/contrib/elftoolchain/readelf/
H A Dreadelf.c2263 size_t phnum, shnum, shstrndx; in dump_ehdr() local
2328 if (elf_getphnum(re->elf, &phnum)) in dump_ehdr()
2329 printf(" (%zu)", phnum); in dump_ehdr()
2470 size_t phnum, size; in dump_phdr() local
2484 if (elf_getphnum(re->elf, &phnum) == 0) { in dump_phdr()
2488 if (phnum == 0) { in dump_phdr()
2507 for (i = 0; (size_t) i < phnum; i++) { in dump_phdr()
2542 for (i = 0; (size_t)i < phnum; i++) { in dump_phdr()
3706 size_t filesize, phnum; in dump_notes() local
3718 if (phnum == 0) in dump_notes()
[all …]
/freebsd/sys/compat/linux/
H A Dlinux_elf.c518 AUXARGS_ENTRY(pos, AT_PHNUM, args->phnum); in __linuxN()
/freebsd/libexec/rtld-elf/
H A Drtld.c509 int argc, fd, i, mib[4], old_osrel, osrel, phnum, rtld_argc; in _rtld() local
768 phnum = aux_info[AT_PHNUM]->a_un.a_val; in _rtld()
773 if ((obj_main = digest_phdr(phdr, phnum, imgentry, argv0)) == NULL) in _rtld()
1618 digest_phdr(const Elf_Phdr *phdr, int phnum, caddr_t entry, const char *path) in digest_phdr() argument
1621 const Elf_Phdr *phlimit = phdr + phnum; in digest_phdr()

12