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 #  define ETIME                   ERROR_SEM_TIMEOUT
00045 #  define EWOULDBLOCK             WSAEWOULDBLOCK
00046 #  define EINPROGRESS             WSAEINPROGRESS
00047 #  define EALREADY                WSAEALREADY
00048 #  define ENOTSOCK                WSAENOTSOCK
00049 #  define EDESTADDRREQ            WSAEDESTADDRREQ
00050 #  define EMSGSIZE                WSAEMSGSIZE
00051 #  define EPROTOTYPE              WSAEPROTOTYPE
00052 #  define ENOPROTOOPT             WSAENOPROTOOPT
00053 #  define EPROTONOSUPPORT         WSAEPROTONOSUPPORT
00054 #  define ESOCKTNOSUPPORT         WSAESOCKTNOSUPPORT
00055 #  define EOPNOTSUPP              WSAEOPNOTSUPP
00056 #  define EPFNOSUPPORT            WSAEPFNOSUPPORT
00057 #  define EAFNOSUPPORT            WSAEAFNOSUPPORT
00058 #  define EADDRINUSE              WSAEADDRINUSE
00059 #  define EADDRNOTAVAIL           WSAEADDRNOTAVAIL
00060 #  define ENETDOWN                WSAENETDOWN
00061 #  define ENETUNREACH             WSAENETUNREACH
00062 #  define ENETRESET               WSAENETRESET
00063 #  define ECONNABORTED            WSAECONNABORTED
00064 #  define ECONNRESET              WSAECONNRESET
00065 #  define ENOBUFS                 WSAENOBUFS
00066 #  define EISCONN                 WSAEISCONN
00067 #  define ENOTCONN                WSAENOTCONN
00068 #  define ESHUTDOWN               WSAESHUTDOWN
00069 #  define ETOOMANYREFS            WSAETOOMANYREFS
00070 #  define ETIMEDOUT               WSAETIMEDOUT
00071 #  define ECONNREFUSED            WSAECONNREFUSED
00072 #  define ELOOP                   WSAELOOP
00073 #  define EHOSTDOWN               WSAEHOSTDOWN
00074 #  define EHOSTUNREACH            WSAEHOSTUNREACH
00075 #  define EPROCLIM                WSAEPROCLIM
00076 #  define EUSERS                  WSAEUSERS
00077 #  define EDQUOT                  WSAEDQUOT
00078 #  define ESTALE                  WSAESTALE
00079 #  define EREMOTE                 WSAEREMOTE
00080    
00081    
00082    
00083 #  define EADDRINUSE WSAEADDRINUSE
00084 
00085   
00086 #  if !defined (EPERM)
00087 #    define EPERM                 ERROR_ACCESS_DENIED
00088 #  endif
00089 #endif 
00090 
00091 #if defined (ACE_HAS_H_ERRNO)
00092 void herror (const char *str);
00093 #endif 
00094 
00095 #if !defined (ACE_WIN32) && defined (ACE_LACKS_T_ERRNO)
00096 extern int t_errno;
00097 #endif 
00098 
00099 #if !defined (ENOSYS)
00100 # define ENOSYS EFAULT 
00101 #endif 
00102 
00103 #if !defined (ENOTSUP)
00104 # define ENOTSUP ENOSYS  
00105 #endif 
00106 
00107 #if !defined (ESUCCESS)
00108 #  define ESUCCESS 0
00109 #endif 
00110 
00111 #if !defined (EIDRM)
00112 #  define EIDRM 0
00113 #endif 
00114 
00115 #if !defined (ENFILE)
00116 #  define ENFILE EMFILE 
00117 #endif 
00118 
00119 #if !defined (ECOMM)
00120    
00121 #  define ECOMM ECONNABORTED
00122 #endif 
00123 
00124 #if !defined (EDEADLK)
00125 #  define EDEADLK 1000 
00126 #endif 
00127 
00128 #if !defined (ENXIO)     
00129 #   define ENXIO  6
00130 #endif 
00131 
00132 #if !defined (ETIMEDOUT) && defined (ETIME)
00133 #  define ETIMEDOUT ETIME
00134 #endif 
00135 
00136 #if !defined (ETIME) && defined (ETIMEDOUT)
00137 #  define ETIME ETIMEDOUT
00138 #endif 
00139 
00140 #if !defined (EBUSY)
00141 #  define EBUSY ETIME
00142 #endif 
00143 
00144 #if !defined (ECANCELED)
00145 #  define ECANCELED 125
00146 #endif 
00147 
00148 #ifdef __cplusplus
00149 }
00150 #endif 
00151 
00152 #include  "ace/post.h"
00153 #endif