3 #include <gnu/lib-names.h>
9 void *h
= dlopen (LIBC_SO
, RTLD_LAZY
|RTLD_NOLOAD
);
12 printf ("cannot get handle for %s: %s\n", LIBC_SO
, dlerror ());
17 if (dlinfo (h
, RTLD_DI_LMID
, &ns
) != 0)
19 printf ("dlinfo for %s in %s failed: %s\n",
20 LIBC_SO
, __func__
, dlerror ());
26 printf ("namespace for %s not LM_ID_BASE\n", LIBC_SO
);
32 printf ("dlclose for %s in %s failed: %s\n",
33 LIBC_SO
, __func__
, dlerror ());