summaryrefslogtreecommitdiff
path: root/include/dlfcn.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-09-07 08:40:43 +0000
committerEric Andersen <andersen@codepoet.org>2004-09-07 08:40:43 +0000
commita886f7ac1a2f0bfc0bedbae20f569dad57ce3a4a (patch)
treed7e7b774d55aea751117947b051b8b9ea897f25a /include/dlfcn.h
parent25d09f9ca6a5e9dcdb695f5d7b9eb1fc8f6cd664 (diff)
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)
Diffstat (limited to 'include/dlfcn.h')
-rw-r--r--include/dlfcn.h15
1 files changed, 7 insertions, 8 deletions
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 <features.h>
+#define __need_size_t
+#include <stddef.h>
/* Collect various system dependent definitions and declarations. */
#include <bits/dlfcn.h>
+
#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