1 .\" Copyright 1995 Yggdrasil Computing, Incorporated.
2 .\" and Copyright 2015 Michael Kerrisk <mtk.manpages@gmail.com>
4 .\" %%%LICENSE_START(GPLv2+_DOC_FULL)
5 .\" This is free documentation; you can redistribute it and/or
6 .\" modify it under the terms of the GNU General Public License as
7 .\" published by the Free Software Foundation; either version 2 of
8 .\" the License, or (at your option) any later version.
10 .\" The GNU General Public License's references to "object code"
11 .\" and "executables" are to be interpreted as the output of any
12 .\" document formatting or typesetting system, including
13 .\" intermediate and printed output.
15 .\" This manual is distributed in the hope that it will be useful,
16 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
17 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 .\" GNU General Public License for more details.
20 .\" You should have received a copy of the GNU General Public
21 .\" License along with this manual; if not, see
22 .\" <http://www.gnu.org/licenses/>.
25 .TH DLERROR 3 2021-03-22 "Linux" "Linux Programmer's Manual"
27 dlerror \- obtain error diagnostic for functions in the dlopen API
32 .B "char *dlerror(void);"
34 Link with \fI\-ldl\fP.
39 function returns a human-readable,
40 null-terminated string describing the most recent error
41 that occurred from a call to one of the functions in the dlopen API
42 since the last call to
44 The returned string does
46 include a trailing newline.
49 returns NULL if no errors have occurred since initialization or since
53 is present in glibc 2.0 and later.
55 For an explanation of the terms used in this section, see
63 Interface Attribute Value
66 T} Thread safety MT-Safe
74 The message returned by
76 may reside in a statically allocated buffer that is
77 overwritten by subsequent
81 .\" The string returned by
83 .\" should not be modified.
84 .\" Some systems give the prototype as
87 .\" .B "const char *dlerror(void);"
90 This function is part of the dlopen API, derived from SunOS.