File: errors.h

package info (click to toggle)
cvm 0.90-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 836 kB
  • ctags: 555
  • sloc: ansic: 3,848; sh: 1,131; makefile: 118; sql: 15
file content (22 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef CVM__ERRORS__H__
#define CVM__ERRORS__H__

#define CVME_GENERAL 1
#define CVME_BAD_CLIDATA 2
#define CVME_BAD_MODDATA 3
#define CVME_IO 4
#define CVME_NOFACT 5
#define CVME_CONFIG 6
#define CVME_NOCRED 7
#define CVME_PERMFAIL 100

/* This error code is only used by modules, to signal that the error
   is fatal and should cause module shutdown. */
#define CVME_FATAL 0x100

#define CVME_MASK  0x0ff

extern const char* const cvm_errlist[];
extern const int cvm_nerr;

#endif