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_getshnum.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_getshnum.3')
-rw-r--r-- | lib/libelf/elf_getshnum.3 | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libelf/elf_getshnum.3 b/lib/libelf/elf_getshnum.3 index 7c8a04c..41b519e 100644 --- a/lib/libelf/elf_getshnum.3 +++ b/lib/libelf/elf_getshnum.3 @@ -23,7 +23,7 @@ .\" .\" $FreeBSD$ .\" -.Dd October 31, 2006 +.Dd August 5, 2009 .Dt ELF_GETSHNUM 3 .Os .Sh NAME @@ -36,6 +36,11 @@ .Ft int .Fn elf_getshnum "Elf *elf" "size_t *shnum" .Sh DESCRIPTION +This function is deprecated. +Please use +.Xr elf_getshdrnum 3 +instead. +.Pp Function .Fn elf_getshnum retrieves the number of ELF sections associated with descriptor @@ -73,6 +78,7 @@ lacks an ELF Executable header. .Xr elf32_getehdr 3 , .Xr elf64_getehdr 3 , .Xr elf_getident 3 , -.Xr elf_getshstrndx 3 , +.Xr elf_getphdrnum 3 , +.Xr elf_getshdrstrndx 3 , .Xr gelf 3 , .Xr gelf_getehdr 3 |