diff options
author | Tim J. Robbins <tjr@FreeBSD.org> | 2002-12-19 10:24:52 +0000 |
---|---|---|
committer | Tim J. Robbins <tjr@FreeBSD.org> | 2002-12-19 10:24:52 +0000 |
commit | c0dd63a8a86c5898580444f3ef9f112c1a7f2baa (patch) | |
tree | 4a476eb125f08b60f0e1c5ec495b1be115e9c159 | |
parent | 37d2356335dc49410c518879de3bef3c5cf298ec (diff) |
Add back the Standards section claiming conformance to 1003.1-2001 and
C99 now that all known standards-related bugs have been fixed.
Notes
Notes:
svn path=/head/; revision=108091
-rw-r--r-- | lib/libc/string/strerror.3 | 23 |
1 files changed, 13 insertions, 10 deletions
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 |