[project @ 1996-01-08 20:28:12 by partain]
[ghc.git] / ghc / includes / error.h
1 #if !defined(COMPILING_GHC) && !defined(__GLASGOW_HASKELL__)
2 extern int ghc_errno;
3 extern int ghc_errtype;
4 extern char *ghc_errstr;
5 #endif
6
7 #define ERR_ALREADYEXISTS 1
8 #define ERR_HARDWAREFAULT 2
9 #define ERR_ILLEGALOPERATION 3
10 #define ERR_INAPPROPRIATETYPE 4
11 #define ERR_INTERRUPTED 5
12 #define ERR_INVALIDARGUMENT 6
13 #define ERR_NOSUCHTHING 7
14 #define ERR_OTHERERROR 8
15 #define ERR_PERMISSIONDENIED 9
16 #define ERR_PROTOCOLERROR 10
17 #define ERR_RESOURCEBUSY 11
18 #define ERR_RESOURCEEXHAUSTED 12
19 #define ERR_RESOURCEVANISHED 13
20 #define ERR_SYSTEMERROR 14
21 #define ERR_TIMEEXPIRED 15
22 #define ERR_UNSATISFIEDCONSTRAINTS 16
23 #define ERR_UNSUPPORTEDOPERATION 17
24 #define ERR_USERERROR 18
25 #define ERR_EOF 19
26
27 #define GHC_E2BIG -1
28 #define GHC_EACCES -2
29 #define GHC_EADDRINUSE -3
30 #define GHC_EADDRNOTAVAIL -4
31 #define GHC_EADV -5
32 #define GHC_EAFNOSUPPORT -6
33 #define GHC_EAGAIN -7
34 #define GHC_EAIO -8
35 #define GHC_EALREADY -9
36 #define GHC_EBADF -10
37 #define GHC_EBADMSG -11
38 #define GHC_EBADRPC -12
39 #define GHC_EBUSY -13
40 #define GHC_ECANCELED -14
41 #define GHC_ECHILD -15
42 #define GHC_ECLONEME -16
43 #define GHC_ECOMM -17
44 #define GHC_ECONNABORTED -18
45 #define GHC_ECONNREFUSED -19
46 #define GHC_ECONNRESET -20
47 #define GHC_EDEADLK -21
48 #define GHC_EDESTADDRREQ -22
49 #define GHC_EDIRTY -23
50 #define GHC_EDOM -24
51 #define GHC_EDOTDOT -25
52 #define GHC_EDQUOT -26
53 #define GHC_EDUPPKG -27
54 #define GHC_EEXIST -28
55 #define GHC_EFAIL -29
56 #define GHC_EFAULT -30
57 #define GHC_EFBIG -31
58 #define GHC_EFTYPE -32
59 #define GHC_EHOSTDOWN -33
60 #define GHC_EHOSTUNREACH -34
61 #define GHC_EIDRM -35
62 #define GHC_EILSEQ -36
63 #define GHC_EINPROG -37
64 #define GHC_EINPROGRESS -38
65 #define GHC_EINTR -39
66 #define GHC_EINVAL -40
67 #define GHC_EIO -41
68 #define GHC_EISCONN -42
69 #define GHC_EISDIR -43
70 #define GHC_ELOOP -44
71 #define GHC_EMEDIA -45
72 #define GHC_EMFILE -46
73 #define GHC_EMLINK -47
74 #define GHC_EMSGSIZE -48
75 #define GHC_EMTIMERS -49
76 #define GHC_EMULTIHOP -50
77 #define GHC_ENAMETOOLONG -51
78 #define GHC_ENETDOWN -52
79 #define GHC_ENETRESET -53
80 #define GHC_ENETUNREACH -54
81 #define GHC_ENFILE -55
82 #define GHC_ENOBUFS -56
83 #define GHC_ENODATA -57
84 #define GHC_ENODEV -58
85 #define GHC_ENOENT -59
86 #define GHC_ENOEXEC -60
87 #define GHC_ENOLCK -61
88 #define GHC_ENOLINK -62
89 #define GHC_ENOMEM -63
90 #define GHC_ENOMSG -64
91 #define GHC_ENONET -65
92 #define GHC_ENOPKG -66
93 #define GHC_ENOPROTOOPT -67
94 #define GHC_ENOSPC -68
95 #define GHC_ENOSR -69
96 #define GHC_ENOSTR -70
97 #define GHC_ENOSYM -71
98 #define GHC_ENOSYS -72
99 #define GHC_ENOTBLK -73
100 #define GHC_ENOTCONN -74
101 #define GHC_ENOTDIR -75
102 #define GHC_ENOTEMPTY -76
103 #define GHC_ENOTSOCK -77
104 #define GHC_ENOTSUP -78
105 #define GHC_ENOTTY -79
106 #define GHC_ENXIO -80
107 #define GHC_EOPNOTSUPP -81
108 #define GHC_EPERM -82
109 #define GHC_EPFNOSUPPORT -83
110 #define GHC_EPIPE -84
111 #define GHC_EPROCLIM -85
112 #define GHC_EPROCUNAVAIL -86
113 #define GHC_EPROGMISMATCH -87
114 #define GHC_EPROGUNAVAIL -88
115 #define GHC_EPROTO -89
116 #define GHC_EPROTONOSUPPORT -90
117 #define GHC_EPROTOTYPE -91
118 #define GHC_ERANGE -92
119 #define GHC_ERELOCATED -93
120 #define GHC_EREMCHG -94
121 #define GHC_EREMOTE -95
122 #define GHC_EROFS -96
123 #define GHC_ERPCMISMATCH -97
124 #define GHC_ERREMOTE -98
125 #define GHC_ESHUTDOWN -99
126 #define GHC_ESOCKTNOSUPPORT -100
127 #define GHC_ESOFT -101
128 #define GHC_ESPIPE -102
129 #define GHC_ESRCH -103
130 #define GHC_ESRMNT -104
131 #define GHC_ESTALE -105
132 #define GHC_ETIME -106
133 #define GHC_ETIMEDOUT -107
134 #define GHC_ETOOMANYREFS -108
135 #define GHC_ETXTBSY -109
136 #define GHC_EUSERS -110
137 #define GHC_EVERSION -111
138 #define GHC_EWOULDBLOCK -112
139 #define GHC_EXDEV -113
140
141