Go to the documentation of this file.
58 #ifndef HEADER_E_OS2_H
59 #define HEADER_E_OS2_H
71 #define OPENSSL_SYS_UNIX
74 #if defined(__MWERKS__) && defined(macintosh) || defined(OPENSSL_SYSNAME_MAC)
75 # undef OPENSSL_SYS_UNIX
76 # define OPENSSL_SYS_MACINTOSH_CLASSIC
80 #if defined(NETWARE) || defined(OPENSSL_SYSNAME_NETWARE)
81 # undef OPENSSL_SYS_UNIX
82 # define OPENSSL_SYS_NETWARE
89 #if defined(OPENSSL_SYSNAME_MSDOS)
90 # undef OPENSSL_SYS_UNIX
91 # define OPENSSL_SYS_MSDOS
96 #if defined(OPENSSL_SYSNAME_UWIN)
97 # undef OPENSSL_SYS_UNIX
98 # define OPENSSL_SYS_WIN32_UWIN
100 # if defined(__CYGWIN32__) || defined(OPENSSL_SYSNAME_CYGWIN32)
101 # undef OPENSSL_SYS_UNIX
102 # define OPENSSL_SYS_WIN32_CYGWIN
104 # if defined(_WIN32) || defined(OPENSSL_SYSNAME_WIN32)
105 # undef OPENSSL_SYS_UNIX
106 # define OPENSSL_SYS_WIN32
108 # if defined(OPENSSL_SYSNAME_WINNT)
109 # undef OPENSSL_SYS_UNIX
110 # define OPENSSL_SYS_WINNT
112 # if defined(OPENSSL_SYSNAME_WINCE)
113 # undef OPENSSL_SYS_UNIX
114 # define OPENSSL_SYS_WINCE
120 #if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)
121 # undef OPENSSL_SYS_UNIX
122 # define OPENSSL_SYS_WINDOWS
123 # ifndef OPENSSL_SYS_MSDOS
124 # define OPENSSL_SYS_MSDOS
131 #ifdef OPENSSL_SYS_WINDOWS
132 # ifndef OPENSSL_OPT_WINDLL
133 # if defined(_WINDLL)
135 # define OPENSSL_OPT_WINDLL
141 #if defined(__VMS) || defined(VMS) || defined(OPENSSL_SYSNAME_VMS)
142 # undef OPENSSL_SYS_UNIX
143 # define OPENSSL_SYS_VMS
145 # define OPENSSL_SYS_VMS_DECC
146 # elif defined(__DECCXX)
147 # define OPENSSL_SYS_VMS_DECC
148 # define OPENSSL_SYS_VMS_DECCXX
150 # define OPENSSL_SYS_VMS_NODECC
155 #if defined(__EMX__) || defined(__OS2__)
156 # undef OPENSSL_SYS_UNIX
157 # define OPENSSL_SYS_OS2
161 #ifdef OPENSSL_SYS_UNIX
162 # if defined(linux) || defined(__linux__) || defined(OPENSSL_SYSNAME_LINUX)
163 # define OPENSSL_SYS_LINUX
165 # ifdef OPENSSL_SYSNAME_MPE
166 # define OPENSSL_SYS_MPE
168 # ifdef OPENSSL_SYSNAME_SNI
169 # define OPENSSL_SYS_SNI
171 # ifdef OPENSSL_SYSNAME_ULTRASPARC
172 # define OPENSSL_SYS_ULTRASPARC
174 # ifdef OPENSSL_SYSNAME_NEWS4
175 # define OPENSSL_SYS_NEWS4
177 # ifdef OPENSSL_SYSNAME_MACOSX
178 # define OPENSSL_SYS_MACOSX
180 # ifdef OPENSSL_SYSNAME_MACOSX_RHAPSODY
181 # define OPENSSL_SYS_MACOSX_RHAPSODY
182 # define OPENSSL_SYS_MACOSX
184 # ifdef OPENSSL_SYSNAME_SUNOS
185 # define OPENSSL_SYS_SUNOS
187 # if defined(_CRAY) || defined(OPENSSL_SYSNAME_CRAY)
188 # define OPENSSL_SYS_CRAY
190 # if defined(_AIX) || defined(OPENSSL_SYSNAME_AIX)
191 # define OPENSSL_SYS_AIX
196 #if defined(__VOS__) || defined(OPENSSL_SYSNAME_VOS)
197 # define OPENSSL_SYS_VOS
199 # define OPENSSL_SYS_VOS_HPPA
202 # define OPENSSL_SYS_VOS_IA32
207 #ifdef OPENSSL_SYSNAME_VXWORKS
208 # define OPENSSL_SYS_VXWORKS
212 #if defined(__BEOS__)
213 # define OPENSSL_SYS_BEOS
214 # include <sys/socket.h>
215 # if defined(BONE_VERSION)
216 # define OPENSSL_SYS_BEOS_BONE
218 # define OPENSSL_SYS_BEOS_R5
228 #ifdef OPENSSL_SYS_MSDOS
229 # define OPENSSL_UNISTD_IO <io.h>
230 # define OPENSSL_DECLARE_EXIT extern void exit(int);
232 # define OPENSSL_UNISTD_IO OPENSSL_UNISTD
233 # define OPENSSL_DECLARE_EXIT
255 #if defined(OPENSSL_SYS_VMS_NODECC)
256 # define OPENSSL_EXPORT globalref
257 # define OPENSSL_IMPORT globalref
258 # define OPENSSL_GLOBAL globaldef
259 #elif defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL)
260 # define OPENSSL_EXPORT extern __declspec(dllexport)
261 # define OPENSSL_IMPORT extern __declspec(dllimport)
262 # define OPENSSL_GLOBAL
264 # define OPENSSL_EXPORT extern
265 # define OPENSSL_IMPORT extern
266 # define OPENSSL_GLOBAL
268 #define OPENSSL_EXTERN OPENSSL_IMPORT
280 #ifdef OPENSSL_EXPORT_VAR_AS_FUNCTION
281 # define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) \
282 type *_shadow_##name(void) \
283 { static type _hide_##name=value; return &_hide_##name; }
284 # define OPENSSL_DECLARE_GLOBAL(type,name) type *_shadow_##name(void)
285 # define OPENSSL_GLOBAL_REF(name) (*(_shadow_##name()))
287 # define OPENSSL_IMPLEMENT_GLOBAL(type,name,value) OPENSSL_GLOBAL type _shadow_##name=value;
288 # define OPENSSL_DECLARE_GLOBAL(type,name) OPENSSL_EXPORT type _shadow_##name
289 # define OPENSSL_GLOBAL_REF(name) _shadow_##name
292 #if defined(OPENSSL_SYS_MACINTOSH_CLASSIC) && macintosh==1 && !defined(MAC_OS_GUSI_SOURCE)
293 # define ossl_ssize_t long
296 #ifdef OPENSSL_SYS_MSDOS
297 # define ossl_ssize_t long
300 #if defined(NeXT) || defined(OPENSSL_SYS_NEWS4) || defined(OPENSSL_SYS_SUNOS)
304 #if defined(__ultrix) && !defined(ssize_t)
305 # define ossl_ssize_t int
309 # define ossl_ssize_t ssize_t