FreeNOS
lib
libposix
errno.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2009 Niek Linnenbank
3
*
4
* This program is free software: you can redistribute it and/or modify
5
* it under the terms of the GNU General Public License as published by
6
* the Free Software Foundation, either version 3 of the License, or
7
* (at your option) any later version.
8
*
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
13
*
14
* You should have received a copy of the GNU General Public License
15
* along with this program. If not, see <http://www.gnu.org/licenses/>.
16
*/
17
18
#ifndef __LIBC_ERRNO_H
19
#define __LIBC_ERRNO_H
20
21
#include <
Macros.h
>
22
#include <
Types.h
>
23
43
#define ESUCCESS 0
44
46
#define E2BIG -1
47
49
#define EACCES -2
50
52
#define EADDRINUSE -3
53
55
#define EADDRNOTAVAIL -4
56
58
#define EAFNOSUPPORT -5
59
61
#define EAGAIN -6
62
64
#define EALREADY -7
65
67
#define EBADF -8
68
70
#define EBADMSG -9
71
73
#define EBUSY -10
74
76
#define ECANCELED -11
77
79
#define ECHILD -12
80
82
#define ECONNABORTED -13
83
85
#define ECONNREFUSED -14
86
88
#define ECONNRESET -15
89
91
#define EDEADLK -16
92
94
#define EDESTADDRREQ -17
95
97
#define EDOM -18
98
100
#define EDQUOT -19
101
103
#define EEXIST -20
104
106
#define EFAULT -21
107
109
#define EFBIG -22
110
112
#define EHOSTUNREACH -23
113
115
#define EIDRM -24
116
118
#define EILSEQ -25
119
121
#define EINPROGRESS -26
122
124
#define EINTR -27
125
127
#define EINVAL -28
128
130
#define EIO -29
131
133
#define EISCONN -30
134
136
#define EISDIR -31
137
139
#define ELOOP -32
140
142
#define EMFILE -33
143
145
#define EMLINK -34
146
148
#define EMSGSIZE -35
149
151
#define EMULTIHOP -36
152
154
#define ENAMETOOLONG -37
155
157
#define ENETDOWN -38
158
160
#define ENETRESET -39
161
163
#define ENETUNREACH -40
164
166
#define ENFILE -41
167
169
#define ENOBUFS -42
170
172
#define ENODATA -43
173
175
#define ENODEV -44
176
178
#define ENOENT -45
179
181
#define ENOEXEC -46
182
184
#define ENOLCK -47
185
187
#define ENOLINK -48
188
190
#define ENOMEM -49
191
193
#define ENOMSG -50
194
196
#define ENOPROTOOPT -51
197
199
#define ENOSPC -52
200
202
#define ENOSR -53
203
205
#define ENOSTR -54
206
208
#define ENOSYS -55
209
211
#define ENOTCONN -56
212
214
#define ENOTDIR -57
215
217
#define ENOTEMPTY -58
218
220
#define ENOTRECOVERABLE -59
221
223
#define ENOTSOCK -60
224
226
#define ENOTSUP -61
227
229
#define ENOTTY -62
230
232
#define ENXIO -63
233
235
#define EOPNOTSUPP -64
236
238
#define EOVERFLOW -65
239
241
#define EOWNERDEAD -66
242
244
#define EPERM -67
245
247
#define EPIPE -68
248
250
#define EPROTO -69
251
253
#define EPROTONOSUPPORT -70
254
256
#define EPROTOTYPE -71
257
259
#define ERANGE -72
260
262
#define EROFS -73
263
265
#define ESPIPE -74
266
268
#define ESRCH -75
269
271
#define ESTALE -76
272
274
#define ETIME -77
275
277
#define ETIMEDOUT -78
278
280
#define ETXTBSY -79
281
283
#define EWOULDBLOCK -80
284
286
#define EXDEV -81
287
289
#define ERESTART (1 << 17)
290
292
#define ELAST ERESTART
293
301
extern
C
int
errno
;
302
306
extern
C
char
*
error_map
[];
307
313
#endif
/* __LIBC_ERRNO_H */
Macros.h
Types.h
errno
C int errno
The lvalue errno is used by many functions to return error values.
C
#define C
Used to define external C functions.
Definition:
Macros.h:134
error_map
C char * error_map[]
Contains a array of character strings, representing errno values.
Definition:
errno.c:23
Generated by
1.8.17