summary refs log tree commit diff
path: root/elf/dlfcn.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-06-04 09:29:39 +0000
committerRoland McGrath <roland@gnu.org>1996-06-04 09:29:39 +0000
commita2b934be254cad6c725baf738f0d97df985522c6 (patch)
tree11c9280fa0c9480cb4bf74a0a2d5432493bfafa1 /elf/dlfcn.h
parent55f3aaff8c2a31288f9dde795b63b95d04fca341 (diff)
downloadglibc-a2b934be254cad6c725baf738f0d97df985522c6.tar.gz
glibc-a2b934be254cad6c725baf738f0d97df985522c6.tar.xz
glibc-a2b934be254cad6c725baf738f0d97df985522c6.zip
* stdio-common/vfprintf.c [USE_IN_LIBIO] (size_t): Don't define as cvs/libc-960604
	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.
Diffstat (limited to 'elf/dlfcn.h')
-rw-r--r--elf/dlfcn.h10
1 files changed, 10 insertions, 0 deletions
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 */