summaryrefslogtreecommitdiff
path: root/utility/rtos_compatibility_layers/posix/errno.h
blob: 2b01c34c8f2f32a46eb2b7208385765a7a8fc534 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
/***************************************************************************
 * Copyright (c) 2024 Microsoft Corporation
 * Copyright (c) 2026-present Eclipse ThreadX contributors
 *
 * This program and the accompanying materials are made available under the
 * terms of the MIT License which is available at
 * https://opensource.org/licenses/MIT.
 *
 * SPDX-License-Identifier: MIT
 **************************************************************************/

/**************************************************************************/
/**************************************************************************/
/**                                                                       */
/**   ThreadX Component                                                   */
/**                                                                       */
/**   POSIX Compliancy Wrapper (POSIX)                                    */
/**                                                                       */
/**************************************************************************/
/**************************************************************************/

/**************************************************************************/
/*                                                                        */
/*  EKP DEFINITIONS                                        RELEASE        */
/*                                                                        */
/*    errno.h                                             PORTABLE C      */
/*                                                           6.1.7        */
/*  AUTHOR                                                                */
/*                                                                        */
/*    William E. Lamie, Microsoft Corporation                             */
/*                                                                        */
/*  DESCRIPTION                                                           */
/*                                                                        */
/*    This file defines the constants, structures, etc.needed to          */
/*    implement the Evacuation Kit for POSIX Users (POSIX)                */
/*                                                                        */
/**************************************************************************/

#ifndef _ERRNO_H
#define _ERRNO_H



#ifndef TX_POSIX_SOURCE
#define errno posix_errno
#endif

/* the POSIX standard does not impose particular values for errno.h        */
/* error codes between 200 and 1000 are not used by the Threadx wrapper    */
/* but supplied for completeness.                                          */




#define E2BIG           200

#define EACCES          13

#define EADDRINUSE      201

#define EADDRNOTAVAIL   202

#define EAFNOSUPPORT    203

#define EAGAIN          11

#define EALREADY        204

#define EBADF           9

#define EBADMSG         205

#define EBUSY           9999

#define ECANCELED       206

#define ECHILD          207

#define ECONNABORTED    208

#define ECONNREFUSED    209

#define ECONNRESET      210

#define EDEADLK         3333

#define EDESTADDRREQ    211

#define EDOM            212

#define EDQUOT          213

#define EEXIST          17

#define EFAULT          214

#define EFBIG           215

#define EHOSTUNREACH    216

#define EIDRM           217

#define EILSEQ          218

#define EINPROGRESS     219

#define EINTR           4

#define EINVAL          22

#define EIO             220

#define EISCONN         221

#define EISDIR          222

#define ELOOP           223

#define EMFILE          224

#define EMLINK          225

#define EMSGSIZE        36

#define EMULTIHOP       226

#define ENAMETOOLONG    26

#define ENETDOWN        227

#define ENETRESET       228

#define ENETUNREACH     229

#define ENFILE          230

#define ENOBUFS         231

#define ENODATA         232

#define ENODEV          233

#define ENOENT          2

#define ENOEXEC         234

#define ENOLCK          235

#define ENOLINK         236

#define ENOMEM          4444

#define ENOMSG          237

#define ENOPROTOOPT     238

#define ENOSPC          28

#define ENOSR           239

#define ENOSTR          240

#define ENOSYS          71

#define ENOTCONN        241

#define ENOTDIR         242

#define ENOTEMPTY       243

#define ENOTSOCK        244

#define ENOTSUP         126

#define ENOTTY          245

#define ENXIO           246

#define EOPNOTSUPP      247

#define EOVERFLOW       248

#define EPERM           2222

#define EPIPE           249

#define EPROTO          250

#define EPROTONOSUPPORT 251

#define EPROTOTYPE      252

#define ERANGE          253

#define EROFS           254

#define ESPIPE          255

#define ESRCH           3

#define ESTALE          256

#define ETIME           257

#define ETIMEDOUT       5555

#define ETXTBSY         258

#define EWOULDBLOCK     259

#define EXDEV           260

#endif