Go to the documentation of this file.
10 #ifndef _OE_BITS_TYPES_H
11 #define _OE_BITS_TYPES_H
22 typedef unsigned long size_t;
23 typedef signed char int8_t;
24 typedef unsigned char uint8_t;
25 typedef short int16_t;
26 typedef unsigned short uint16_t;
28 typedef unsigned int uint32_t;
30 typedef unsigned long uint64_t;
31 typedef unsigned long uintptr_t;
32 typedef long ptrdiff_t;
33 typedef long intptr_t;
35 typedef long suseconds_t;
38 typedef __WCHAR_TYPE__ wchar_t;
41 #elif defined(_MSC_VER)
42 typedef long long ssize_t;
43 typedef unsigned long long size_t;
44 typedef signed char int8_t;
45 typedef unsigned char uint8_t;
46 typedef short int16_t;
47 typedef unsigned short uint16_t;
49 typedef unsigned int uint32_t;
50 typedef long long int64_t;
51 typedef unsigned long long uint64_t;
52 typedef unsigned long long uintptr_t;
53 typedef long long ptrdiff_t;
54 typedef long long intptr_t;
55 typedef long long time_t;
56 typedef long long suseconds_t;
58 #error "unknown compiler - please adapt basic types"
68 #define OE_SCHAR_MIN (-128)
69 #define OE_SCHAR_MAX 127
70 #define OE_UCHAR_MAX 255
71 #define OE_CHAR_MIN (-128)
72 #define OE_CHAR_MAX 127
74 #define OE_SHRT_MIN (-1 - 0x7fff)
75 #define OE_SHRT_MAX 0x7fff
76 #define OE_USHRT_MAX 0xffff
77 #define OE_INT_MIN (-1 - 0x7fffffff)
78 #define OE_INT_MAX 0x7fffffff
79 #define OE_UINT_MAX 0xffffffffU
82 #define OE_LONG_MAX 0x7fffffffL
84 #define OE_LONG_MAX 0x7fffffffffffffffL
87 #define OE_LONG_MIN (-OE_LONG_MAX - 1)
88 #define OE_ULONG_MAX (2UL * OE_LONG_MAX + 1)
89 #define OE_LLONG_MAX 0x7fffffffffffffffLL
90 #define OE_LLONG_MIN (-OE_LLONG_MAX - 1)
91 #define OE_ULLONG_MAX (2ULL * OE_LLONG_MAX + 1)
93 #define OE_INT8_MIN (-1 - 0x7f)
94 #define OE_INT8_MAX (0x7f)
95 #define OE_UINT8_MAX (0xff)
96 #define OE_INT16_MIN (-1 - 0x7fff)
97 #define OE_INT16_MAX (0x7fff)
98 #define OE_UINT16_MAX (0xffff)
99 #define OE_INT32_MIN (-1 - 0x7fffffff)
100 #define OE_INT32_MAX (0x7fffffff)
101 #define OE_UINT32_MAX (0xffffffffu)
102 #define OE_INT64_MIN (-1 - 0x7fffffffffffffff)
103 #define OE_INT64_MAX (0x7fffffffffffffff)
104 #define OE_UINT64_MAX (0xffffffffffffffffu)
105 #define OE_SIZE_MAX OE_UINT64_MAX
106 #define OE_SSIZE_MAX OE_INT64_MAX
@ __OE_ENCLAVE_TYPE_MAX
Unused.
Definition: types.h:137
enum _oe_enclave_type oe_enclave_type_t
This enumeration defines values for the type parameter passed to oe_create_enclave().
@ _OE_SEAL_POLICY_MAX
Unused.
Definition: types.h:167
enum _oe_seal_policy oe_seal_policy_t
This enumeration type defines the policy used to derive a seal key.
_oe_seal_policy
This enumeration type defines the policy used to derive a seal key.
Definition: types.h:150
@ OE_ENCLAVE_TYPE_AUTO
OE_ENCLAVE_TYPE_AUTO will pick the type based on the target platform that is being built,...
Definition: types.h:122
int oe_clockid_t
This type defines a system internal clock ID.
Definition: types.h:186
struct _oe_enclave oe_enclave_t
This is an opaque handle to an enclave returned by oe_create_enclave().
Definition: types.h:144
@ OE_SEAL_POLICY_PRODUCT
Key is derived from the signer of the enclave.
Definition: types.h:163
This struct defines a datetime up to 1 second precision.
Definition: types.h:173
@ OE_SEAL_POLICY_UNIQUE
Key is derived from a measurement of the enclave.
Definition: types.h:157
@ OE_ENCLAVE_TYPE_OPTEE
OE_ENCLAVE_TYPE_OPTEE will force the platform to use OP-TEE, but any platform other than one that imp...
Definition: types.h:133
struct _oe_datetime oe_datetime_t
This struct defines a datetime up to 1 second precision.
@ OE_ENCLAVE_TYPE_SGX
OE_ENCLAVE_TYPE_SGX will force the platform to use SGX, but any platform other than x64 will not supp...
Definition: types.h:127
_oe_enclave_type
This enumeration defines values for the type parameter passed to oe_create_enclave().
Definition: types.h:115