PatchworkOS
Loading...
Searching...
No Matches
errno.h
Go to the documentation of this file.
1#ifndef _ERRNO_H
2#define _ERRNO_H 1
3
4#if defined(__cplusplus)
5extern "C"
6{
7#endif
8
9#include "_internal/ERR.h"
10#include "_internal/config.h"
11
12int* _errno_get(void);
13
27#define errno (*_errno_get())
28
32#define EOK 0
33
37#define EPERM 1
38
42#define ENOENT 2
43
47#define ESRCH 3
48
52#define EINTR 4
53
57#define EIO 5
58
62#define ENXIO 6
63
67#define E2BIG 7
68
72#define ENOEXEC 8
73
77#define EBADF 9
78
82#define ECHILD 10
83
87#define EAGAIN 11
88
92#define ENOMEM 12
93
97#define EACCES 13
98
102#define EFAULT 14
103
107#define ENOTBLK 15
108
112#define EBUSY 16
113
117#define EEXIST 17
118
122#define EXDEV 18
123
127#define ENODEV 19
128
132#define ENOTDIR 20
133
137#define EISDIR 21
138
142#define EINVAL 22
143
147#define ENFILE 23
148
152#define EMFILE 24
153
157#define ENOTTY 25
158
162#define ETXTBSY 26
163
167#define EFBIG 27
168
172#define ENOSPC 28
173
177#define ESPIPE 29
178
182#define EROFS 30
183
187#define EMLINK 31
188
192#define EPIPE 32
193
197#define EDOM 33
198
202#define ERANGE 34
203
207#define EDEADLK 35
208
212#define ENAMETOOLONG 36
213
217#define ENOLCK 37
218
222#define ENOSYS 38
223
227#define ENOTEMPTY 39
228
232#define ELOOP 40
233
237#define EWOULDBLOCK EAGAIN
238
242#define ENOMSG 42
243
247#define EIDRM 43
248
252#define ECHRNG 44
253
257#define EL2NSYNC 45
258
262#define EL3HLT 46
263
267#define EL3RST 47
268
272#define ELNRNG 48
273
277#define EUNATCH 49
278
282#define ENOCSI 50
283
287#define EL2HLT 51
288
292#define EBADE 52
293
297#define EBADR 53
298
302#define EXFULL 54
303
307#define ENOANO 55
308
312#define EBADRQC 56
313
317#define EBADSLT 57
318
322#define EBFONT 59
323
327#define ENOSTR 60
328
332#define ENODATA 61
333
337#define ETIME 62
338
342#define ENOSR 63
343
347#define ENONET 64
348
352#define ENOPKG 65
353
357#define EREMOTE 66
358
362#define ENOLINK 67
363
367#define EADV 68
368
372#define ESRMNT 69
373
377#define ECOMM 70
378
382#define EPROTO 71
383
387#define EMULTIHOP 72
388
392#define EDOTDOT 73
393
397#define EBADMSG 74
398
402#define EOVERFLOW 75
403
407#define ENOTUNIQ 76
408
412#define EBADFD 77
413
417#define EREMCHG 78
418
422#define ELIBACC 79
423
427#define ELIBBAD 80
428
432#define ELIBSCN 81
433
437#define ELIBMAX 82
438
442#define ELIBEXEC 83
443
447#define EILSEQ 84
448
452#define ERESTART 85
453
457#define ESTRPIPE 86
458
462#define EUSERS 87
463
467#define ENOTSOCK 88
468
472#define EDESTADDRREQ 89
473
477#define EMSGSIZE 90
478
482#define EPROTOTYPE 91
483
487#define ENOPROTOOPT 92
488
492#define EPROTONOSUPPORT 93
493
497#define ESOCKTNOSUPPORT 94
498
502#define EOPNOTSUPP 95
503
507#define EPFNOSUPPORT 96
508
512#define EAFNOSUPPORT 97
513
517#define EADDRINUSE 98
518
522#define EADDRNOTAVAIL 99
523
527#define ENETDOWN 100
528
532#define ENETUNREACH 101
533
537#define ENETRESET 102
538
542#define ECONNABORTED 103
543
547#define ECONNRESET 104
548
552#define ENOBUFS 105
553
557#define EISCONN 106
558
562#define ENOTCONN 107
563
567#define ESHUTDOWN 108
568
572#define ETOOMANYREFS 109
573
577#define ETIMEDOUT 110
578
582#define ECONNREFUSED 111
583
587#define EHOSTDOWN 112
588
592#define EHOSTUNREACH 113
593
597#define EALREADY 114
598
602#define EINPROGRESS 115
603
607#define ESTALE 116
608
612#define EUCLEAN 117
613
617#define ENOTNAM 118
618
622#define ENAVAIL 119
623
627#define EISNAM 120
628
632#define EREMOTEIO 121
633
637#define EDQUOT 122
638
642#define ENOMEDIUM 123
643
647#define EMEDIUMTYPE 124
648
652#define ECANCELED 125
653
657#define ENOKEY 126
658
662#define EKEYEXPIRED 127
663
667#define EKEYREVOKED 128
668
672#define EKEYREJECTED 129
673
677#define EOWNERDEAD 130
678
682#define ENOTRECOVERABLE 131
683
687#define ERFKILL 132
688
692#define ERR_POSIX_MAX 133
693
697#define EUNKNOWNCTL 133
698
702#define EBADPATH 134
703
707#define EBADFLAG 135
708
712#define ENOTSUP 136
713
717#define EDISCONNECTED 137
718
722#define ESPAWNFAIL 138
723
727#define ENOLABEL 139
728
732#define ERR_MAX 140
733
736#if _USE_ANNEX_K == 1
737#include "_internal/errno_t.h"
738#endif
739
740#if defined(__cplusplus)
741}
742#endif
743
744#endif
int * _errno_get(void)
Definition errno.c:11