Rev 7172 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
7172 | siemargl | 1 | #ifndef _ERRNO_H |
2 | #define _ERRNO_H |
||
3 | |||
8536 | superturbo | 4 | extern int errno; |
5 | /* errors codes from KOS, but minus */ |
||
6 | # define E_SUCCESS (0) |
||
7 | # define E_UNSUPPORTED (-2) |
||
8 | # define E_UNKNOWNFS (-3) |
||
9 | # define E_NOTFOUND (-5) |
||
10 | # define E_EOF (-6) |
||
11 | # define E_INVALIDPTR (-7) |
||
12 | # define E_DISKFULL (-8) |
||
13 | # define E_FSYSERROR (-9) |
||
14 | # define E_ACCESS (-10) |
||
15 | # define E_HARDWARE (-11) |
||
16 | # define E_NOMEM (-12) |
||
17 | /* conversion errors */ |
||
18 | # define ERANGE (-20) |
||
19 | # define EINVAL (-21) |
||
20 | /* program run and pipe errors */ |
||
21 | # define E_NOMEM2 (-30) |
||
22 | # define E_FILEFMT (-31) |
||
23 | # define E_TOOMANY (-32) |
||
24 | # define E_PARAM (-33) |
||
25 | /* socket error codes*/ |
||
26 | #define ENOBUFS 1 |
||
27 | #define EINPROGRESS 2 |
||
28 | #define EOPNOTSUPP 4 |
||
29 | #define EWOULDBLOCK 6 |
||
30 | #define ENOTCONN 9 |
||
31 | #define EALREADY 10 |
||
32 | #define EINVALUE 11 |
||
33 | #define EMSGSIZE 12 |
||
34 | #define ENOMEM 18 |
||
35 | #define EADDRINUSE 20 |
||
36 | #define ECONNREFUSED 61 |
||
37 | #define ECONNRESET 52 |
||
38 | #define EISCONN 56 |
||
39 | #define ETIMEDOUT 60 |
||
40 | #define ECONNABORTED 53 |
||
7172 | siemargl | 41 | |
8536 | superturbo | 42 | #endif |