Fwd: Re: [Meta?] Where do I post proposals/ideas?
Soni L.
fakedme+libc@gmail.com
Thu Jan 8 11:59:00 GMT 2015
Eh, I forgot to reply to the list...
-------- Forwarded Message --------
Subject: Re: [Meta?] Where do I post proposals/ideas?
Date: Thu, 08 Jan 2015 09:49:51 -0200
From: Soni L. <fakedme+libc@gmail.com>
To: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
On 08/01/15 09:33 AM, Adhemerval Zanella wrote:
> On 08-01-2015 07:06, Soni L. wrote:
>>
>> On 08/01/15 02:13 AM, Paul Pluzhnikov wrote:
>>> On Wed, Jan 7, 2015 at 5:56 PM, Soni L. <fakedme@gmail.com> wrote:
>>>
>>>> This is my proposal/idea:
>>> 1. What actual problem does your proposal solve?
>>> 2. Are you aware of dlmopen ?
>>>
>>
>> Oh great I derped when configuring that gmail alias >.>
>>
>> 1. It solves a problem when loading 2 different <Lua/Python/insert something else> versions where you can't load extensions. For example, if you load Python 2 and Python 3, you can make it so trying to load Python 2 modules works, but then you wouldn't be able to load Python 3 modules, or vice-versa.
>>
>> 2. `man dlmopen`: No manual entry for dlmopen
>>
> dlfcn/dlfcn.h :
>
> #ifdef __USE_GNU
> [...]
> /* Type for namespace indeces. */
> typedef long int Lmid_t;
>
> /* Special namespace ID values. */
> # define LM_ID_BASE 0 /* Initial namespace. */
> # define LM_ID_NEWLM -1 /* For dlmopen: request new namespace. */
> [...]
> /* Like `dlopen', but request object to be allocated in a new namespace. */
> extern void *dlmopen (Lmid_t __nsid, const char *__file, int __mode) __THROWNL;
>
> /* Find the run-time address in the shared object HANDLE refers to
> of the symbol called NAME with VERSION. */
> extern void *dlvsym (void *__restrict __handle,
> const char *__restrict __name,
> const char *__restrict __version)
> __THROW __nonnull ((2, 3));
> #endif
>
Oh... And how do I use it?
More information about the Libc-help
mailing list