]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/dlerror.3
All pages: Remove the 5th argument to .TH
[thirdparty/man-pages.git] / man3 / dlerror.3
CommitLineData
75b7da85 1.\" Copyright 1995 Yggdrasil Computing, Incorporated.
616c2730 2.\" and Copyright 2015 Michael Kerrisk <mtk.manpages@gmail.com>
75b7da85 3.\"
e4a74ca8 4.\" SPDX-License-Identifier: GPL-2.0-or-later
75b7da85 5.\"
45186a5d 6.TH DLERROR 3 2021-03-22 "Linux man-pages (unreleased)"
75b7da85
MK
7.SH NAME
8dlerror \- obtain error diagnostic for functions in the dlopen API
eda8a717
AC
9.SH LIBRARY
10Dynamic linking library
11.RI ( libdl ", " \-ldl )
75b7da85 12.SH SYNOPSIS
c7db92b9 13.nf
75b7da85 14.B #include <dlfcn.h>
68e4db0a 15.PP
75b7da85 16.B "char *dlerror(void);"
c7db92b9 17.fi
75b7da85
MK
18.SH DESCRIPTION
19The
20.BR dlerror ()
aeb4ba76
MK
21function returns a human-readable,
22null-terminated string describing the most recent error
75b7da85
MK
23that occurred from a call to one of the functions in the dlopen API
24since the last call to
25.BR dlerror ().
c72bea43
MK
26The returned string does
27.I not
28include a trailing newline.
847e0d88 29.PP
c85226fe
MK
30.BR dlerror ()
31returns NULL if no errors have occurred since initialization or since
75b7da85
MK
32it was last called.
33.SH VERSIONS
34.BR dlerror ()
35is present in glibc 2.0 and later.
eab0df17
MK
36.SH ATTRIBUTES
37For an explanation of the terms used in this section, see
38.BR attributes (7).
c466875e
MK
39.ad l
40.nh
eab0df17
MK
41.TS
42allbox;
c466875e 43lbx lb lb
eab0df17
MK
44l l l.
45Interface Attribute Value
46T{
47.BR dlerror ()
48T} Thread safety MT-Safe
49.TE
c466875e
MK
50.hy
51.ad
52.sp 1
3113c7f3 53.SH STANDARDS
75b7da85
MK
54POSIX.1-2001.
55.SH NOTES
78978ec9
MK
56The message returned by
57.BR dlerror ()
ccbdce6e 58may reside in a statically allocated buffer that is
78978ec9
MK
59overwritten by subsequent
60.BR dlerror ()
61calls.
75b7da85
MK
62.\" .LP
63.\" The string returned by
64.\" .BR dlerror ()
65.\" should not be modified.
66.\" Some systems give the prototype as
67.\" .sp
68.\" .in +5
69.\" .B "const char *dlerror(void);"
70.\" .in
71.SS History
72This function is part of the dlopen API, derived from SunOS.
a14af333 73.SH EXAMPLES
75b7da85
MK
74See
75.BR dlopen (3).
76.SH SEE ALSO
77.BR dladdr (3),
78.BR dlinfo (3),
79.BR dlopen (3),
80.BR dlsym (3)