summaryrefslogtreecommitdiff
path: root/lib/libc/string
diff options
context:
space:
mode:
authorkleink <kleink@NetBSD.org>2009-07-22 19:48:27 +0000
committerkleink <kleink@NetBSD.org>2009-07-22 19:48:27 +0000
commit9be4603670f2453564ef28e2691c5cd99419b1be (patch)
treee69fa59e52a539517c261b0e8768979f2b270445 /lib/libc/string
parent65db08e438ead04b428b8dd9dc98ba49179bd50a (diff)
Declare strsignal(3) in <string.h>, per POSIX-2008, and adjust
documentation accordingly. Fixes PR standards/41325 from Perry E. Metzger.
Diffstat (limited to 'lib/libc/string')
-rw-r--r--lib/libc/string/strsignal.311
-rw-r--r--lib/libc/string/strsignal.c6
2 files changed, 11 insertions, 6 deletions
diff --git a/lib/libc/string/strsignal.3 b/lib/libc/string/strsignal.3
index 13b9cec6ae3..9d5daa4ad4c 100644
--- a/lib/libc/string/strsignal.3
+++ b/lib/libc/string/strsignal.3
@@ -30,9 +30,9 @@
.\" SUCH DAMAGE.
.\"
.\" from: @(#)strerror.3 6.9 (Berkeley) 6/29/91
-.\" $NetBSD: strsignal.3,v 1.9 2003/08/07 16:43:52 agc Exp $
+.\" $NetBSD: strsignal.3,v 1.10 2009/07/22 19:48:27 kleink Exp $
.\"
-.Dd June 29, 1991
+.Dd July 22, 2009
.Dt STRSIGNAL 3
.Os
.Sh NAME
@@ -41,7 +41,7 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.In unistd.h
+.In string.h
.Ft char *
.Fn strsignal "int sig"
.Sh DESCRIPTION
@@ -57,3 +57,8 @@ overwritten by subsequent calls to
.Xr intro 2 ,
.Xr psignal 3 ,
.Xr setlocale 3
+.\" .Sh STANDARDS
+.\" The
+.\" .Fn strsignal
+.\" function conforms to
+.\" .St -p1003.1-2008 .
diff --git a/lib/libc/string/strsignal.c b/lib/libc/string/strsignal.c
index 61907bf152b..c0a95cef25e 100644
--- a/lib/libc/string/strsignal.c
+++ b/lib/libc/string/strsignal.c
@@ -1,4 +1,4 @@
-/* $NetBSD: strsignal.c,v 1.13 2005/11/29 03:12:00 christos Exp $ */
+/* $NetBSD: strsignal.c,v 1.14 2009/07/22 19:48:27 kleink Exp $ */
/*
* Copyright (c) 1988 Regents of the University of California.
@@ -34,12 +34,12 @@
#if 0
static char *sccsid = "@(#)strerror.c 5.6 (Berkeley) 5/4/91";
#else
-__RCSID("$NetBSD: strsignal.c,v 1.13 2005/11/29 03:12:00 christos Exp $");
+__RCSID("$NetBSD: strsignal.c,v 1.14 2009/07/22 19:48:27 kleink Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
-#include <unistd.h>
+#include <string.h>
#include <limits.h>
#include "extern.h"