PropWare
3.0.0.229
C++ objects and CMake build system for Parallax Propeller
propgcc
propeller-elf
include
errno.h
Go to the documentation of this file.
1
12
#ifndef _ERRNO_H
13
#define _ERRNO_H
14
15
#if defined(__cplusplus)
16
extern
"C"
{
17
#endif
18
19
#include <sys/thread.h>
20
21
#define errno (_TLS->errno)
22
24
#define EOK 0
25
27
#define EDOM 1
28
30
#define ERANGE 2
31
33
#define EILSEQ 3
34
36
#define ENOENT 4
37
39
#define EBADF 5
40
42
#define EACCES 6
43
45
#define ENOMEM 7
46
48
#define EAGAIN 8
49
51
#define EEXIST 9
52
54
#define EINVAL 10
55
57
#define EMFILE 11
58
60
#define EIO 12
61
63
#define ENOTDIR 13
64
66
#define EISDIR 14
67
69
#define EROFS 15
70
72
#define ENOSYS 16
73
75
#define ENOTEMPTY 17
76
78
#define ENAMETOOLONG 18
79
81
#define ENOSEEK 19
82
84
#define EFAULT 20
85
87
#define EPIPE 21
88
90
#define EBUSY 22
91
93
#define EXDEV 23
94
96
#define ENOSPC 24
97
99
#define EINTR 25
100
101
#define ENODEV 26
102
#define ENFILE 27
103
#define EDEADLK 28
104
105
/* unlikely errors */
106
/* in fact, these and the networking errors are only here because
107
the GNU libstdc++ expects errno.h to define them; the library
108
cannot generate them, and strerror will report "unknown error"
109
for them */
110
#define ENOBUFS 50
111
#define ECHILD 51
112
#define ENOLCK 52
113
#define ESRCH 53
114
#define EMLINK 54
115
#define ELOOP 55
116
#define EPROTOTYPE 56
117
#define ENXIO 57
118
119
/* networking errors */
120
#define EAFNOSUPPORT 100
121
#define EADDRINUSE 101
122
#define EADDRNOTAVAIL 102
123
#define EISCONN 103
124
#define E2BIG 104
125
#define ECONNREFUSED 105
126
#define ECONNRESET 106
127
#define EDESTADDRREQ 107
128
#define EHOSTUNREACH 108
129
#define EMSGSIZE 109
130
#define ENOMSG 110
131
#define ENOPROTOOPT 111
132
#define ENETDOWN 112
133
#define ENETRESET 113
134
#define ENETUNREACH 114
135
#define ENOTSOCK 115
136
#define EINPROGRESS 116
137
#define EPROTONOSUPPORT 117
138
#define ENOTCONN 118
139
#define ECONNABORTED 119
140
#define EALREADY 120
141
#define ETIMEDOUT 121
142
143
/* some aliases */
144
146
#define EWOULDBLOCK EAGAIN
147
149
#define ESPIPE EPIPE
150
152
#define ENOEXEC ENOSYS
153
155
#define EFBIG ERANGE
156
158
#define EOPNOTSUPP ENOSYS
159
161
#define ENOTTY ENOSEEK
162
164
#define EPERM EACCES
165
166
#if defined(__cplusplus)
167
}
168
#endif
169
170
#endif
Generated on Fri May 20 2022 16:48:04 for PropWare by
1.8.17