File indexing completed on 2025-01-18 10:05:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010 #ifndef OPENSSL_E_OS2_H
0011 # define OPENSSL_E_OS2_H
0012 # pragma once
0013
0014 # include <openssl/macros.h>
0015 # ifndef OPENSSL_NO_DEPRECATED_3_0
0016 # define HEADER_E_OS2_H
0017 # endif
0018
0019 # include <openssl/opensslconf.h>
0020
0021 #ifdef __cplusplus
0022 extern "C" {
0023 #endif
0024
0025
0026
0027
0028
0029
0030
0031 # define OPENSSL_SYS_UNIX
0032
0033
0034
0035
0036
0037
0038
0039 # if defined(OPENSSL_SYS_MSDOS)
0040 # undef OPENSSL_SYS_UNIX
0041 # endif
0042
0043
0044
0045
0046
0047
0048
0049
0050
0051 # if defined(OPENSSL_SYS_UEFI)
0052 # undef OPENSSL_SYS_UNIX
0053 # elif defined(OPENSSL_SYS_UWIN)
0054 # undef OPENSSL_SYS_UNIX
0055 # define OPENSSL_SYS_WIN32_UWIN
0056 # else
0057 # if defined(__CYGWIN__) || defined(OPENSSL_SYS_CYGWIN)
0058 # define OPENSSL_SYS_WIN32_CYGWIN
0059 # else
0060 # if defined(_WIN32) || defined(OPENSSL_SYS_WIN32)
0061 # undef OPENSSL_SYS_UNIX
0062 # if !defined(OPENSSL_SYS_WIN32)
0063 # define OPENSSL_SYS_WIN32
0064 # endif
0065 # endif
0066 # if defined(_WIN64) || defined(OPENSSL_SYS_WIN64)
0067 # undef OPENSSL_SYS_UNIX
0068 # if !defined(OPENSSL_SYS_WIN64)
0069 # define OPENSSL_SYS_WIN64
0070 # endif
0071 # endif
0072 # if defined(OPENSSL_SYS_WINNT)
0073 # undef OPENSSL_SYS_UNIX
0074 # endif
0075 # if defined(OPENSSL_SYS_WINCE)
0076 # undef OPENSSL_SYS_UNIX
0077 # endif
0078 # endif
0079 # endif
0080
0081
0082 # if defined(OPENSSL_SYS_WIN32) || defined(OPENSSL_SYS_WIN64) || defined(OPENSSL_SYS_WINNT) || defined(OPENSSL_SYS_WINCE)
0083 # undef OPENSSL_SYS_UNIX
0084 # define OPENSSL_SYS_WINDOWS
0085 # ifndef OPENSSL_SYS_MSDOS
0086 # define OPENSSL_SYS_MSDOS
0087 # endif
0088 # endif
0089
0090
0091
0092
0093
0094
0095 # ifdef OPENSSL_SYS_WINDOWS
0096 # ifndef OPENSSL_OPT_WINDLL
0097 # if defined(_WINDLL)
0098
0099 # define OPENSSL_OPT_WINDLL
0100 # endif
0101 # endif
0102 # endif
0103
0104
0105 # if defined(__VMS) || defined(VMS)
0106 # if !defined(OPENSSL_SYS_VMS)
0107 # undef OPENSSL_SYS_UNIX
0108 # define OPENSSL_SYS_VMS
0109 # endif
0110 # if defined(__DECC)
0111 # define OPENSSL_SYS_VMS_DECC
0112 # elif defined(__DECCXX)
0113 # define OPENSSL_SYS_VMS_DECC
0114 # define OPENSSL_SYS_VMS_DECCXX
0115 # else
0116 # define OPENSSL_SYS_VMS_NODECC
0117 # endif
0118 # endif
0119
0120
0121 # ifdef OPENSSL_SYS_UNIX
0122 # if defined(linux) || defined(__linux__) && !defined(OPENSSL_SYS_LINUX)
0123 # define OPENSSL_SYS_LINUX
0124 # endif
0125 # if defined(_AIX) && !defined(OPENSSL_SYS_AIX)
0126 # define OPENSSL_SYS_AIX
0127 # endif
0128 # endif
0129
0130
0131 # if defined(__VOS__) && !defined(OPENSSL_SYS_VOS)
0132 # define OPENSSL_SYS_VOS
0133 # ifdef __HPPA__
0134 # define OPENSSL_SYS_VOS_HPPA
0135 # endif
0136 # ifdef __IA32__
0137 # define OPENSSL_SYS_VOS_IA32
0138 # endif
0139 # endif
0140
0141
0142 # ifdef __TANDEM
0143 # ifdef _STRING
0144 # include <strings.h>
0145 # endif
0146 # define OPENSSL_USE_BUILD_DATE
0147 # if defined(OPENSSL_THREADS) && defined(_SPT_MODEL_)
0148 # define SPT_THREAD_SIGNAL 1
0149 # define SPT_THREAD_AWARE 1
0150 # include <spthread.h>
0151 # elif defined(OPENSSL_THREADS) && defined(_PUT_MODEL_)
0152 # include <pthread.h>
0153 # endif
0154 # endif
0155
0156
0157
0158
0159
0160
0161
0162
0163
0164
0165
0166
0167
0168
0169
0170
0171
0172
0173
0174
0175
0176
0177
0178
0179 # if defined(OPENSSL_SYS_WINDOWS) && defined(OPENSSL_OPT_WINDLL)
0180 # define OPENSSL_EXPORT extern __declspec(dllexport)
0181 # define OPENSSL_EXTERN extern __declspec(dllimport)
0182 # else
0183 # define OPENSSL_EXPORT extern
0184 # define OPENSSL_EXTERN extern
0185 # endif
0186
0187 # ifdef _WIN32
0188 # ifdef _WIN64
0189 # define ossl_ssize_t __int64
0190 # define OSSL_SSIZE_MAX _I64_MAX
0191 # else
0192 # define ossl_ssize_t int
0193 # define OSSL_SSIZE_MAX INT_MAX
0194 # endif
0195 # endif
0196
0197 # if defined(OPENSSL_SYS_UEFI) && !defined(ossl_ssize_t)
0198 # define ossl_ssize_t INTN
0199 # define OSSL_SSIZE_MAX MAX_INTN
0200 # endif
0201
0202 # ifndef ossl_ssize_t
0203 # include <sys/types.h>
0204 # define ossl_ssize_t ssize_t
0205 # if defined(SSIZE_MAX)
0206 # define OSSL_SSIZE_MAX SSIZE_MAX
0207 # elif defined(_POSIX_SSIZE_MAX)
0208 # define OSSL_SSIZE_MAX _POSIX_SSIZE_MAX
0209 # else
0210 # define OSSL_SSIZE_MAX ((ssize_t)(SIZE_MAX>>1))
0211 # endif
0212 # endif
0213
0214 # if defined(UNUSEDRESULT_DEBUG)
0215 # define __owur __attribute__((__warn_unused_result__))
0216 # else
0217 # define __owur
0218 # endif
0219
0220
0221 # define OPENSSL_NO_INTTYPES_H
0222 # define OPENSSL_NO_STDINT_H
0223 # if defined(OPENSSL_SYS_UEFI)
0224 typedef INT8 int8_t;
0225 typedef UINT8 uint8_t;
0226 typedef INT16 int16_t;
0227 typedef UINT16 uint16_t;
0228 typedef INT32 int32_t;
0229 typedef UINT32 uint32_t;
0230 typedef INT64 int64_t;
0231 typedef UINT64 uint64_t;
0232 typedef UINTN uintptr_t;
0233 # elif (defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L) || \
0234 defined(__osf__) || defined(__sgi) || defined(__hpux) || \
0235 defined(OPENSSL_SYS_VMS) || defined (__OpenBSD__)
0236 # include <inttypes.h>
0237 # undef OPENSSL_NO_INTTYPES_H
0238
0239 # undef OPENSSL_NO_STDINT_H
0240 # elif defined(_MSC_VER) && _MSC_VER<1600
0241
0242
0243
0244
0245 typedef signed char int8_t;
0246 typedef unsigned char uint8_t;
0247 typedef short int16_t;
0248 typedef unsigned short uint16_t;
0249 typedef int int32_t;
0250 typedef unsigned int uint32_t;
0251 typedef __int64 int64_t;
0252 typedef unsigned __int64 uint64_t;
0253 # elif defined(OPENSSL_SYS_TANDEM)
0254 # include <stdint.h>
0255 # include <sys/types.h>
0256 # else
0257 # include <stdint.h>
0258 # undef OPENSSL_NO_STDINT_H
0259 # endif
0260 # if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L && \
0261 defined(INTMAX_MAX) && defined(UINTMAX_MAX)
0262 typedef intmax_t ossl_intmax_t;
0263 typedef uintmax_t ossl_uintmax_t;
0264 # else
0265
0266 typedef int64_t ossl_intmax_t;
0267 typedef uint64_t ossl_uintmax_t;
0268 # endif
0269
0270
0271 # if !defined(inline) && !defined(__cplusplus)
0272 # if defined(__STDC_VERSION__) && __STDC_VERSION__>=199901L
0273
0274 # define ossl_inline inline
0275 # elif defined(__GNUC__) && __GNUC__>=2
0276 # define ossl_inline __inline__
0277 # elif defined(_MSC_VER)
0278
0279
0280
0281
0282
0283 # define ossl_inline __inline
0284 # else
0285 # define ossl_inline
0286 # endif
0287 # else
0288 # define ossl_inline inline
0289 # endif
0290
0291 # if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L && \
0292 !defined(__cplusplus)
0293 # define ossl_noreturn _Noreturn
0294 # elif defined(__GNUC__) && __GNUC__ >= 2
0295 # define ossl_noreturn __attribute__((noreturn))
0296 # else
0297 # define ossl_noreturn
0298 # endif
0299
0300
0301 # if defined(__GNUC__)
0302 # define ossl_unused __attribute__((unused))
0303 # else
0304 # define ossl_unused
0305 # endif
0306
0307 #ifdef __cplusplus
0308 }
0309 #endif
0310 #endif