What does Dlerror return?
The dlerror() function returns a NULL-terminated string (with no trailing newline) describing the last error that occurred during a call to one of the dl*() functions. If no dynamic-linking errors have occurred since the last time it was invoked, dlerror() returns NULL.
What is a dlerror?
The function dlerror() returns a human readable string describing the most recent error that occurred from dlopen(), dlsym() or dlclose() since the last call to dlerror(). It returns NULL if no errors have occurred since initialization or since it was last called.
Is Dlerror thread safe?
Thus, invoking dlerror() a second time, immediately following a prior invocation, shall result in NULL being returned. It is implementation-defined whether or not the dlerror() function is thread-safe. A thread-safe implementation shall return only errors that occur on the current thread.
What is Dlsym in C?
DESCRIPTION. The dlsym() function shall obtain the address of a symbol defined within an object made accessible through a dlopen() call. The handle argument is the value returned from a call to dlopen() (and which has not since been released via a call to dlclose()), and name is the symbol’s name as a character string.
What to do if dlerror ( 3 ) returns an error?
If this cannot be done, an error is returned. Zero or more of the following values may also be ORed in flag : The symbols defined by this library will be made available for symbol resolution of subsequently loaded libraries. This is the converse of RTLD_GLOBAL, and the default if neither flag is specified.
What does dlerror ( ) do in dlopen ( )?
The function dlerror () returns a human-readable string describing the most recent error that occurred from dlopen (), dlsym () or dlclose () since the last call to dlerror (). It returns NULL if no errors have occurred since initialization or since it was last called.
What is the function of dlerror in Linux?
dlerror() The function dlerror() returns a human readable string describing the most recent error that occurred from dlopen(), dlsym() or dlclose() since the last call to dlerror(). dlerror(3) – Linux man page Name dladdr, dlclose, dlerror, dlopen, dlsym, dlvsym – programming interface to dynamic linking loader Synopsis #include
What does the function dlerror do in Java?
The function dlerror () returns a human readable string describing the most recent error that occurred from dlopen (), dlsym () or dlclose () since the last call to dlerror (). It returns NULL if no errors have occurred since initialization or since it was last called.