From a886f7ac1a2f0bfc0bedbae20f569dad57ce3a4a Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 7 Sep 2004 08:40:43 +0000 Subject: First pass prototype removals from auditing header files: a.out.h to libgen.h (omitting complex.h for a later separate effort for the math stuff) --- include/dlfcn.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) (limited to 'include/dlfcn.h') diff --git a/include/dlfcn.h b/include/dlfcn.h index 3fe4d0266..6dc4a5ab8 100644 --- a/include/dlfcn.h +++ b/include/dlfcn.h @@ -21,10 +21,13 @@ #define _DLFCN_H 1 #include +#define __need_size_t +#include /* Collect various system dependent definitions and declarations. */ #include + #ifdef __USE_GNU /* If the first argument of `dlsym' or `dlvsym' is set to RTLD_NEXT the run-time address of the symbol called NAME in the next shared @@ -53,14 +56,6 @@ extern int dlclose (void *__handle) __THROW; extern void *dlsym (void *__restrict __handle, __const char *__restrict __name) __THROW; -#ifdef __USE_GNU -/* Find the run-time address in the shared object HANDLE refers to - of the symbol called NAME with VERSION. */ -extern void *dlvsym (void *__restrict __handle, - __const char *__restrict __name, - __const char *__restrict __version) __THROW; -#endif - /* When any of the above functions fails, call this function to return a string describing the error. Each call resets the error string so that a following call returns null. */ @@ -80,6 +75,10 @@ typedef struct /* Fill in *INFO with the following information about ADDRESS. Returns 0 iff no shared object's segments contain that address. */ extern int dladdr (const void *__address, Dl_info *__info) __THROW; + +/* Get information about the shared objects currently loaded */ +extern int dlinfo (void); + #endif __END_DECLS -- cgit v1.2.3