Multithread Usage
This routine is
See also dlopen(3C), dlopene(3C), dlgetfileinfo(3C), dlerror(3C), dlerrno(3C), dld.so(5).
Return Value
If successful, dlsetlibpath returns 0, otherwise a
Errors
If dlsetlibpath fails, a subsequent call to dlerrno returns one of the following values:
RTLD_ERR_NO_MEMORY - Cannot allocate dynamic memory.
RTLD_ERR_CANT_APPLY_RELOC - Failed to apply relocation while resolving call to dlsetlibpath. RTLD_ERR_SIGINHIBIT_FAILED - The siginhibit call failed on entry to dlsetlibpath . RTLD_ERR_SIGENABLE_FAILED - The sigenable call failed on exit from dlsetlibpath. RTLD_ERR_SETCANCELSTATE_FAILED - __thread_setcancelstate failed on entry to or exit from dlsetlibpath. RTLD_ERR_INV_DLSETLIBPATH_ARGUMENT - Invalid argument in call to dlsetlibpath.
The dlerrno Routine
The dlerrno routine returns a numeric error code that corresponds to the last error that occurred during dynamic linking processing.
Synopsis
cc[flag ... ] file ...
#include <dlfcn.h> int *dlerrno(void);
Description
The dlerrno routine is one of a family of routines that give the user direct access to the dynamic linking facilities (using the
The dlgetfileinfo Routine
The dlgetfileinfo routine returns file information for a library prior to loading it.
Synopsis
cc[flag ... ] file ...
#include <dlfcn.h>
uint64_t dlgetfileinfo(const char *file,
size_t info_size,
struct dlfileinfo *info);
Description
The dlgetfileinfo routine is one of a family of routines that give the user direct access to the dynamic linking facilities (using the
The file is used to construct a pathname to the library. The dynamic loader searches for the library using the standard search rules used by dlopen and dlopene. If the library is found and is a
The dlopen Shared Library Management Routines 155