Subversion Repositories HelenOS

Rev

Rev 3366 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3366 Rev 3386
1
#ifndef ERRORS_H
1
#ifndef ERRORS_H
2
#define ERRORS_H
2
#define ERRORS_H
3
 
3
 
4
/* Various error levels */
4
/* Various error levels */
5
#define CL_EFATAL  -1
5
#define CL_EFATAL  -1
6
#define CL_EOK     0
6
#define CL_EOK     0
7
#define CL_EFAIL   1
7
#define CL_EFAIL   1
8
#define CL_EBUSY   2
8
#define CL_EBUSY   2
9
#define CL_ENOENT  3
9
#define CL_ENOENT  3
10
#define CL_ENOMEM  4
10
#define CL_ENOMEM  4
11
#define CL_EPERM   5
11
#define CL_EPERM   5
12
#define CL_ENOTSUP 6
12
#define CL_ENOTSUP 6
13
#define CL_EEXEC   7
13
#define CL_EEXEC   7
14
#define CL_EEXISTS 8
14
#define CL_EEXISTS 8
15
#define CL_ETOOBIG 9
15
#define CL_ETOOBIG 9
16
 
16
 
17
/* Just like 'errno' */
17
/* Just like 'errno' */
18
extern volatile int cli_errno;
18
extern volatile int cli_errno;
19
 
19
 
20
extern void cli_error(int, const char *, ...);
20
extern void cli_error(int, const char *, ...);
21
 
21
 
22
#endif
22
#endif
23
 
23