summaryrefslogtreecommitdiff
path: root/share/man
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-09-25 21:56:21 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-09-25 21:56:21 +0000
commit7afdcc96dd59352c2870eca137c05b56ebc3fa91 (patch)
tree0de062743828c3908a29452011c16586ae94fa35 /share/man
parentaf71788caf7fe032198101c4779dacd2bc34a699 (diff)
dlerror(3) should clear _dl_errno; based on a patch from Bjorn Sandell.
Closes PR 3441; drahn@ OK
Diffstat (limited to 'share/man')
-rw-r--r--share/man/man3/dlfcn.312
1 files changed, 11 insertions, 1 deletions
diff --git a/share/man/man3/dlfcn.3 b/share/man/man3/dlfcn.3
index a7b681fbb5a..4a03872ad84 100644
--- a/share/man/man3/dlfcn.3
+++ b/share/man/man3/dlfcn.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dlfcn.3,v 1.14 2002/12/30 13:51:59 millert Exp $
+.\" $OpenBSD: dlfcn.3,v 1.15 2003/09/25 21:56:20 millert Exp $
.\" $NetBSD: dlfcn.3,v 1.3 1996/01/09 19:43:34 pk Exp $
.\"
.\" Copyright (c) 1995 Paul Kranenburg
@@ -121,6 +121,16 @@ This interface is
.Fn dlerror
returns a character string representing the most recent error that has
occurred while processing one of the other functions described here.
+If no dynamic linking errors have occurred since the last invocation of
+.Fn dlerror ,
+.Fn dlerror
+returns
+.Dv NULL .
+Thus, invoking
+.Fn dlerror
+a second time, immediately following a prior invocation, will result in
+.Dv NULL
+being returned.
.Sh SEE ALSO
.Xr ld 1 ,
.Xr ld.so 1 ,