summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2002-12-19 10:24:52 +0000
committertjr <tjr@FreeBSD.org>2002-12-19 10:24:52 +0000
commit8d1bd259938ab546f0c3a53bfce447f7de286559 (patch)
tree4a476eb125f08b60f0e1c5ec495b1be115e9c159 /lib
parent80abd67f591992ea14440a958fd23e23e71275ec (diff)
downloadFreeBSD-src-8d1bd259938ab546f0c3a53bfce447f7de286559.zip
FreeBSD-src-8d1bd259938ab546f0c3a53bfce447f7de286559.tar.gz
Add back the Standards section claiming conformance to 1003.1-2001 and
C99 now that all known standards-related bugs have been fixed.
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/string/strerror.323
1 files changed, 13 insertions, 10 deletions
diff --git a/lib/libc/string/strerror.3 b/lib/libc/string/strerror.3
index 8a840e8..c8c9a20 100644
--- a/lib/libc/string/strerror.3
+++ b/lib/libc/string/strerror.3
@@ -36,7 +36,7 @@
.\" @(#)strerror.3 8.1 (Berkeley) 6/9/93
.\" $FreeBSD$
.\"
-.Dd October 22, 2002
+.Dd December 19, 2002
.Dt STRERROR 3
.Os
.Sh NAME
@@ -115,7 +115,7 @@ leaves
unchanged and returns
.Er EINVAL .
Error numbers recognized by this implementation fall in
-the range 0 \(<
+the range 0 <
.Fa errnum
<
.Fa sys_nerr .
@@ -150,6 +150,17 @@ should be used instead.
.Sh SEE ALSO
.Xr intro 2 ,
.Xr psignal 3
+.Sh STANDARDS
+The
+.Fn perror
+and
+.Fn strerror
+functions conform to
+.St -isoC-99 .
+The
+.Fn strerror_r
+function conforms to
+.St -p1003.1-2001 .
.Sh HISTORY
The
.Fn strerror
@@ -174,14 +185,6 @@ The return type for
is missing a type-qualifier; it should actually be
.Vt const char * .
.Pp
-The
-.Fn perror
-function is implemented in terms of
-.Fn strerror ,
-hence it uses the same static buffer.
-This behaviour is forbidden by
-.St -isoC-99 .
-.Pp
Programs that use the deprecated
.Va sys_errlist
variable often fail to compile because they declare it
OpenPOWER on IntegriCloud