From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18893 invoked by alias); 5 Apr 2018 17:52:40 -0000 Mailing-List: contact libc-help-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Post: List-Help: , Sender: libc-help-owner@sourceware.org Received: (qmail 18866 invoked by uid 89); 5 Apr 2018 17:52:40 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:993 X-HELO: bhuna.collabora.co.uk Received: from bhuna.collabora.co.uk (HELO bhuna.collabora.co.uk) (46.235.227.227) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 05 Apr 2018 17:52:39 +0000 Received: from noise.collabora.co.uk (unknown [IPv6:2a00:5f00:102:0:21e1:4ee1:a25:9887]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vivek) by bhuna.collabora.co.uk (Postfix) with ESMTPSA id 8AFF42753BD for ; Thu, 5 Apr 2018 18:52:37 +0100 (BST) From: =?UTF-8?q?Vivek=20Das=C2=A0Mohapatra?= To: libc-help@sourceware.org Subject: [RFC PATCH 1/5] bits/dlfcn.h: Declare and describe the dlmopen RTLD_SHARED flag Date: Thu, 05 Apr 2018 17:52:00 -0000 Message-Id: <20180405175231.14757-2-vivek@collabora.com> In-Reply-To: <20180405175231.14757-1-vivek@collabora.com> References: <20180405175231.14757-1-vivek@collabora.com> X-IsSubscribed: yes X-SW-Source: 2018-04/txt/msg00002.txt.bz2 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(+) diff --git a/bits/dlfcn.h b/bits/dlfcn.h index b0b129b66b..a96270d499 100644 --- a/bits/dlfcn.h +++ b/bits/dlfcn.h @@ -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. */ -- 2.11.0