]> git.saurik.com Git - apple/libc.git/blame - string/FreeBSD/strerror.3.patch
Libc-763.11.tar.gz
[apple/libc.git] / string / FreeBSD / strerror.3.patch
CommitLineData
1f2f436a
A
1--- strerror.3.orig 2010-10-07 16:06:39.000000000 -0700
2+++ strerror.3 2010-10-07 16:32:34.000000000 -0700
3@@ -47,18 +47,26 @@
224c7076
A
4 .Sh SYNOPSIS
5 .In stdio.h
6 .Ft void
7-.Fn perror "const char *string"
8+.Fo perror
9+.Fa "const char *s"
10+.Fc
11 .Vt extern const char * const sys_errlist[] ;
12 .Vt extern const int sys_nerr ;
13 .In string.h
14 .Ft "char *"
15-.Fn strerror "int errnum"
16+.Fo strerror
17+.Fa "int errnum"
18+.Fc
19 .Ft int
20-.Fn strerror_r "int errnum" "char *strerrbuf" "size_t buflen"
21+.Fo strerror_r
22+.Fa "int errnum"
23+.Fa "char *strerrbuf"
24+.Fa "size_t buflen"
25+.Fc
26 .Sh DESCRIPTION
27 The
28 .Fn strerror ,
29-.Fn strerror_r
30+.Fn strerror_r ,
31 and
32 .Fn perror
33 functions look up the error message string corresponding to an
1f2f436a 34@@ -88,7 +96,7 @@
224c7076
A
35 and writes it, followed by a newline, to the
36 standard error file descriptor.
37 If the argument
38-.Fa string
39+.Fa s
40 is
41 .Pf non- Dv NULL
42 and does not point to the null character,
1f2f436a
A
43@@ -110,7 +118,7 @@
44 .Er EINVAL
45 as a warning.
46 Error numbers recognized by this implementation fall in
47-the range 0 <
48+the range 0 <=
49 .Fa errnum
50 <
51 .Fa sys_nerr .