summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/perror.3
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2005-03-24 15:15:31 +0000
committermillert <millert@openbsd.org>2005-03-24 15:15:31 +0000
commitd0a82e17dac88cde6f67ef56b3d5243e983e59d9 (patch)
tree16a279efd16b24d400f9c355232c6fc56b2d1486 /lib/libc/stdio/perror.3
parentone more fatal/fatalx, alexander (diff)
downloadwireguard-openbsd-d0a82e17dac88cde6f67ef56b3d5243e983e59d9.tar.xz
wireguard-openbsd-d0a82e17dac88cde6f67ef56b3d5243e983e59d9.zip
Document that perror() treats an empty string like NULL.
Diffstat (limited to 'lib/libc/stdio/perror.3')
-rw-r--r--lib/libc/stdio/perror.314
1 files changed, 6 insertions, 8 deletions
diff --git a/lib/libc/stdio/perror.3 b/lib/libc/stdio/perror.3
index b7f0ff4af3d..becb2e4a57d 100644
--- a/lib/libc/stdio/perror.3
+++ b/lib/libc/stdio/perror.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: perror.3,v 1.6 2003/06/02 20:18:37 millert Exp $
+.\" $OpenBSD: perror.3,v 1.7 2005/03/24 15:15:31 millert Exp $
.\"
.\" Copyright (c) 1980, 1991 Regents of the University of California.
.\" All rights reserved.
@@ -50,14 +50,12 @@ standard error stream.
.Pp
If the argument
.Fa string
-is non-null it is prepended to the message string and separated from it by
-a colon and a space
-.Pq Ql \&:\ \& .
-If
-.Fa string
-is
+is not the
.Dv NULL
-only the error message string is printed.
+pointer and is not zero length, it is prepended to the message string and
+separated from it by a colon and a space
+.Pq Ql \&:\ \& .
+Otherwise, only the error message string is printed.
.Pp
The contents of the error message string are the same as those returned by
.Fn strerror