summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/dlfcn.c
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2012-01-07 10:33:01 +0000
committerkib <kib@FreeBSD.org>2012-01-07 10:33:01 +0000
commit2685c039fc6e472a64c44267b0145e051115a24b (patch)
treecf61a8d017fae28ad3fed9686940a74e9bafedf0 /lib/libc/gen/dlfcn.c
parent41b065b8d46fe265392cdb2ddde288e6685e6a17 (diff)
downloadFreeBSD-src-2685c039fc6e472a64c44267b0145e051115a24b.zip
FreeBSD-src-2685c039fc6e472a64c44267b0145e051115a24b.tar.gz
Implement fdlopen(3), an rtld interface to load shared object by file
descriptor. Requested and tested by: des (previous version) Reviewed by: des, kan (previous version) MFC after: 2 weeks
Diffstat (limited to 'lib/libc/gen/dlfcn.c')
-rw-r--r--lib/libc/gen/dlfcn.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/libc/gen/dlfcn.c b/lib/libc/gen/dlfcn.c
index b109cc9..7be9f87 100644
--- a/lib/libc/gen/dlfcn.c
+++ b/lib/libc/gen/dlfcn.c
@@ -147,6 +147,15 @@ dl_iterate_phdr(int (*callback)(struct dl_phdr_info *, size_t, void *),
return 0;
}
+#pragma weak fdlopen
+void *
+fdlopen(int fd, int mode)
+{
+
+ _rtld_error(sorry);
+ return NULL;
+}
+
#pragma weak _rtld_atfork_pre
void
_rtld_atfork_pre(int *locks)
OpenPOWER on IntegriCloud