Loading...
string/FreeBSD/strerror.3 Libc-763.12 Libc-320
--- Libc/Libc-763.12/string/FreeBSD/strerror.3
+++ Libc/Libc-320/string/FreeBSD/strerror.3
@@ -13,6 +13,10 @@
 .\" 2. Redistributions in binary form must reproduce the above copyright
 .\"    notice, this list of conditions and the following disclaimer in the
 .\"    documentation and/or other materials provided with the distribution.
+.\" 3. All advertising materials mentioning features or use of this software
+.\"    must display the following acknowledgement:
+.\"	This product includes software developed by the University of
+.\"	California, Berkeley and its contributors.
 .\" 4. Neither the name of the University nor the names of its contributors
 .\"    may be used to endorse or promote products derived from this software
 .\"    without specific prior written permission.
@@ -30,9 +34,9 @@
 .\" SUCH DAMAGE.
 .\"
 .\"     @(#)strerror.3	8.1 (Berkeley) 6/9/93
-.\" $FreeBSD: src/lib/libc/string/strerror.3,v 1.24 2007/01/09 00:28:12 imp Exp $
+.\" $FreeBSD: src/lib/libc/string/strerror.3,v 1.22 2002/12/19 10:24:52 tjr Exp $
 .\"
-.Dd October 12, 2004
+.Dd December 19, 2002
 .Dt STRERROR 3
 .Os
 .Sh NAME
@@ -98,17 +102,18 @@
 .Pq Dq Li ":\ " ;
 otherwise, only the error message string is printed.
 .Pp
-If the error number is not recognized, these functions return an error message
-string containing
+If
+.Fa errnum
+is not a recognized error number,
+.Fn strerror
+returns an error message string containing
 .Dq Li "Unknown error:\ "
-followed by the error number in decimal.
-The
-.Fn strerror
-and
+followed by the error number in decimal, while
 .Fn strerror_r
-functions return
-.Er EINVAL
-as a warning.
+leaves
+.Fa strerrbuf
+unchanged and returns
+.Er EINVAL .
 Error numbers recognized by this implementation fall in
 the range 0 <
 .Fa errnum