[RFC,1/5] bits/dlfcn.h: Declare and describe the dlmopen RTLD_SHARED flag
Commit Message
This flag will instruct dlmopen to create a shared object present
in both the main namespace and the selected namespace when set.
---
bits/dlfcn.h | 7 +++++++
1 file changed, 7 insertions(+)
@@ -32,6 +32,13 @@
visible as if the object were linked directly into the program. */
#define RTLD_GLOBAL 0x00100
+/* If the following bit is set in the MODE argument to dlmopen
+ then the target object is loaded into the main namespace (if
+ it is not already there) and a shallow copy (clone) is placed
+ in the target namespace: This allows multiple namespaces to
+ share a single instance of a DSO. */
+#define RTLD_SHARED 0x00080
+
/* Unix98 demands the following flag which is the inverse to RTLD_GLOBAL.
The implementation does this by default and so we can define the
value to zero. */