From a2b934be254cad6c725baf738f0d97df985522c6 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 4 Jun 1996 09:29:39 +0000 Subject: * stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as macro. _IO_size_t is just an alias for the real size_t anyway. * elf/Makefile (libdl-routines): Add dladdr. * elf/dladdr.c: New file. * elf/dlfcn.h (Dl_info): New typedef. (dladdr): Declare it. --- elf/dlfcn.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'elf/dlfcn.h') diff --git a/elf/dlfcn.h b/elf/dlfcn.h index 8d19b8b847..b26a38fb68 100644 --- a/elf/dlfcn.h +++ b/elf/dlfcn.h @@ -48,5 +48,15 @@ extern void *dlsym (void *__handle, const char *__name); the error string so that a following call returns null. */ extern char *dlerror (void); +/* Fill in *INFO with the following information about ADDRESS. + Returns 0 iff no shared object's segments contain that address. */ +typedef struct + { + const char *dli_fname; /* File name of defining object. */ + void *dli_fbase; /* Load address of that object. */ + const char *dli_sname; /* Name of nearest symbol. */ + void *dli_saddr; /* Exact value of nearest symbol. */ + } Dl_info; +extern int dladdr (void *__address, Dl_info *__info); #endif /* dlfcn.h */ -- cgit v1.2.3