mirror of https://github.com/mkerrisk/man-pages
dladdr.3: SYNOPSIS: Add missing 'const'
Glibc uses 'const' for the 1st parameter of these functions. Fix the prototypes. ...... .../glibc$ grep_glibc_prototype dladdr dlfcn/dlfcn.h:98: extern int dladdr (const void *__address, Dl_info *__info) __THROW __nonnull ((2)); .../glibc$ grep_glibc_prototype dladdr1 dlfcn/dlfcn.h:102: extern int dladdr1 (const void *__address, Dl_info *__info, void **__extra_info, int __flags) __THROW __nonnull ((2)); .../glibc$ Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
4cc91169d0
commit
bacf09154d
|
@ -31,9 +31,9 @@ dladdr, dladdr1 \- translate address to symbolic information
|
|||
.B #define _GNU_SOURCE
|
||||
.B #include <dlfcn.h>
|
||||
.PP
|
||||
.BI "int dladdr(void *" addr ", Dl_info *" info );
|
||||
.BI "int dladdr1(void *" addr ", Dl_info *" info ", void **" \
|
||||
extra_info ", int " flags );
|
||||
.BI "int dladdr(const void *" addr ", Dl_info *" info );
|
||||
.BI "int dladdr1(const void *" addr ", Dl_info *" info ", void **" extra_info ,
|
||||
.BI " int " flags );
|
||||
.PP
|
||||
Link with \fI\-ldl\fP.
|
||||
.fi
|
||||
|
|
Loading…
Reference in New Issue