]>
git.proxmox.com Git - rustc.git/blob - vendor/libc/src/sgx.rs
1 //! SGX C types definition
4 pub type int16_t
= i16;
5 pub type int32_t
= i32;
6 pub type int64_t
= i64;
8 pub type uint16_t
= u16;
9 pub type uint32_t
= u32;
10 pub type uint64_t
= u64;
12 pub type c_schar
= i8;
13 pub type c_uchar
= u8;
14 pub type c_short
= i16;
15 pub type c_ushort
= u16;
17 pub type c_uint
= u32;
18 pub type c_float
= f32;
19 pub type c_double
= f64;
20 pub type c_longlong
= i64;
21 pub type c_ulonglong
= u64;
22 pub type intmax_t
= i64;
23 pub type uintmax_t
= u64;
25 pub type size_t
= usize;
26 pub type ptrdiff_t
= isize;
27 pub type intptr_t
= isize;
28 pub type uintptr_t
= usize;
29 pub type ssize_t
= isize;
32 pub type c_long
= i64;
33 pub type c_ulong
= u64;
35 pub const INT_MIN
: c_int
= -2147483648;
36 pub const INT_MAX
: c_int
= 2147483647;
39 if #[cfg(libc_core_cvoid)] {
40 pub use ::ffi
::c_void
;
42 // Use repr(u8) as LLVM expects `void*` to be the same as `i8*` to help
43 // enable more optimization opportunities around it recognizing things
46 #[allow(missing_copy_implementations)]
47 #[allow(missing_debug_implementations)]
49 // Two dummy variants so the #[repr] attribute can be used.