2 .\" Copyright 1995 Yggdrasil Computing, Incorporated.
3 .\" and Copyright 2015 Michael Kerrisk <mtk.manpages@gmail.com>
5 .\" SPDX-License-Identifier: GPL-2.0-or-later
7 .TH dlerror 3 (date) "Linux man-pages (unreleased)"
9 dlerror \- obtain error diagnostic for functions in the dlopen API
11 Dynamic linking library
12 .RI ( libdl ", " \-ldl )
17 .B "char *dlerror(void);"
22 function returns a human-readable,
23 null-terminated string describing the most recent error
24 that occurred from a call to one of the functions in the dlopen API
25 since the last call to
27 The returned string does
29 include a trailing newline.
32 returns NULL if no errors have occurred since initialization or since
35 For an explanation of the terms used in this section, see
41 Interface Attribute Value
46 T} Thread safety MT-Safe
56 The message returned by
58 may reside in a statically allocated buffer that is
59 overwritten by subsequent
63 .\" The string returned by
65 .\" should not be modified.
66 .\" Some systems give the prototype as
69 .\" .B "const char *dlerror(void);"