00001 #ifndef ERRORS_H 00002 #define ERRORS_H 00003 00004 /* Various error levels */ 00005 #define CL_EFATAL -1 00006 #define CL_EOK 0 00007 #define CL_EFAIL 1 00008 #define CL_EBUSY 2 00009 #define CL_ENOENT 3 00010 #define CL_ENOMEM 4 00011 #define CL_EPERM 5 00012 #define CL_ENOTSUP 6 00013 #define CL_EEXEC 7 00014 #define CL_EEXISTS 8 00015 #define CL_ETOOBIG 9 00016 00017 /* Just like 'errno' */ 00018 extern volatile int cli_errno; 00019 00020 extern void cli_error(int, const char *, ...); 00021 00022 #endif