1dlerror(3)                 Library Functions Manual                 dlerror(3)
2
3
4

NAME

6       dlerror - obtain error diagnostic for functions in the dlopen API
7

LIBRARY

9       Dynamic linking library (libdl, -ldl)
10

SYNOPSIS

12       #include <dlfcn.h>
13
14       char *dlerror(void);
15

DESCRIPTION

17       The dlerror() function returns a human-readable, null-terminated string
18       describing the most recent error that occurred from a call  to  one  of
19       the  functions in the dlopen API since the last call to dlerror().  The
20       returned string does not include a trailing newline.
21
22       dlerror() returns NULL if no errors have occurred since  initialization
23       or since it was last called.
24

ATTRIBUTES

26       For  an  explanation  of  the  terms  used  in  this  section,  see at‐
27       tributes(7).
28
29       ┌────────────────────────────────────────────┬───────────────┬─────────┐
30Interface                                   Attribute     Value   
31       ├────────────────────────────────────────────┼───────────────┼─────────┤
32dlerror()                                   │ Thread safety │ MT-Safe │
33       └────────────────────────────────────────────┴───────────────┴─────────┘
34

STANDARDS

36       POSIX.1-2008.
37

HISTORY

39       glibc 2.0.  POSIX.1-2001.
40
41       SunOS.
42

NOTES

44       The message returned by dlerror() may reside in a statically  allocated
45       buffer that is overwritten by subsequent dlerror() calls.
46

EXAMPLES

48       See dlopen(3).
49

SEE ALSO

51       dladdr(3), dlinfo(3), dlopen(3), dlsym(3)
52
53
54
55Linux man-pages 6.05              2023-07-20                        dlerror(3)
Impressum