summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2009-07-17 19:45:42 +0000
committerkib <kib@FreeBSD.org>2009-07-17 19:45:42 +0000
commita106aba3da6cf54be8c26869ab0827d68235af9d (patch)
tree69ab2c09c37b5924f7909584ef7c3c9d0b31c062 /lib
parentdb1bf25adde7f22207c0905ba9e8d3ff76ea87d4 (diff)
downloadFreeBSD-src-a106aba3da6cf54be8c26869ab0827d68235af9d.zip
FreeBSD-src-a106aba3da6cf54be8c26869ab0827d68235af9d.tar.gz
Implement RTLD_NOLOAD flag for dlopen(3).
Requested and tested by: jkim Reviewed by: kan Approved by: re (kensmith)
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/dlopen.39
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/gen/dlopen.3 b/lib/libc/gen/dlopen.3
index 187f817..6488bef 100644
--- a/lib/libc/gen/dlopen.3
+++ b/lib/libc/gen/dlopen.3
@@ -32,7 +32,7 @@
.\" @(#) dlopen.3 1.6 90/01/31 SMI
.\" $FreeBSD$
.\"
-.Dd April 1, 2009
+.Dd July 7, 2009
.Os
.Dt DLOPEN 3
.Sh NAME
@@ -148,6 +148,13 @@ The same behaviour may be requested by
.Fl "z nodelete"
option of the static linker
.Xr ld 1 .
+.It Dv RTLD_NOLOAD
+Ony return valid handle for the object if it is already loaded in
+the process address space, otherwise
+.Dv NULL
+is returned.
+Other mode flags may be specified, which will be applied for promotion
+for the found object.
.El
.Pp
If
OpenPOWER on IntegriCloud