File: errors.h

package info (click to toggle)
cvm 0.97-0.1
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 1,036 kB
  • sloc: ansic: 4,065; sh: 2,758; makefile: 235; sql: 15
file content (22 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (5)
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