[foreign] road to posix
Florian Weimer
fweimer at redhat.com
Tue May 29 13:33:50 UTC 2018
On 05/29/2018 03:12 PM, Maurizio Cimadamore wrote:
> There was a minor surprise though: the dlfcn header defines a bunch of
> constants which are necessary in order to work with the library; my
> example above uses RTLD_DEFAULT. Unfortunately, such constants are
> (unsurprisignly) defined as this:
>
> ```
> # define RTLD_DEFAULT ((void *) 0)
> ```
>
> Since Jextract doesn't understand these, these constants are omitted
> from the jextract output.
It's not entirely unlikely that RTLD_DEFAULT will turn into a function
call in the future. MB_CUR_MAX is an existing example for that.
Furthermore, <dlfcn.h> is very special because functions like dlopen and
(particularly) dlsym are expected to be caller-sensitive in the sense
that they give different results depending on which DSO calls them. So
they are very difficult to wrap properly.
Thanks,
Florian
More information about the panama-dev
mailing list