Rev 4338 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4338 | Rev 4691 | ||
---|---|---|---|
Line 33... | Line 33... | ||
33 | */ |
33 | */ |
34 | 34 | ||
35 | #ifndef LIBC_ERRNO_H_ |
35 | #ifndef LIBC_ERRNO_H_ |
36 | #define LIBC_ERRNO_H_ |
36 | #define LIBC_ERRNO_H_ |
37 | 37 | ||
- | 38 | #include <kernel/errno.h> |
|
38 | /* TODO: support threads/fibrils */ |
39 | #include <fibril.h> |
- | 40 | ||
39 | extern int _errno; |
41 | extern int _errno; |
40 | #define errno _errno |
- | |
41 | 42 | ||
42 | #include <kernel/errno.h> |
43 | #define errno _errno |
43 | 44 | ||
- | 45 | #define EMFILE (-17) |
|
44 | #define ENAMETOOLONG (-256) |
46 | #define ENAMETOOLONG (-256) |
45 | #define EISDIR (-257) |
47 | #define EISDIR (-257) |
46 | #define ENOTDIR (-258) |
48 | #define ENOTDIR (-258) |
47 | #define ENOSPC (-259) |
49 | #define ENOSPC (-259) |
48 | #define EEXIST (-260) |
50 | #define EEXIST (-260) |
49 | #define ENOTEMPTY (-261) |
51 | #define ENOTEMPTY (-261) |
50 | #define EBADF (-262) |
52 | #define EBADF (-262) |
51 | #define ERANGE (-263) |
53 | #define ERANGE (-263) |
52 | #define EXDEV (-264) |
54 | #define EXDEV (-264) |
53 | #define EIO (-265) |
55 | #define EIO (-265) |
54 | #define EMLINK (-266) |
56 | #define EMLINK (-266) |
55 | 57 | ||
56 | #endif |
58 | #endif |
57 | 59 | ||
58 | /** @} |
60 | /** @} |
59 | */ |
61 | */ |