summaryrefslogtreecommitdiffstats
path: root/lib/csu/i386/dlfcn.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csu/i386/dlfcn.h')
-rw-r--r--lib/csu/i386/dlfcn.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/csu/i386/dlfcn.h b/lib/csu/i386/dlfcn.h
index e167ef2..ba61ebf 100644
--- a/lib/csu/i386/dlfcn.h
+++ b/lib/csu/i386/dlfcn.h
@@ -50,11 +50,22 @@
*/
#define RTLD_NEXT ((void *) -1)
+/*
+ * Structure filled in by dladdr().
+ */
+typedef struct dl_info {
+ const char *dli_fname; /* Pathname of shared object */
+ void *dli_fbase; /* Base address of shared object */
+ const char *dli_sname; /* Name of nearest symbol */
+ void *dli_saddr; /* Address of nearest symbol */
+} Dl_info;
+
__BEGIN_DECLS
+int dladdr __P((const void *, Dl_info *));
+int dlclose __P((void *));
+const char *dlerror __P((void));
void *dlopen __P((const char *, int));
void *dlsym __P((void *, const char *));
-const char *dlerror __P((void));
-int dlclose __P((void *));
__END_DECLS
#endif /* !_DLFCN_H_ */
OpenPOWER on IntegriCloud