|
Lines 36-42
Link Here
|
| 36 |
.\" @(#)strerror.3 8.1 (Berkeley) 6/9/93 |
36 |
.\" @(#)strerror.3 8.1 (Berkeley) 6/9/93 |
| 37 |
.\" $FreeBSD: /repoman/r/ncvs/src/lib/libc/string/strerror.3,v 1.7.2.7 2003/01/17 13:39:50 mike Exp $ |
37 |
.\" $FreeBSD: /repoman/r/ncvs/src/lib/libc/string/strerror.3,v 1.7.2.7 2003/01/17 13:39:50 mike Exp $ |
| 38 |
.\" |
38 |
.\" |
| 39 |
.Dd December 19, 2002 |
39 |
.Dd October 12, 2004 |
| 40 |
.Dt STRERROR 3 |
40 |
.Dt STRERROR 3 |
| 41 |
.Os |
41 |
.Os |
| 42 |
.Sh NAME |
42 |
.Sh NAME |
|
Lines 102-119
Link Here
|
| 102 |
.Pq Dq Li ":\ " ; |
102 |
.Pq Dq Li ":\ " ; |
| 103 |
otherwise, only the error message string is printed. |
103 |
otherwise, only the error message string is printed. |
| 104 |
.Pp |
104 |
.Pp |
| 105 |
If |
105 |
If the error number is not recognized, these functions return an error message |
| 106 |
.Fa errnum |
106 |
string containing |
| 107 |
is not a recognized error number, |
|
|
| 108 |
.Fn strerror |
| 109 |
returns an error message string containing |
| 110 |
.Dq Li "Unknown error:\ " |
107 |
.Dq Li "Unknown error:\ " |
| 111 |
followed by the error number in decimal, while |
108 |
followed by the error number in decimal. |
|
|
109 |
The |
| 110 |
.Fn strerror |
| 111 |
and |
| 112 |
.Fn strerror_r |
112 |
.Fn strerror_r |
| 113 |
leaves |
113 |
functions return |
| 114 |
.Fa strerrbuf |
114 |
.Er EINVAL |
| 115 |
unchanged and returns |
115 |
as a warning. |
| 116 |
.Er EINVAL . |
|
|
| 117 |
Error numbers recognized by this implementation fall in |
116 |
Error numbers recognized by this implementation fall in |
| 118 |
the range 0 < |
117 |
the range 0 < |
| 119 |
.Fa errnum |
118 |
.Fa errnum |