XWOS API
4.0
XWOS C/C++ API参考手册
载入中...
搜索中...
未找到
errno.h
浏览该文件的文档.
1
18
#ifndef __xwos_lib_errno_h__
19
#define __xwos_lib_errno_h__
20
21
#if defined(ARCHCFG_COMPILER_ERRNO) && (1 == ARCHCFG_COMPILER_ERRNO)
22
# define __LINUX_ERRNO_EXTENSIONS__
23
# include <
errno.h
>
24
#else
25
# ifndef EPERM
31
# define EPERM 1
32
# define ENOENT 2
33
# define ESRCH 3
34
# define EINTR 4
35
# define EIO 5
36
# define ENXIO 6
37
# define E2BIG 7
38
# define ENOEXEC 8
39
# define EBADF 9
40
# define ECHILD 10
41
# define EAGAIN 11
42
# define ENOMEM 12
43
# define EACCES 13
44
# define EFAULT 14
45
# define ENOTBLK 15
46
# define EBUSY 16
47
# define EEXIST 17
48
# define EXDEV 18
49
# define ENODEV 19
50
# define ENOTDIR 20
51
# define EISDIR 21
52
# define EINVAL 22
53
# define ENFILE 23
54
# define EMFILE 24
55
# define ENOTTY 25
56
# define ETXTBSY 26
57
# define EFBIG 27
58
# define ENOSPC 28
59
# define ESPIPE 29
60
# define EROFS 30
61
# define EMLINK 31
62
# define EPIPE 32
63
# define EDOM 33
64
# define ERANGE 34
65
# define ENOMSG 35
66
# define EIDRM 36
67
# define ECHRNG 37
68
# define EL2NSYNC 38
69
# define EL3HLT 39
70
# define EL3RST 40
71
# define ELNRNG 41
72
# define EUNATCH 42
73
# define ENOCSI 43
74
# define EL2HLT 44
75
# define EDEADLK 45
76
# define ENOLCK 46
77
# define EBADE 50
78
# define EBADR 51
79
# define EXFULL 52
80
# define ENOANO 53
81
# define EBADRQC 54
82
# define EBADSLT 55
83
# define EDEADLOCK 56
84
# define EBFONT 57
85
# define ENOSTR 60
86
# define ENODATA 61
87
# define ETIME 62
88
# define ENOSR 63
89
# define ENONET 64
90
# define ENOPKG 65
91
# define EREMOTE 66
92
# define ENOLINK 67
93
# define EADV 68
94
# define ESRMNT 69
95
# define ECOMM 70
96
# define EPROTO 71
97
# define EMULTIHOP 74
98
# define ELBIN 75
99
# define EDOTDOT 76
100
# define EBADMSG 77
101
# define EFTYPE 79
102
# define ENOTUNIQ 80
103
# define EBADFD 81
104
# define EREMCHG 82
105
# define ELIBACC 83
106
# define ELIBBAD 84
107
# define ELIBSCN 85
108
# define ELIBMAX 86
109
# define ELIBEXEC 87
110
# define ENOSYS 88
111
# define ENMFILE 89
112
# define ENOTEMPTY 90
113
# define ENAMETOOLONG 91
114
# define ELOOP 92
115
# define EOPNOTSUPP 95
116
# define EPFNOSUPPORT 96
117
# define ECONNRESET 104
118
# define ENOBUFS 105
119
# define EAFNOSUPPORT 106
120
# define EPROTOTYPE 107
121
# define ENOTSOCK 108
122
# define ENOPROTOOPT 109
123
# define ESHUTDOWN 110
124
# define ECONNREFUSED 111
125
# define EADDRINUSE 112
126
# define ECONNABORTED 113
127
# define ENETUNREACH 114
128
# define ENETDOWN 115
129
# define ETIMEDOUT 116
130
# define EHOSTDOWN 117
131
# define EHOSTUNREACH 118
132
# define EINPROGRESS 119
133
# define EALREADY 120
134
# define EDESTADDRREQ 121
135
# define EMSGSIZE 122
136
# define EPROTONOSUPPORT 123
137
# define ESOCKTNOSUPPORT 124
138
# define EADDRNOTAVAIL 125
139
# define ENETRESET 126
140
# define EISCONN 127
141
# define ENOTCONN 128
142
# define ETOOMANYREFS 129
143
# define EPROCLIM 130
144
# define EUSERS 131
145
# define EDQUOT 132
146
# define ESTALE 133
147
# define ENOTSUP 134
148
# define ENOMEDIUM 135
149
# define ENOSHARE 136
150
# define ECASECLASH 137
151
# define EILSEQ 138
152
# define EOVERFLOW 139
153
# define ECANCELED 140
154
# define ENOTRECOVERABLE 141
155
# define EOWNERDEAD 142
156
# define ESTRPIPE 143
157
# define EWOULDBLOCK EAGAIN
158
# endif
159
#endif
160
161
/* Linux扩展的错误码 */
162
#define ERESTARTSYS 512
163
#define ERESTARTNOINTR 513
164
#define ERESTARTNOHAND 514
165
#define ENOIOCTLCMD 515
166
#define ERESTART_RESTARTBLOCK 516
167
#define EPROBE_DEFER 517
168
#define EOPENSTALE 518
169
#define ENOPARAM 519
170
#define EBADHANDLE 521
171
#define ENOTSYNC 522
172
#define EBADCOOKIE 523
173
#define ENOTSUPP 524
174
#define ETOOSMALL 525
175
#define ESERVERFAULT 526
176
#define EBADTYPE 527
177
#define EJUKEBOX 528
178
#define EIOCBQUEUED 529
179
#define ERECALLCONFLICT 530
181
/* XWOS扩展的错误码 */
182
#define XWOK 0
184
#define ETHDCTX 800
185
#define ENOTTHDCTX 801
186
#define EBHCTX 802
187
#define ENOTBHCTX 803
188
#define EISRCTX 804
189
#define ENOTISRCTX 805
190
#define EDISPMPT 806
191
#define EDISBH 807
192
#define EDISIRQ 808
194
#define EEXIT 814
196
#define ETYPE 830
197
#define EEMPTY 831
198
#define ENEGATIVE 832
199
#define ESIZE 833
200
#define E2SMALL 835
201
#define EALIGN 836
202
#define EOWNER 837
203
#define EMISSINGEND 838
205
#define EBUG 860
207
#define ENILOBJD 880
208
#define EOBJDEAD 884
209
#define EOBJACTIVE 885
216
#endif
/* xwos/lib/errno.h */
errno.h
XWOS通用库:错误码
xwos
lib
errno.h
制作者
1.9.7