summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2003-02-13 17:47:44 +0000
committerkan <kan@FreeBSD.org>2003-02-13 17:47:44 +0000
commitff89904c5faff3302ea65cba2fee770bbe2def53 (patch)
tree47a1e438dc6e9a6ec4b8cfbf67e72cbf01879f87 /lib
parent3d24733b3f03f6c22ce180c1eea1f3a0a26c7ebf (diff)
downloadFreeBSD-src-ff89904c5faff3302ea65cba2fee770bbe2def53.zip
FreeBSD-src-ff89904c5faff3302ea65cba2fee770bbe2def53.tar.gz
Implement dlinfo() function.
Introdice RTLD_SELF special handle and properly process it within dlsym() and dlinfo() functions. The intention is to improve our compatibility with Solaris and to make a Java port easier. Partially submitted by: phantom
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/dlfcn.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c
index ff1d900..ed9bf85 100644
--- a/lib/libc/gen/dlfcn.c
+++ b/lib/libc/gen/dlfcn.c
@@ -103,3 +103,11 @@ dlsym(void * __restrict handle, const char * __restrict name)
_rtld_error(sorry);
return NULL;
}
+
+#pragma weak dlinfo
+int
+dlinfo(void * __restrict handle, int request, void * __restrict p)
+{
+ _rtld_error(sorry);
+ return NULL;
+}
OpenPOWER on IntegriCloud