1 .\" Copyright 1995 Yggdrasil Computing, Incorporated.
2 .\" and Copyright 2015 Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" SPDX-License-Identifier: GPL-2.0-or-later
6 .TH DLERROR 3 2021-03-22 "Linux man-pages (unreleased)" "Linux Programmer's Manual"
8 dlerror \- obtain error diagnostic for functions in the dlopen API
10 Dynamic linking library
11 .RI ( libdl ", " \-ldl )
16 .B "char *dlerror(void);"
21 function returns a human-readable,
22 null-terminated string describing the most recent error
23 that occurred from a call to one of the functions in the dlopen API
24 since the last call to
26 The returned string does
28 include a trailing newline.
31 returns NULL if no errors have occurred since initialization or since
35 is present in glibc 2.0 and later.
37 For an explanation of the terms used in this section, see
45 Interface Attribute Value
48 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);"
72 This function is part of the dlopen API, derived from SunOS.