This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Meta?] Where do I post proposals/ideas?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]