summaryrefslogtreecommitdiff
path: root/inc/OSD_ErrorList.hxx
blob: 28e8fa77206dd0b283e3b414abb636279b21fd95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#ifndef List_Of_Errors
#define List_Of_Errors
#include <OSD_WhoAmI.hxx>
#include <errno.h>

// List of OSD error codes

#define ERR_SURPRISE -2 
// Error message management didn't follow code evolution

#define ERR_UNKNOWN -1  
// Unknown system error

#define ERR_NONE     0  
// No error

// Errors common to alot of classes

#define ERR_ACCESS       1
#define ERR_EXIST        2
#define ERR_FAULT        3
#define ERR_INTR         4
#define ERR_INVAL        5
#define ERR_IO           6
#define ERR_ISDIR        7
#define ERR_NAMETOOLONG  8
#define ERR_NOENT        9
#define ERR_NOMEM       10
#define ERR_NOTDIR      11
#define ERR_PERM        12
#define ERR_QUOT        13
#define ERR_RANGE       14
#define ERR_ROFS        15
#define ERR_TOOBIG      16

//------------------- Error list by class Family ------------------------

// Class Directory

#define ERR_DMLINK      17
#define ERR_DNOENT      18

// Class File

#define ERR_FAGAIN      19
#define ERR_FBADF       20
#define ERR_FBADMSG     21
#define ERR_FDEADLK     22
#define ERR_FEXIST      23
#define ERR_FFBIG       24
#define ERR_FINVAL      25
#define ERR_FIO         26
#define ERR_FLOCKED     27
#define ERR_FMFILE      28
#define ERR_FNOLCK      29
#define ERR_FPERM       30
#define ERR_FRANGE      31
#define ERR_FWFD        32

// Class FileNode

#define ERR_FNBUSY      33
#define ERR_FNFILE      34
#define ERR_FNINVAL     35
#define ERR_FNOSPC      36
#define ERR_FNNOTEMPTY  37
#define ERR_FNXDEV      38

// Class MailBox

#define ERR_MBADF       40
#define ERR_MINVAL      41
#define ERR_MMFILE      42
#define ERR_MPERM       43
#define ERR_MSRCH       44

// Class Semaphore

#define ERR_SIDRM       45
#define ERR_SFBIG       46

// Class SharedMemory

#define ERR_SMMFILE     47
#define ERR_SMNOSPC     48
#define ERR_SNOENT      49

// Package
#define ERR_PPERM       50


#endif