0022627: Change OCCT memory management defaults
[occt.git] / src / OSD / OSD_ErrorList.hxx
CommitLineData
7fd59977 1#ifndef List_Of_Errors
2#define List_Of_Errors
3#include <OSD_WhoAmI.hxx>
4#include <errno.h>
5
6// List of OSD error codes
7
8#define ERR_SURPRISE -2
9// Error message management didn't follow code evolution
10
11#define ERR_UNKNOWN -1
12// Unknown system error
13
14#define ERR_NONE 0
15// No error
16
17// Errors common to alot of classes
18
19#define ERR_ACCESS 1
20#define ERR_EXIST 2
21#define ERR_FAULT 3
22#define ERR_INTR 4
23#define ERR_INVAL 5
24#define ERR_IO 6
25#define ERR_ISDIR 7
26#define ERR_NAMETOOLONG 8
27#define ERR_NOENT 9
28#define ERR_NOMEM 10
29#define ERR_NOTDIR 11
30#define ERR_PERM 12
31#define ERR_QUOT 13
32#define ERR_RANGE 14
33#define ERR_ROFS 15
34#define ERR_TOOBIG 16
35
36//------------------- Error list by class Family ------------------------
37
38// Class Directory
39
40#define ERR_DMLINK 17
41#define ERR_DNOENT 18
42
43// Class File
44
45#define ERR_FAGAIN 19
46#define ERR_FBADF 20
47#define ERR_FBADMSG 21
48#define ERR_FDEADLK 22
49#define ERR_FEXIST 23
50#define ERR_FFBIG 24
51#define ERR_FINVAL 25
52#define ERR_FIO 26
53#define ERR_FLOCKED 27
54#define ERR_FMFILE 28
55#define ERR_FNOLCK 29
56#define ERR_FPERM 30
57#define ERR_FRANGE 31
58#define ERR_FWFD 32
59
60// Class FileNode
61
62#define ERR_FNBUSY 33
63#define ERR_FNFILE 34
64#define ERR_FNINVAL 35
65#define ERR_FNOSPC 36
66#define ERR_FNNOTEMPTY 37
67#define ERR_FNXDEV 38
68
69// Class MailBox
70
71#define ERR_MBADF 40
72#define ERR_MINVAL 41
73#define ERR_MMFILE 42
74#define ERR_MPERM 43
75#define ERR_MSRCH 44
76
77// Class Semaphore
78
79#define ERR_SIDRM 45
80#define ERR_SFBIG 46
81
82// Class SharedMemory
83
84#define ERR_SMMFILE 47
85#define ERR_SMNOSPC 48
86#define ERR_SNOENT 49
87
88// Package
89#define ERR_PPERM 50
90
91
92#endif