summaryrefslogtreecommitdiffstats
path: root/error_temp.3
diff options
context:
space:
mode:
Diffstat (limited to 'error_temp.3')
-rw-r--r--error_temp.327
1 files changed, 27 insertions, 0 deletions
diff --git a/error_temp.3 b/error_temp.3
new file mode 100644
index 0000000..2f8229d
--- /dev/null
+++ b/error_temp.3
@@ -0,0 +1,27 @@
1.TH error_temp 3
2.SH NAME
3error_temp \- identify soft syscall error codes
4.SH SYNTAX
5.B #include <error.h>
6
7int \fBerror_temp\fP(\fIe\fR);
8
9int \fIe\fR;
10.SH DESCRIPTION
11.B error_temp
12returns 1 if syscall error code
13.I e
14is a soft error, 0 if it is a hard error.
15Normally
16.I e
17is
18.BR errno .
19
20A hard error is persistent:
21file not found, read-only file system, symbolic link loop, etc.
22
23A soft error is usually transient:
24out of memory, out of disk space, I/O error, disk quota exceeded,
25connection refused, host unreachable, etc.
26.SH "SEE ALSO"
27error(3)