|
0
|
1 |
.TH error_temp 3
|
|
|
2 |
.SH NAME
|
|
|
3 |
error_temp \- identify soft syscall error codes
|
|
|
4 |
.SH SYNTAX
|
|
|
5 |
.B #include <error.h>
|
|
|
6 |
|
|
|
7 |
int \fBerror_temp\fP(\fIe\fR);
|
|
|
8 |
|
|
|
9 |
int \fIe\fR;
|
|
|
10 |
.SH DESCRIPTION
|
|
|
11 |
.B error_temp
|
|
|
12 |
returns 1 if syscall error code
|
|
|
13 |
.I e
|
|
|
14 |
is a soft error, 0 if it is a hard error.
|
|
|
15 |
Normally
|
|
|
16 |
.I e
|
|
|
17 |
is
|
|
|
18 |
.BR errno .
|
|
|
19 |
|
|
|
20 |
A hard error is persistent:
|
|
|
21 |
file not found, read-only file system, symbolic link loop, etc.
|
|
|
22 |
|
|
|
23 |
A soft error is usually transient:
|
|
|
24 |
out of memory, out of disk space, I/O error, disk quota exceeded,
|
|
|
25 |
connection refused, host unreachable, etc.
|
|
|
26 |
.SH "SEE ALSO"
|
|
|
27 |
error(3)
|