*** UNIX MANUAL PAGE BROWSER ***

A Nergahak database for man pages research.

Navigation

Directory Browser

1Browse 4.4BSD4.4BSD
1Browse Digital UNIXDigital UNIX 4.0e
1Browse FreeBSDFreeBSD 14.3
1Browse MINIXMINIX 3.4.0rc6-d5e4fc0
1Browse NetBSDNetBSD 10.1
1Browse OpenBSDOpenBSD 7.7
1Browse UNIX v7Version 7 UNIX
1Browse UNIX v10Version 10 UNIX

Manual Page Search

Manual Page Result

0 Command: dl_iterate_phdr | Section: 3 | Source: OpenBSD | File: dl_iterate_phdr.3
DL_ITERATE_PHDR(3) FreeBSD Library Functions Manual DL_ITERATE_PHDR(3) NAME dl_iterate_phdr - iterate over program headers SYNOPSIS #include <link.h> int dl_iterate_phdr(int (*callback)(struct dl_phdr_info *, size_t, void*), void *data); DESCRIPTION The dl_iterate_phdr() function iterates over all shared objects loaded into a process's address space, calling callback for each shared object, passing it information about the object's program headers and the data argument. Iteration continues until either there are no more objects to iterate over or callback returns a non-zero value. The information about the program headers is passed in a structure that is defined as: struct dl_phdr_info { Elf_Addr dlpi_addr; const char *dlpi_name; const Elf_Phdr *dlpi_phdr; Elf_Half dlpi_phnum; }; The members of struct dl_phdr_info have the following meaning: dlpi_addr The base address at which the shared object is mapped into the address space of the calling process. dlpi_name The name of the shared object. dlpi_phdr A pointer to the shared object's program headers. dlpi_phnum The number of program headers in the shared object. Future versions of OpenBSD might add more members to this structure. To make it possible for programs to check whether any new members have been added, the size of the structure is passed as an argument to callback. SEE ALSO ld(1), ld.so(1), dlfcn(3), elf(5) HISTORY The dl_iterate_phdr function first appeared in OpenBSD 3.7. FreeBSD 14.1-RELEASE-p8 September 11, 2022 FreeBSD 14.1-RELEASE-p8

Navigation Options