]>
Commit | Line | Data |
---|---|---|
224c7076 A |
1 | --- _SB/Libc/string/FreeBSD/strerror.3 2004-11-25 11:38:47.000000000 -0800 |
2 | +++ _SB/Libc/string/FreeBSD/strerror.3.edit 2006-06-28 16:55:53.000000000 -0700 | |
3 | @@ -51,18 +51,26 @@ | |
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 | |
34 | @@ -92,7 +100,7 @@ | |
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, |