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
55
EADDRINUSE
= 3,
56
61
EADDRNOTAVAIL
= 4,
62
68
EAFNOSUPPORT
= 5,
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
128
ECONNABORTED
= 13,
129
136
ECONNREFUSED
= 14,
137
141
ECONNRESET
= 15,
142
147
EDEADLK
= 16,
148
152
EDESTADDRREQ
= 17,
153
158
EDOM
= 18,
159
163
EDQUOT
= 19,
164
169
EEXIST
= 20,
170
178
EFAULT
= 21,
179
185
EFBIG
= 22,
186
192
EHOSTUNREACH
= 23,
193
198
EIDRM
= 24,
199
205
EILSEQ
= 25,
206
214
EINPROGRESS
= 26,
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
294
ENAMETOOLONG
= 37,
295
300
ENETDOWN
= 38,
301
305
ENETRESET
= 39,
306
310
ENETUNREACH
= 40,
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
381
ENOPROTOOPT
= 51,
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
434
ENOTRECOVERABLE
= 59,
435
439
ENOTSOCK
= 60,
440
445
ENOTSUP
= 61,
446
452
ENOTTY
= 62,
453
460
ENXIO
= 63,
461
466
EOPNOTSUPP
= 64,
467
474
EOVERFLOW
= 65,
475
480
EOWNERDEAD
= 66,
481
487
EPERM
= 67,
488
493
EPIPE
= 68,
494
500
EPROTO
= 69,
501
507
EPROTONOSUPPORT
= 70,
508
513
EPROTOTYPE
= 71,
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
581
EWOULDBLOCK
= 80,
582
586
EXDEV
= 81,
587
588
__ERRNO_MAX
589
}
KernelErrors
;
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__
__errno_location
int * __errno_location(void) __attribute__((const))
KernelErrors
KernelErrors
Definition:
errno.h:29
EMFILE
@ EMFILE
Definition:
errno.h:265
EMSGSIZE
@ EMSGSIZE
Definition:
errno.h:279
ENOTCONN
@ ENOTCONN
Definition:
errno.h:413
ENOTSOCK
@ ENOTSOCK
Definition:
errno.h:439
ECONNREFUSED
@ ECONNREFUSED
Definition:
errno.h:136
EPERM
@ EPERM
Definition:
errno.h:487
ETIME
@ ETIME
Definition:
errno.h:552
ENXIO
@ ENXIO
Definition:
errno.h:460
EOK
@ EOK
Definition:
errno.h:33
EDOM
@ EDOM
Definition:
errno.h:158
EISCONN
@ EISCONN
Definition:
errno.h:243
ENOSPC
@ ENOSPC
Definition:
errno.h:388
ENODATA
@ ENODATA
Definition:
errno.h:330
ENETUNREACH
@ ENETUNREACH
Definition:
errno.h:310
ENOMSG
@ ENOMSG
Definition:
errno.h:375
EFBIG
@ EFBIG
Definition:
errno.h:185
ENOTRECOVERABLE
@ ENOTRECOVERABLE
Definition:
errno.h:434
ERANGE
@ ERANGE
Definition:
errno.h:520
EDEADLK
@ EDEADLK
Definition:
errno.h:147
EAGAIN
@ EAGAIN
Definition:
errno.h:74
ECONNRESET
@ ECONNRESET
Definition:
errno.h:141
ESRCH
@ ESRCH
Definition:
errno.h:538
EEXIST
@ EEXIST
Definition:
errno.h:169
EWOULDBLOCK
@ EWOULDBLOCK
Definition:
errno.h:581
EROFS
@ EROFS
Definition:
errno.h:526
ETIMEDOUT
@ ETIMEDOUT
Definition:
errno.h:566
EPROTO
@ EPROTO
Definition:
errno.h:500
EACCES
@ EACCES
Definition:
errno.h:50
ENOTSUP
@ ENOTSUP
Definition:
errno.h:445
EADDRNOTAVAIL
@ EADDRNOTAVAIL
Definition:
errno.h:61
ECONNABORTED
@ ECONNABORTED
Definition:
errno.h:128
ENOSR
@ ENOSR
Definition:
errno.h:396
EISDIR
@ EISDIR
Definition:
errno.h:249
ENOLCK
@ ENOLCK
Definition:
errno.h:357
EIO
@ EIO
Definition:
errno.h:238
ESTALE
@ ESTALE
Definition:
errno.h:543
E2BIG
@ E2BIG
Definition:
errno.h:44
EHOSTUNREACH
@ EHOSTUNREACH
Definition:
errno.h:192
EINVAL
@ EINVAL
Definition:
errno.h:230
ETXTBSY
@ ETXTBSY
Definition:
errno.h:574
__ERRNO_MAX
@ __ERRNO_MAX
Definition:
errno.h:588
EDQUOT
@ EDQUOT
Definition:
errno.h:163
EBADF
@ EBADF
Definition:
errno.h:87
EINTR
@ EINTR
Definition:
errno.h:223
ENOTDIR
@ ENOTDIR
Definition:
errno.h:422
EPROTONOSUPPORT
@ EPROTONOSUPPORT
Definition:
errno.h:507
EBADMSG
@ EBADMSG
Definition:
errno.h:102
EXDEV
@ EXDEV
Definition:
errno.h:586
ENETRESET
@ ENETRESET
Definition:
errno.h:305
ENOENT
@ ENOENT
Definition:
errno.h:343
EMULTIHOP
@ EMULTIHOP
Definition:
errno.h:284
EBUSY
@ EBUSY
Definition:
errno.h:110
ESPIPE
@ ESPIPE
Definition:
errno.h:532
EOPNOTSUPP
@ EOPNOTSUPP
Definition:
errno.h:466
EILSEQ
@ EILSEQ
Definition:
errno.h:205
EPROTOTYPE
@ EPROTOTYPE
Definition:
errno.h:513
ENOSTR
@ ENOSTR
Definition:
errno.h:402
ENOSYS
@ ENOSYS
Definition:
errno.h:408
ENAMETOOLONG
@ ENAMETOOLONG
Definition:
errno.h:294
ELOOP
@ ELOOP
Definition:
errno.h:257
EDESTADDRREQ
@ EDESTADDRREQ
Definition:
errno.h:152
ENOTEMPTY
@ ENOTEMPTY
Definition:
errno.h:428
EOVERFLOW
@ EOVERFLOW
Definition:
errno.h:474
ENOPROTOOPT
@ ENOPROTOOPT
Definition:
errno.h:381
EADDRINUSE
@ EADDRINUSE
Definition:
errno.h:55
ENOEXEC
@ ENOEXEC
Definition:
errno.h:350
ENOBUFS
@ ENOBUFS
Definition:
errno.h:324
ENOLINK
@ ENOLINK
Definition:
errno.h:362
ENODEV
@ ENODEV
Definition:
errno.h:337
EPIPE
@ EPIPE
Definition:
errno.h:493
ECHILD
@ ECHILD
Definition:
errno.h:123
EMLINK
@ EMLINK
Definition:
errno.h:271
ENOMEM
@ ENOMEM
Definition:
errno.h:369
ECANCELED
@ ECANCELED
Definition:
errno.h:116
ENETDOWN
@ ENETDOWN
Definition:
errno.h:300
EOWNERDEAD
@ EOWNERDEAD
Definition:
errno.h:480
EIDRM
@ EIDRM
Definition:
errno.h:198
EALREADY
@ EALREADY
Definition:
errno.h:80
ENOTTY
@ ENOTTY
Definition:
errno.h:452
EAFNOSUPPORT
@ EAFNOSUPPORT
Definition:
errno.h:68
EFAULT
@ EFAULT
Definition:
errno.h:178
ENFILE
@ ENFILE
Definition:
errno.h:318
EINPROGRESS
@ EINPROGRESS
Definition:
errno.h:214
strerror
char * strerror(int errnum)
__attribute__
struct InodeOperations __attribute__((packed))
Kernel
include
interface
errno.h
Generated on Sat Jan 4 2025 16:59:29 for Fennix by
1.9.1