From c0dd63a8a86c5898580444f3ef9f112c1a7f2baa Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Thu, 19 Dec 2002 10:24:52 +0000 Subject: Add back the Standards section claiming conformance to 1003.1-2001 and C99 now that all known standards-related bugs have been fixed. --- lib/libc/string/strerror.3 | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) (limited to 'lib/libc/string/strerror.3') diff --git a/lib/libc/string/strerror.3 b/lib/libc/string/strerror.3 index 8a840e86e89b..c8c9a20ff353 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 -- cgit v1.2.3