Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef ACE_OS_INCLUDE_OS_ERRNO_H
00017 #define ACE_OS_INCLUDE_OS_ERRNO_H
00018
00019 #include "ace/pre.h"
00020
00021 #include "ace/config-lite.h"
00022
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif
00026
00027 #if !defined (ACE_LACKS_ERRNO_H)
00028 # include <errno.h>
00029 #endif
00030
00031 #if defined (ACE_VXWORKS)
00032
00033 #include <errnoLib.h>
00034 #endif
00035
00036
00037 #ifdef __cplusplus
00038 extern "C"
00039 {
00040 #endif
00041
00042 #if defined (ACE_WIN32)
00043
00044
00045
00046
00047
00048 # if defined (EWOULDBLOCK) && (EWOULDBLOCK != WSAEWOULDBLOCK)
00049 # undef EWOULDBLOCK
00050 # endif
00051 # if defined (EINPROGRESS) && (EINPROGRESS != WSAEINPROGRESS)
00052 # undef EINPROGRESS
00053 # endif
00054 # if defined (EALREADY) && (EALREADY != WSAEALREADY)
00055 # undef EALREADY
00056 # endif
00057 # if defined (ENOTSOCK) && (ENOTSOCK != WSAENOTSOCK)
00058 # undef ENOTSOCK
00059 # endif
00060 # if defined (EDESTADDRREQ) && (EDESTADDRREQ != WSAEDESTADDRREQ)
00061 # undef EDESTADDRREQ
00062 # endif
00063 # if defined (EMSGSIZE) && (EMSGSIZE != WSAEMSGSIZE)
00064 # undef EMSGSIZE
00065 # endif
00066 # if defined (EPROTOTYPE) && (EPROTOTYPE != WSAEPROTOTYPE)
00067 # undef EPROTOTYPE
00068 # endif
00069 # if defined (ENOPROTOOPT) && (ENOPROTOOPT != WSAENOPROTOOPT)
00070 # undef ENOPROTOOPT
00071 # endif
00072 # if defined (EPROTONOSUPPORT) && (EPROTONOSUPPORT != WSAEPROTONOSUPPORT)
00073 # undef EPROTONOSUPPORT
00074 # endif
00075 # if defined (ESOCKTNOSUPPORT) && (ESOCKTNOSUPPORT != WSAESOCKTNOSUPPORT)
00076 # undef ESOCKTNOSUPPORT
00077 # endif
00078 # if defined (EOPNOTSUPP) && (EOPNOTSUPP != WSAEOPNOTSUPP)
00079 # undef EOPNOTSUPP
00080 # endif
00081 # if defined (EPFNOSUPPORT) && (EPFNOSUPPORT != WSAEPFNOSUPPORT)
00082 # undef EPFNOSUPPORT
00083 # endif
00084 # if defined (EAFNOSUPPORT) && (EAFNOSUPPORT != WSAEAFNOSUPPORT)
00085 # undef EAFNOSUPPORT
00086 # endif
00087 # if defined (EADDRINUSE) && (EADDRINUSE != WSAEADDRINUSE)
00088 # undef EADDRINUSE
00089 # endif
00090 # if defined (EADDRNOTAVAIL) && (EADDRNOTAVAIL != WSAEADDRNOTAVAIL)
00091 # undef EADDRNOTAVAIL
00092 # endif
00093 # if defined (ENETDOWN) && (ENETDOWN != WSAENETDOWN)
00094 # undef ENETDOWN
00095 # endif
00096 # if defined (ENETUNREACH) && (ENETUNREACH != WSAENETUNREACH)
00097 # undef ENETUNREACH
00098 # endif
00099 # if defined (ENETRESET) && (ENETRESET != WSAENETRESET)
00100 # undef ENETRESET
00101 # endif
00102 # if defined (ECONNABORTED) && (ECONNABORTED != WSAECONNABORTED)
00103 # undef ECONNABORTED
00104 # endif
00105 # if defined (ECONNRESET) && (ECONNRESET != WSAECONNRESET)
00106 # undef ECONNRESET
00107 # endif
00108 # if defined (ENOBUFS) && (ENOBUFS != WSAENOBUFS)
00109 # undef ENOBUFS
00110 # endif
00111 # if defined (EISCONN) && (EISCONN != WSAEISCONN)
00112 # undef EISCONN
00113 # endif
00114 # if defined (ENOTCONN) && (ENOTCONN != WSAENOTCONN)
00115 # undef ENOTCONN
00116 # endif
00117 # if defined (ESHUTDOWN) && (ESHUTDOWN != WSAESHUTDOWN)
00118 # undef ESHUTDOWN
00119 # endif
00120 # if defined (ETOOMANYREFS) && (ETOOMANYREFS != WSAETOOMANYREFS)
00121 # undef ETOOMANYREFS
00122 # endif
00123 # if defined (ETIMEDOUT) && (ETIMEDOUT != WSAETIMEDOUT)
00124 # undef ETIMEDOUT
00125 # endif
00126 # if defined (ECONNREFUSED) && (ECONNREFUSED != WSAECONNREFUSED)
00127 # undef ECONNREFUSED
00128 # endif
00129 # if defined (ELOOP) && (ELOOP != WSAELOOP)
00130 # undef ELOOP
00131 # endif
00132
00133
00134
00135 # if defined (EHOSTDOWN) && (EHOSTDOWN != WSAEHOSTDOWN)
00136 # undef EHOSTDOWN
00137 # endif
00138 # if defined (EHOSTUNREACH) && (EHOSTUNREACH != WSAEHOSTUNREACH)
00139 # undef EHOSTUNREACH
00140 # endif
00141
00142
00143
00144 # if defined (EPROCLIM) && (EPROCLIM != WSAEPROCLIM)
00145 # undef EPROCLIM
00146 # endif
00147 # if defined (EUSERS) && (EUSERS != WSAEUSERS)
00148 # undef EUSERS
00149 # endif
00150 # if defined (EDQUOT) && (EDQUOT != WSAEDQUOT)
00151 # undef EDQUOT
00152 # endif
00153 # if defined (ESTALE) && (ESTALE != WSAESTALE)
00154 # undef ESTALE
00155 # endif
00156 # if defined (EREMOTE) && (EREMOTE != WSAEREMOTE)
00157 # undef EREMOTE
00158 # endif
00159
00160 # if !defined (ETIME)
00161 # define ETIME ERROR_SEM_TIMEOUT
00162 # endif
00163 # if !defined (EWOULDBLOCK)
00164 # define EWOULDBLOCK WSAEWOULDBLOCK
00165 # endif
00166 # if !defined (EINPROGRESS)
00167 # define EINPROGRESS WSAEINPROGRESS
00168 # endif
00169 # if !defined (EALREADY)
00170 # define EALREADY WSAEALREADY
00171 # endif
00172 # if !defined (ENOTSOCK)
00173 # define ENOTSOCK WSAENOTSOCK
00174 # endif
00175 # if !defined (EDESTADDRREQ)
00176 # define EDESTADDRREQ WSAEDESTADDRREQ
00177 # endif
00178 # if !defined (EMSGSIZE)
00179 # define EMSGSIZE WSAEMSGSIZE
00180 # endif
00181 # if !defined (EPROTOTYPE)
00182 # define EPROTOTYPE WSAEPROTOTYPE
00183 # endif
00184 # if !defined (ENOPROTOOPT)
00185 # define ENOPROTOOPT WSAENOPROTOOPT
00186 # endif
00187 # if !defined (EPROTONOSUPPORT)
00188 # define EPROTONOSUPPORT WSAEPROTONOSUPPORT
00189 # endif
00190 # if !defined (ESOCKTNOSUPPORT)
00191 # define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
00192 # endif
00193 # if !defined (EOPNOTSUPP)
00194 # define EOPNOTSUPP WSAEOPNOTSUPP
00195 # endif
00196 # if !defined (EPFNOSUPPORT)
00197 # define EPFNOSUPPORT WSAEPFNOSUPPORT
00198 # endif
00199 # if !defined (EAFNOSUPPORT)
00200 # define EAFNOSUPPORT WSAEAFNOSUPPORT
00201 # endif
00202 # if !defined (EADDRINUSE)
00203 # define EADDRINUSE WSAEADDRINUSE
00204 # endif
00205 # if !defined (EADDRNOTAVAIL)
00206 # define EADDRNOTAVAIL WSAEADDRNOTAVAIL
00207 # endif
00208 # if !defined (ENETDOWN)
00209 # define ENETDOWN WSAENETDOWN
00210 # endif
00211 # if !defined (ENETUNREACH)
00212 # define ENETUNREACH WSAENETUNREACH
00213 # endif
00214 # if !defined (ENETRESET)
00215 # define ENETRESET WSAENETRESET
00216 # endif
00217 # if !defined (ECONNABORTED)
00218 # define ECONNABORTED WSAECONNABORTED
00219 # endif
00220 # if !defined (ECONNRESET)
00221 # define ECONNRESET WSAECONNRESET
00222 # endif
00223 # if !defined (ENOBUFS)
00224 # define ENOBUFS WSAENOBUFS
00225 # endif
00226 # if !defined (EISCONN)
00227 # define EISCONN WSAEISCONN
00228 # endif
00229 # if !defined (ENOTCONN)
00230 # define ENOTCONN WSAENOTCONN
00231 # endif
00232 # if !defined (ESHUTDOWN)
00233 # define ESHUTDOWN WSAESHUTDOWN
00234 # endif
00235 # if !defined (ETOOMANYREFS)
00236 # define ETOOMANYREFS WSAETOOMANYREFS
00237 # endif
00238 # if !defined (ETIMEDOUT)
00239 # define ETIMEDOUT WSAETIMEDOUT
00240 # endif
00241 # if !defined (ECONNREFUSED)
00242 # define ECONNREFUSED WSAECONNREFUSED
00243 # endif
00244 # if !defined (ELOOP)
00245 # define ELOOP WSAELOOP
00246 # endif
00247 # if !defined (EHOSTDOWN)
00248 # define EHOSTDOWN WSAEHOSTDOWN
00249 # endif
00250 # if !defined (EHOSTUNREACH)
00251 # define EHOSTUNREACH WSAEHOSTUNREACH
00252 # endif
00253 # if !defined (EPROCLIM)
00254 # define EPROCLIM WSAEPROCLIM
00255 # endif
00256 # if !defined (EUSERS)
00257 # define EUSERS WSAEUSERS
00258 # endif
00259 # if !defined (EDQUOT)
00260 # define EDQUOT WSAEDQUOT
00261 # endif
00262 # if !defined (ESTALE)
00263 # define ESTALE WSAESTALE
00264 # endif
00265 # if !defined (EREMOTE)
00266 # define EREMOTE WSAEREMOTE
00267 # endif
00268
00269
00270
00271
00272 # if !defined (EADDRINUSE)
00273 # define EADDRINUSE WSAEADDRINUSE
00274 # endif
00275
00276
00277 # if !defined (EPERM)
00278 # define EPERM ERROR_ACCESS_DENIED
00279 # endif
00280 #endif
00281
00282 #if defined (ACE_HAS_H_ERRNO)
00283 void herror (const char *str);
00284 #endif
00285
00286 #if defined (ACE_LACKS_ERRNO_H)
00287 # if !defined (EPERM)
00288 # define EPERM 1
00289 # endif
00290 # if !defined (ENOENT)
00291 # define ENOENT 2
00292 # endif
00293 # if !defined (ESRCH)
00294 # define ESRCH 3
00295 # endif
00296 # if !defined (EINTR)
00297 # define EINTR 4
00298 # endif
00299 # if !defined (EIO)
00300 # define EIO 5
00301 # endif
00302 # if !defined (ENXIO)
00303 # define ENXIO 6
00304 # endif
00305 # if !defined (E2BIG)
00306 # define E2BIG 7
00307 # endif
00308 # if !defined (ENOEXEC)
00309 # define ENOEXEC 8
00310 # endif
00311 # if !defined (EBADF)
00312 # define EBADF 9
00313 # endif
00314 # if !defined (ECHILD)
00315 # define ECHILD 10
00316 # endif
00317 # if !defined (EAGAIN)
00318 # define EAGAIN 11
00319 # endif
00320 # if !defined (ENOMEM)
00321 # define ENOMEM 12
00322 # endif
00323 # if !defined (EACCES)
00324 # define EACCES 13
00325 # endif
00326 # if !defined (EFAULT)
00327 # define EFAULT 14
00328 # endif
00329 # if !defined (EBUSY)
00330 # define EBUSY 16
00331 # endif
00332 # if !defined (EEXIST)
00333 # define EEXIST 17
00334 # endif
00335 # if !defined (EXDEV)
00336 # define EXDEV 18
00337 # endif
00338 # if !defined (ENODEV)
00339 # define ENODEV 19
00340 # endif
00341 # if !defined (ENOTDIR)
00342 # define ENOTDIR 20
00343 # endif
00344 # if !defined (EISDIR)
00345 # define EISDIR 21
00346 # endif
00347 # if !defined (EINVAL)
00348 # define EINVAL 22
00349 # endif
00350 # if !defined (ENFILE)
00351 # define ENFILE 23
00352 # endif
00353 # if !defined (EMFILE)
00354 # define EMFILE 24
00355 # endif
00356 # if !defined (ENOTTY)
00357 # define ENOTTY 25
00358 # endif
00359 # if !defined (EFBIG)
00360 # define EFBIG 27
00361 # endif
00362 # if !defined (ENOSPC)
00363 # define ENOSPC 28
00364 # endif
00365 # if !defined (ESPIPE)
00366 # define ESPIPE 29
00367 # endif
00368 # if !defined (EROFS)
00369 # define EROFS 30
00370 # endif
00371 # if !defined (EMLINK)
00372 # define EMLINK 31
00373 # endif
00374 # if !defined (EPIPE)
00375 # define EPIPE 32
00376 # endif
00377 # if !defined (EDOM)
00378 # define EDOM 33
00379 # endif
00380 # if !defined (ERANGE)
00381 # define ERANGE 34
00382 # endif
00383 # if !defined (EDEADLK)
00384 # define EDEADLK 36
00385 # endif
00386 # if !defined (ENAMETOOLONG)
00387 # define ENAMETOOLONG 38
00388 # endif
00389 # if !defined (ENOLCK)
00390 # define ENOLCK 39
00391 # endif
00392 # if !defined (ENOSYS)
00393 # define ENOSYS 40
00394 # endif
00395 # if !defined (ENOTEMPTY)
00396 # define ENOTEMPTY 41
00397 # endif
00398 #endif
00399
00400 #if defined (ACE_LACKS_T_ERRNO)
00401 extern int t_errno;
00402 #endif
00403
00404 #if !defined (ENOSYS)
00405 # define ENOSYS EFAULT
00406 #endif
00407
00408 #if !defined (ENOTSUP)
00409 # define ENOTSUP ENOSYS
00410 #endif
00411
00412 #if !defined (ESUCCESS)
00413 # define ESUCCESS 0
00414 #endif
00415
00416 #if !defined (EIDRM)
00417 # define EIDRM 0
00418 #endif
00419
00420 #if !defined (ENFILE)
00421 # define ENFILE EMFILE
00422 #endif
00423
00424 #if !defined (ECOMM)
00425
00426 # define ECOMM ECONNABORTED
00427 #endif
00428
00429 #if !defined (EDEADLK)
00430 # define EDEADLK 1000
00431 #endif
00432
00433 #if !defined (ENXIO)
00434 # define ENXIO 6
00435 #endif
00436
00437 #if !defined (ETIMEDOUT) && defined (ETIME)
00438 # define ETIMEDOUT ETIME
00439 #endif
00440
00441 #if !defined (ETIME) && defined (ETIMEDOUT)
00442 # define ETIME ETIMEDOUT
00443 #endif
00444
00445 #if !defined (EBUSY)
00446 # define EBUSY ETIME
00447 #endif
00448
00449 #if !defined (ECANCELED)
00450 # define ECANCELED 125
00451 #endif
00452
00453 #ifdef __cplusplus
00454 }
00455 #endif
00456
00457 #include "ace/post.h"
00458 #endif