summaryrefslogtreecommitdiff
path: root/lib/libc
diff options
context:
space:
mode:
authorjtc <jtc@NetBSD.org>1993-10-05 16:56:45 +0000
committerjtc <jtc@NetBSD.org>1993-10-05 16:56:45 +0000
commitedbd9128da005cacb90e9ce6ed061bd4e272e4fe (patch)
treeb98f2afaf9d4f952a240ea7e6ffa557456737d97 /lib/libc
parent16587251656a94bf9572ea29a080ed89be27774c (diff)
Changed SYNOPSIS, #include <string.h> before using strerror().
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/stdio/strerror.37
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libc/stdio/strerror.3 b/lib/libc/stdio/strerror.3
index abfb55304d4..a5a5283a3b0 100644
--- a/lib/libc/stdio/strerror.3
+++ b/lib/libc/stdio/strerror.3
@@ -34,7 +34,7 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strerror.3 6.9 (Berkeley) 6/29/91
-.\" $Id: strerror.3,v 1.2 1993/08/01 07:44:49 mycroft Exp $
+.\" $Id: strerror.3,v 1.3 1993/10/05 16:56:45 jtc Exp $
.\"
.Dd June 29, 1991
.Dt STRERROR 3
@@ -46,13 +46,14 @@
.Nm sys_nerr
.Nd system error messages
.Sh SYNOPSIS
-.Vt extern int errno;
-.Vt extern char *sys_errlist[];
.Fd #include <stdio.h>
.Ft void
.Fn perror "const char *string"
+.Fd #include <string.h>
.Ft char *
.Fn strerror "int errnum"
+.Vt extern int sys_nerr;
+.Vt extern char *sys_errlist[];
.Sh DESCRIPTION
The
.Fn strerror