diff options
author | kaiw <kaiw@FreeBSD.org> | 2010-07-21 12:14:50 +0000 |
---|---|---|
committer | kaiw <kaiw@FreeBSD.org> | 2010-07-21 12:14:50 +0000 |
commit | 82c6a0d5cc52ec43523cf92cde5b8f83a24a9dba (patch) | |
tree | c51322098a7ff392aeb36ee7f884e6c98b223c94 /lib/libelf/elf_getphnum.3 | |
parent | 1b382f295a0ad2611d29740a5e9cd23ef4a767c1 (diff) | |
download | FreeBSD-src-82c6a0d5cc52ec43523cf92cde5b8f83a24a9dba.zip FreeBSD-src-82c6a0d5cc52ec43523cf92cde5b8f83a24a9dba.tar.gz |
* Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in
favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()`
respectively.
* Add new manual pages for `elf_getshdrstrndx()`, `elf_getphdrnum()` and
`elf_getshdrnum()`.
* Add a deprecation warning for `elf_getshstrndx()`, `elf_getphnum()` and
`elf_getshnum()`.
Obtained from: elftoolchain
MFC after: 1 month
Diffstat (limited to 'lib/libelf/elf_getphnum.3')
-rw-r--r-- | lib/libelf/elf_getphnum.3 | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/lib/libelf/elf_getphnum.3 b/lib/libelf/elf_getphnum.3 index 308f87c..abf4b39 100644 --- a/lib/libelf/elf_getphnum.3 +++ b/lib/libelf/elf_getphnum.3 @@ -23,7 +23,7 @@ .\" .\" $FreeBSD$ .\" -.Dd December 16, 2006 +.Dd August 5, 2009 .Dt ELF_GETPHNUM 3 .Os .Sh NAME @@ -36,6 +36,11 @@ .Ft int .Fn elf_getphnum "Elf *elf" "size_t *phnum" .Sh DESCRIPTION +This function is deprecated. +Please use function +.Xr elf_getphdrnum 3 +instead. +.Pp Function .Fn elf_getphnum retrieves the number of ELF program headers associated with descriptor @@ -81,7 +86,8 @@ was corrupt. .Xr elf32_getehdr 3 , .Xr elf64_getehdr 3 , .Xr elf_getident 3 , -.Xr elf_getshnum 3 , -.Xr elf_getshstrndx 3 , +.Xr elf_getphdrnum 3 , +.Xr elf_getshdrnum 3 , +.Xr elf_getshdrstrndx 3 , .Xr gelf 3 , .Xr gelf_getehdr 3 |