summaryrefslogtreecommitdiff
path: root/lib/csu/i386/dlfcn.h
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1998-02-06 16:46:46 +0000
committerJohn Polstra <jdp@FreeBSD.org>1998-02-06 16:46:46 +0000
commit663690b388e5292163b29dc674747e7112651ebf (patch)
tree51dbdd1f01b428c5c87fc16c888a361426165b4a /lib/csu/i386/dlfcn.h
parent14834de44151061869e6aa7e4be7c597a5a440be (diff)
downloadsrc-test2-663690b388e5292163b29dc674747e7112651ebf.tar.gz
src-test2-663690b388e5292163b29dc674747e7112651ebf.zip
Notes
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 e167ef2c1929..ba61ebfd4953 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_ */