2 .\" Copyright 1989 AT&T Copyright (c) 2004, Sun Microsystems, Inc. All Rights Reserved
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH DLERROR 3C "Mar 1, 2004"
8 dlerror \- get diagnostic information
14 \fBchar *\fR\fBdlerror\fR(\fBvoid\fR);
20 The \fBdlerror()\fR function returns a null-terminated character string that
21 describes the last error that occurred during dynamic linking processing. The
22 returned string contains no trailing newline. If no dynamic linking errors have
23 occurred since the last invocation of \fBdlerror()\fR, \fBdlerror()\fR returns
24 \fINULL\fR. Thus, invoking \fBdlerror()\fR a second time, immediately
25 following a prior invocation, results in \fINULL\fR being returned.
29 The \fBdlerror()\fR function is one of a family of functions that give the user
30 direct access to the dynamic linking facilities. These facilities are available
31 to dynamically-linked processes only. See \fILinker and Libraries Guide\fR.
35 See \fBattributes\fR(5) for descriptions of the following attributes:
43 ATTRIBUTE TYPE ATTRIBUTE VALUE
45 Interface Stability Standard
53 \fBld\fR(1), \fBdladdr\fR(3C), \fBdlclose\fR(3C), \fBdldump\fR(3C),
54 \fBdlopen\fR(3C), \fBdlsym\fR(3C), \fBattributes\fR(5), \fBstandards\fR(5)
57 \fILinker and Libraries Guide\fR
61 The messages returned by \fBdlerror()\fR can reside in a static buffer that is
62 overwritten on each call to \fBdlerror()\fR. Application code should not write
63 to this buffer. Programs wanting to preserve an error message should make their
64 own copies of that message.