diff options
Diffstat (limited to 'lib')
-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 |