~mdw
/
dot-forward
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
d51304fc242b1bb4c6a4a57da0091956699801f3
[dot-forward]
/
error.c
1
#include <errno.h>
2
#include
"error.h"
3
4
/* warning: as coverage improves here, should update error_{str,temp} */
5
6
int
error_intr
=
7
#ifdef EINTR
8
EINTR
;
9
#else
10
-
1
;
11
#endif
12
13
int
error_nomem
=
14
#ifdef ENOMEM
15
ENOMEM
;
16
#else
17
-
2
;
18
#endif
19
20
int
error_noent
=
21
#ifdef ENOENT
22
ENOENT
;
23
#else
24
-
3
;
25
#endif
26
27
int
error_txtbsy
=
28
#ifdef ETXTBSY
29
ETXTBSY
;
30
#else
31
-
4
;
32
#endif
33
34
int
error_io
=
35
#ifdef EIO
36
EIO
;
37
#else
38
-
5
;
39
#endif
40
41
int
error_exist
=
42
#ifdef EEXIST
43
EEXIST
;
44
#else
45
-
6
;
46
#endif
47
48
int
error_timeout
=
49
#ifdef ETIMEDOUT
50
ETIMEDOUT
;
51
#else
52
-
7
;
53
#endif
54
55
int
error_inprogress
=
56
#ifdef EINPROGRESS
57
EINPROGRESS
;
58
#else
59
-
8
;
60
#endif
61
62
int
error_wouldblock
=
63
#ifdef EWOULDBLOCK
64
EWOULDBLOCK
;
65
#else
66
-
9
;
67
#endif
68
69
int
error_again
=
70
#ifdef EAGAIN
71
EAGAIN
;
72
#else
73
-
10
;
74
#endif
75
76
int
error_pipe
=
77
#ifdef EPIPE
78
EPIPE
;
79
#else
80
-
11
;
81
#endif
82
83
int
error_perm
=
84
#ifdef EPERM
85
EPERM
;
86
#else
87
-
12
;
88
#endif
89
90
int
error_acces
=
91
#ifdef EACCES
92
EACCES
;
93
#else
94
-
13
;
95
#endif