Rev 2894 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2894 | Rev 2895 | ||
---|---|---|---|
Line 30... | Line 30... | ||
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | /** @file |
32 | /** @file |
33 | */ |
33 | */ |
34 | 34 | ||
- | 35 | #include <errno.h> |
|
35 | #include "errors.h" |
36 | #include "errors.h" |
36 | 37 | ||
37 | const err_desc_t err_desc[] = { |
38 | const err_desc_t err_desc[] = { |
38 | /* 0 */ { "EOK", "No error" }, |
39 | [-EOK] = { "EOK", "No error" }, |
39 | /* -1 */ { "ENOENT", "No such entry" }, |
40 | [-ENOENT] = { "ENOENT", "No such entry" }, |
40 | /* -2 */ { "ENOMEM", "Not enough memory" }, |
41 | [-ENOMEM] = { "ENOMEM", "Not enough memory" }, |
41 | /* -3 */ { "ELIMIT", "Limit exceeded" }, |
42 | [-ELIMIT] = { "ELIMIT", "Limit exceeded" }, |
42 | /* -4 */ { "EREFUSED", "Connection refused" }, |
43 | [-EREFUSED] = { "EREFUSED", "Connection refused" }, |
43 | 44 | ||
44 | /* -5 */ { "EFORWARD", "Forward error" }, |
45 | [-EFORWARD] = { "EFORWARD", "Forward error" }, |
45 | /* -6 */ { "EPERM", "Permission denied" }, |
46 | [-EPERM] = { "EPERM", "Permission denied" }, |
46 | /* -7 */ { "EHANGUP", "Answerbox closed connection" }, |
47 | [-EHANGUP] = { "EHANGUP", "Answerbox closed connection" }, |
47 | /* -8 */ { "EEXISTS", "Entry already exists" }, |
48 | [-EEXISTS] = { "EEXISTS", "Entry already exists" }, |
48 | /* -9 */ { "EBADMEM", "Bad memory pointer" }, |
49 | [-EBADMEM] = { "EBADMEM", "Bad memory pointer" }, |
49 | 50 | ||
50 | /* -10 */ { "ENOTSUP", "Not supported" }, |
51 | [-ENOTSUP] = { "ENOTSUP", "Not supported" }, |
51 | /* -11 */ { "EADDRNOTAVAIL", "Address not available." }, |
52 | [-EADDRNOTAVAIL] = { "EADDRNOTAVAIL", "Address not available." }, |
52 | /* -12 */ { "ETIMEOUT", "Timeout expired" }, |
53 | [-ETIMEOUT] = { "ETIMEOUT", "Timeout expired" }, |
53 | /* -13 */ { "EINVAL", "Invalid value" }, |
54 | [-EINVAL] = { "EINVAL", "Invalid value" }, |
54 | /* -14 */ { "EBUSY", "Resource is busy" }, |
55 | [-EBUSY] = { "EBUSY", "Resource is busy" }, |
55 | 56 | ||
56 | /* -15 */ { "EOVERFLOW", "The result does not fit its size." } |
57 | [-EOVERFLOW] = { "EOVERFLOW", "The result does not fit its size." } |
57 | }; |
58 | }; |
58 | 59 | ||
59 | /** @} |
60 | /** @} |
60 | */ |
61 | */ |