Fennix  1.0.0
Full Documentation
errno.h
Go to the documentation of this file.
1 /*
2  This file is part of Fennix Kernel.
3 
4  Fennix Kernel is free software: you can redistribute it and/or
5  modify it under the terms of the GNU General Public License as
6  published by the Free Software Foundation, either version 3 of
7  the License, or (at your option) any later version.
8 
9  Fennix Kernel 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 Fennix Kernel. If not, see <https://www.gnu.org/licenses/>.
16 */
17 
18 #ifndef __FENNIX_API_ERRNO_H__
19 #define __FENNIX_API_ERRNO_H__
20 
28 typedef enum
29 {
33  EOK = 0,
34 
44  E2BIG = 1,
45 
50  EACCES = 2,
51 
56 
62 
69 
74  EAGAIN = 6,
75 
80  EALREADY = 7,
81 
87  EBADF = 8,
88 
102  EBADMSG = 9,
103 
110  EBUSY = 10,
111 
116  ECANCELED = 11,
117 
123  ECHILD = 12,
124 
129 
137 
142 
147  EDEADLK = 16,
148 
153 
158  EDOM = 18,
159 
163  EDQUOT = 19,
164 
169  EEXIST = 20,
170 
178  EFAULT = 21,
179 
185  EFBIG = 22,
186 
193 
198  EIDRM = 24,
199 
205  EILSEQ = 25,
206 
215 
223  EINTR = 27,
224 
230  EINVAL = 28,
231 
238  EIO = 29,
239 
243  EISCONN = 30,
244 
249  EISDIR = 31,
250 
257  ELOOP = 32,
258 
265  EMFILE = 33,
266 
271  EMLINK = 34,
272 
279  EMSGSIZE = 35,
280 
284  EMULTIHOP = 36,
285 
295 
300  ENETDOWN = 38,
301 
305  ENETRESET = 39,
306 
311 
318  ENFILE = 41,
319 
324  ENOBUFS = 42,
325 
330  ENODATA = 43,
331 
337  ENODEV = 44,
338 
343  ENOENT = 45,
344 
350  ENOEXEC = 46,
351 
357  ENOLCK = 47,
358 
362  ENOLINK = 48,
363 
369  ENOMEM = 49,
370 
375  ENOMSG = 50,
376 
382 
388  ENOSPC = 52,
389 
396  ENOSR = 53,
397 
402  ENOSTR = 54,
403 
408  ENOSYS = 55,
409 
413  ENOTCONN = 56,
414 
422  ENOTDIR = 57,
423 
428  ENOTEMPTY = 58,
429 
435 
439  ENOTSOCK = 60,
440 
445  ENOTSUP = 61,
446 
452  ENOTTY = 62,
453 
460  ENXIO = 63,
461 
467 
474  EOVERFLOW = 65,
475 
481 
487  EPERM = 67,
488 
493  EPIPE = 68,
494 
500  EPROTO = 69,
501 
508 
514 
520  ERANGE = 72,
521 
526  EROFS = 73,
527 
532  ESPIPE = 74,
533 
538  ESRCH = 75,
539 
543  ESTALE = 76,
544 
552  ETIME = 77,
553 
566  ETIMEDOUT = 78,
567 
574  ETXTBSY = 79,
575 
582 
586  EXDEV = 81,
587 
590 
591 #ifdef __cplusplus
592 extern "C"
593 {
594 #endif
595 
596  int *__errno_location(void) __attribute__((const));
597  char *strerror(int errnum);
598 
599 #ifdef __cplusplus
600 }
601 #endif
602 
603 #define errno (*__errno_location())
604 
605 #endif // !__FENNIX_API_ERRNO_H__
int * __errno_location(void) __attribute__((const))
KernelErrors
Definition: errno.h:29
@ EMFILE
Definition: errno.h:265
@ EMSGSIZE
Definition: errno.h:279
@ ENOTCONN
Definition: errno.h:413
@ ENOTSOCK
Definition: errno.h:439
@ ECONNREFUSED
Definition: errno.h:136
@ EPERM
Definition: errno.h:487
@ ETIME
Definition: errno.h:552
@ ENXIO
Definition: errno.h:460
@ EOK
Definition: errno.h:33
@ EDOM
Definition: errno.h:158
@ EISCONN
Definition: errno.h:243
@ ENOSPC
Definition: errno.h:388
@ ENODATA
Definition: errno.h:330
@ ENETUNREACH
Definition: errno.h:310
@ ENOMSG
Definition: errno.h:375
@ EFBIG
Definition: errno.h:185
@ ENOTRECOVERABLE
Definition: errno.h:434
@ ERANGE
Definition: errno.h:520
@ EDEADLK
Definition: errno.h:147
@ EAGAIN
Definition: errno.h:74
@ ECONNRESET
Definition: errno.h:141
@ ESRCH
Definition: errno.h:538
@ EEXIST
Definition: errno.h:169
@ EWOULDBLOCK
Definition: errno.h:581
@ EROFS
Definition: errno.h:526
@ ETIMEDOUT
Definition: errno.h:566
@ EPROTO
Definition: errno.h:500
@ EACCES
Definition: errno.h:50
@ ENOTSUP
Definition: errno.h:445
@ EADDRNOTAVAIL
Definition: errno.h:61
@ ECONNABORTED
Definition: errno.h:128
@ ENOSR
Definition: errno.h:396
@ EISDIR
Definition: errno.h:249
@ ENOLCK
Definition: errno.h:357
@ EIO
Definition: errno.h:238
@ ESTALE
Definition: errno.h:543
@ E2BIG
Definition: errno.h:44
@ EHOSTUNREACH
Definition: errno.h:192
@ EINVAL
Definition: errno.h:230
@ ETXTBSY
Definition: errno.h:574
@ __ERRNO_MAX
Definition: errno.h:588
@ EDQUOT
Definition: errno.h:163
@ EBADF
Definition: errno.h:87
@ EINTR
Definition: errno.h:223
@ ENOTDIR
Definition: errno.h:422
@ EPROTONOSUPPORT
Definition: errno.h:507
@ EBADMSG
Definition: errno.h:102
@ EXDEV
Definition: errno.h:586
@ ENETRESET
Definition: errno.h:305
@ ENOENT
Definition: errno.h:343
@ EMULTIHOP
Definition: errno.h:284
@ EBUSY
Definition: errno.h:110
@ ESPIPE
Definition: errno.h:532
@ EOPNOTSUPP
Definition: errno.h:466
@ EILSEQ
Definition: errno.h:205
@ EPROTOTYPE
Definition: errno.h:513
@ ENOSTR
Definition: errno.h:402
@ ENOSYS
Definition: errno.h:408
@ ENAMETOOLONG
Definition: errno.h:294
@ ELOOP
Definition: errno.h:257
@ EDESTADDRREQ
Definition: errno.h:152
@ ENOTEMPTY
Definition: errno.h:428
@ EOVERFLOW
Definition: errno.h:474
@ ENOPROTOOPT
Definition: errno.h:381
@ EADDRINUSE
Definition: errno.h:55
@ ENOEXEC
Definition: errno.h:350
@ ENOBUFS
Definition: errno.h:324
@ ENOLINK
Definition: errno.h:362
@ ENODEV
Definition: errno.h:337
@ EPIPE
Definition: errno.h:493
@ ECHILD
Definition: errno.h:123
@ EMLINK
Definition: errno.h:271
@ ENOMEM
Definition: errno.h:369
@ ECANCELED
Definition: errno.h:116
@ ENETDOWN
Definition: errno.h:300
@ EOWNERDEAD
Definition: errno.h:480
@ EIDRM
Definition: errno.h:198
@ EALREADY
Definition: errno.h:80
@ ENOTTY
Definition: errno.h:452
@ EAFNOSUPPORT
Definition: errno.h:68
@ EFAULT
Definition: errno.h:178
@ ENFILE
Definition: errno.h:318
@ EINPROGRESS
Definition: errno.h:214
char * strerror(int errnum)
struct InodeOperations __attribute__((packed))