Bonjour

> Functions for loading shared libraries dynamically are implemented in
> libdl.so. There is a header file for this library. What is it?
> 

#include <dlfcn.h>

> According to Linux Programmer's Reference from Osborne/McGraw-Hill, my C
> program should include "dlfcnt.h", like this:
> 
> #include <dlfcnt.h>

It is probably a typo, This is not a Linux specific thing,
it is how the stds for example Unix98, define things.

> 
> But not on my Linux distribution! I search for all files on my computer
> that start with "dl" and end with ".h" and I can find none.

/usr/include/dlfcn.h

> 
> I looked up these functions on the Linux documentation project. While it
> gives the signatures for dlopen(), dlclose(), dlerror() and dlsym(), it
> does not give the values of RTLD_.. enumeration (like RTLD_LAZY) that's
> passed to dlopen().

RTLD_* are not defines directly in dlfcn for GNU lib C, since glibc
is use for many different operating systems and arch (i.e. GNU/Linux,
GNU/Hurd, etc ..) the dependent parts are included, for example in
bits/*.h are asm/*.h etc .. but in you case you should never include
them directly but use
#include <dlfcnt.h>

Look at the man pages or info files for more, this should have been
your first stop.  You may wine about info and all but how hard could
it have been to do `man dlopen' ??

-- 
au revoir, alain
----
Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!


_______________________________________________
Kernel maillist  -  [EMAIL PROTECTED]
http://jos.org/mailman/listinfo/kernel

Reply via email to