/[osn-commons]/trunk/plibc/lib/errno.h
ViewVC logotype

Contents of /trunk/plibc/lib/errno.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 51 - (show annotations)
Fri Aug 16 18:34:43 2024 UTC (7 months, 2 weeks ago) by rakinar2
File MIME type: text/x-c
File size: 2982 byte(s)
feat: add basic utilities and more system calls

1 #ifndef PLIBC_ERRNO_H
2 #define PLIBC_ERRNO_H
3
4 int *get_errno_location (void);
5
6 #define errno (*get_errno_location ())
7
8 #define EPERM 1
9 #define ENOENT 2
10 #define ESRCH 3
11 #define EINTR 4
12 #define EIO 5
13 #define ENXIO 6
14 #define E2BIG 7
15 #define ENOEXEC 8
16 #define EBADF 9
17 #define ECHILD 10
18 #define EAGAIN 11
19 #define ENOMEM 12
20 #define EACCES 13
21 #define EFAULT 14
22 #define ENOTBLK 15
23 #define EBUSY 16
24 #define EEXIST 17
25 #define EXDEV 18
26 #define ENODEV 19
27 #define ENOTDIR 20
28 #define EISDIR 21
29 #define EINVAL 22
30 #define ENFILE 23
31 #define EMFILE 24
32 #define ENOTTY 25
33 #define ETXTBSY 26
34 #define EFBIG 27
35 #define ENOSPC 28
36 #define ESPIPE 29
37 #define EROFS 30
38 #define EMLINK 31
39 #define EPIPE 32
40 #define EDOM 33
41 #define ERANGE 34
42 #define EDEADLK 35
43 #define ENAMETOOLONG 36
44 #define ENOLCK 37
45 #define ENOSYS 38
46 #define ENOTEMPTY 39
47 #define ELOOP 40
48 #define EWOULDBLOCK EAGAIN
49 #define ENOMSG 42
50 #define EIDRM 43
51 #define ECHRNG 44
52 #define EL2NSYNC 45
53 #define EL3HLT 46
54 #define EL3RST 47
55 #define ELNRNG 48
56 #define EUNATCH 49
57 #define ENOCSI 50
58 #define EL2HLT 51
59 #define EBADE 52
60 #define EBADR 53
61 #define EXFULL 54
62 #define ENOANO 55
63 #define EBADRQC 56
64 #define EBADSLT 57
65 #define EDEADLOCK EDEADLK
66 #define EBFONT 59
67 #define ENOSTR 60
68 #define ENODATA 61
69 #define ETIME 62
70 #define ENOSR 63
71 #define ENONET 64
72 #define ENOPKG 65
73 #define EREMOTE 66
74 #define ENOLINK 67
75 #define EADV 68
76 #define ESRMNT 69
77 #define ECOMM 70
78 #define EPROTO 71
79 #define EMULTIHOP 72
80 #define EDOTDOT 73
81 #define EBADMSG 74
82 #define EOVERFLOW 75
83 #define ENOTUNIQ 76
84 #define EBADFD 77
85 #define EREMCHG 78
86 #define ELIBACC 79
87 #define ELIBBAD 80
88 #define ELIBSCN 81
89 #define ELIBMAX 82
90 #define ELIBEXEC 83
91 #define EILSEQ 84
92 #define ERESTART 85
93 #define ESTRPIPE 86
94 #define EUSERS 87
95 #define ENOTSOCK 88
96 #define EDESTADDRREQ 89
97 #define EMSGSIZE 90
98 #define EPROTOTYPE 91
99 #define ENOPROTOOPT 92
100 #define EPROTONOSUPPORT 93
101 #define ESOCKTNOSUPPORT 94
102 #define EOPNOTSUPP 95
103 #define EPFNOSUPPORT 96
104 #define EAFNOSUPPORT 97
105 #define EADDRINUSE 98
106 #define EADDRNOTAVAIL 99
107 #define ENETDOWN 100
108 #define ENETUNREACH 101
109 #define ENETRESET 102
110 #define ECONNABORTED 103
111 #define ECONNRESET 104
112 #define ENOBUFS 105
113 #define EISCONN 106
114 #define ENOTCONN 107
115 #define ESHUTDOWN 108
116 #define ETOOMANYREFS 109
117 #define ETIMEDOUT 110
118 #define ECONNREFUSED 111
119 #define EHOSTDOWN 112
120 #define EHOSTUNREACH 113
121 #define EALREADY 114
122 #define EINPROGRESS 115
123 #define ESTALE 116
124 #define EUCLEAN 117
125 #define ENOTNAM 118
126 #define ENAVAIL 119
127 #define EISNAM 120
128 #define EREMOTEIO 121
129 #define EDQUOT 122
130 #define ENOMEDIUM 123
131 #define EMEDIUMTYPE 124
132 #define ECANCELED 125
133 #define ENOKEY 126
134 #define EKEYEXPIRED 127
135 #define EKEYREVOKED 128
136 #define EKEYREJECTED 129
137 #define EOWNERDEAD 130
138 #define ENOTRECOVERABLE 131
139 #define ERFKILL 132
140 #define EHWPOISON 133
141
142 #endif

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26