Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
2366 | konopa | 1 | /* Error codes */ |
2 | |||
3 | |||
4 | #ifndef _ERRNO_H |
||
5 | #define _ERRNO_H |
||
6 | |||
7 | /* 256-512 are user error codes */ |
||
8 | #define FS_ERROR_BASE -256 /* Base for FS error codes */ |
||
9 | #define FS_ENOENT (FS_ERROR_BASE-1) /* no such file or directory */ |
||
10 | #define FS_EIO (FS_ERROR_BASE-2) /* input/output error */ |
||
11 | #define FS_EBADF (FS_ERROR_BASE-3) /* bad file descriptor */ |
||
12 | #define FS_ENOTDIR (FS_ERROR_BASE-4) /* not a directory */ |
||
13 | #define FS_EINVAL (FS_ERROR_BASE-5) /* invalid argument */ |
||
14 | #define FS_ENFILE (FS_ERROR_BASE-6) /* too many open files in system */ |
||
15 | #define FS_EMFILE (FS_ERROR_BASE-7) /* too many open files */ |
||
16 | #define FS_EFBIG (FS_ERROR_BASE-8) /* file too large */ |
||
17 | #define FS_ENAMETOOLONG (FS_ERROR_BASE-9) /* file name too long */ |
||
18 | #define FS_ENOTEMPTY (FS_ERROR_BASE-10) /* directory not empty */ |
||
19 | #define FS_EBADCALL (FS_ERROR_BASE-11) /* out of range of filesystem's call */ |
||
20 | #define FS_EGENERIC (FS_ERROR_BASE-12) /* other error */ |
||
21 | #define FS_ECONNECT (FS_ERROR_BASE-13) /* new consument initiating connection error */ |
||
22 | #define FS_ENOTCONNECT (FS_ERROR_BASE-14) /* disconnected consument tried to call some function */ |
||
23 | |||
24 | #endif /* _ERRNO_H */ |