MyOS Libc
errno.h
Go to the documentation of this file.
1 
5 #ifndef ERRNO_H
6 #define ERRNO_H
7 
8 #define errno (*(__get_errno_address()))
9 
14 int* __get_errno_address();
15 
16 #ifndef DOXYGEN_SHOULD_SKIP_THIS
17 
18 #define E2BIG 1
19 #define EACCES 2
20 #define EADDRINUSE 3
21 #define EADDRNOTAVAIL 4
22 #define EAFNOSUPPORT 5
23 #define EAGAIN 6
24 #define EALREADY 7
25 #define EBADF 8
26 #define EBADMSG 9
27 #define EBUSY 10
28 #define ECANCELED 11
29 #define ECHILD 12
30 #define ECONNABORTED 13
31 #define ECONNREFUSED 14
32 #define ECONNRESET 15
33 #define EDEADLK 16
34 #define EDESTADDRREQ 17
35 #define EDOM 18
36 #define EDQUOT 19
37 #define EEXIST 20
38 #define EFAULT 21
39 #define EFBIG 22
40 #define EHOSTUNREACH 23
41 #define EIDRM 24
42 #define EILSEQ 25
43 #define EINPROGRESS 26
44 #define EINTR 27
45 #define EINVAL 28
46 #define EIO 29
47 #define EISCONN 30
48 #define EISDIR 31
49 #define ELOOP 32
50 #define EMFILE 33
51 #define EMLINK 34
52 #define EMSGSIZE 35
53 #define EMULTIHOP 36
54 #define ENAMETOOLONG 37
55 #define ENETDOWN 38
56 #define ENETRESET 39
57 #define ENETUNREACH 40
58 #define ENFILE 41
59 #define ENOBUFS 42
60 #define ENODATA 43
61 #define ENODEV 44
62 #define ENOENT 45
63 #define ENOEXEC 46
64 #define ENOLCK 47
65 #define ENOLINK 48
66 #define ENOMEM 49
67 #define ENOMSG 50
68 #define ENOPROTOOPT 51
69 #define ENOSPC 52
70 #define ENOSR 53
71 #define ENOSTR 54
72 #define ENOSYS 55
73 #define ENOTCONN 56
74 #define ENOTDIR 57
75 #define ENOTEMPTY 58
76 #define ENOTRECOVERABLE 59
77 #define ENOTSOCK 60
78 #define ENOTSUP 61
79 #define ENOTTY 62
80 #define ENXIO 63
81 #define EOPNOTSUPP 64
82 #define EOVERFLOW 65
83 #define EOWNERDEAD 66
84 #define EPERM 67
85 #define EPIPE 68
86 #define EPROTO 69
87 #define EPROTONOSUPPORT 70
88 #define EPROTOTYPE 71
89 #define ERANGE 72
90 #define EROFS 73
91 #define ESPIPE 74
92 #define ESRCH 75
93 #define ESTALE 76
94 #define ETIME 77
95 #define ETIMEDOUT 78
96 #define ETXTBSY 79
97 #define EWOULDBLOCK 80
98 #define EXDEV 81
99 
100 #endif
101 
102 #endif