From 93bb6ba0ae13b0d92e6cdcf2b8ac0b2460ebd89b Mon Sep 17 00:00:00 2001 From: Gowtham Suresh Kumar Date: Fri, 6 Oct 2023 14:17:44 +0100 Subject: [PATCH] Update darwin bindings The new bindings have been generated using bindgen 0.66.1 and against tpm2-tss 2.4.6 version. Signed-off-by: Gowtham Suresh Kumar --- .../src/bindings/x86_64-unknown-darwin.rs | 966 ++++-------------- 1 file changed, 214 insertions(+), 752 deletions(-) diff --git a/tss-esapi-sys/src/bindings/x86_64-unknown-darwin.rs b/tss-esapi-sys/src/bindings/x86_64-unknown-darwin.rs index 16019d9a..ddc229b4 100644 --- a/tss-esapi-sys/src/bindings/x86_64-unknown-darwin.rs +++ b/tss-esapi-sys/src/bindings/x86_64-unknown-darwin.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.63.0 */ +/* automatically generated by rust-bindgen 0.66.1 */ #[repr(C)] #[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)] @@ -88,9 +88,9 @@ pub const __DARWIN_UNIX03: u32 = 1; pub const __DARWIN_64_BIT_INO_T: u32 = 1; pub const __DARWIN_VERS_1050: u32 = 1; pub const __DARWIN_NON_CANCELABLE: u32 = 0; -pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9usize] = b"$INODE64\0"; -pub const __DARWIN_SUF_1050: &[u8; 6usize] = b"$1050\0"; -pub const __DARWIN_SUF_EXTSN: &[u8; 14usize] = b"$DARWIN_EXTSN\0"; +pub const __DARWIN_SUF_64_BIT_INO_T: &[u8; 9] = b"$INODE64\0"; +pub const __DARWIN_SUF_1050: &[u8; 6] = b"$1050\0"; +pub const __DARWIN_SUF_EXTSN: &[u8; 14] = b"$DARWIN_EXTSN\0"; pub const __DARWIN_C_ANSI: u32 = 4096; pub const __DARWIN_C_FULL: u32 = 900000; pub const __DARWIN_C_LEVEL: u32 = 900000; @@ -99,7 +99,6 @@ pub const __DARWIN_NO_LONG_LONG: u32 = 0; pub const _DARWIN_FEATURE_64_BIT_INODE: u32 = 1; pub const _DARWIN_FEATURE_ONLY_UNIX_CONFORMANCE: u32 = 1; pub const _DARWIN_FEATURE_UNIX_CONFORMANCE: u32 = 3; -pub const __has_ptrcheck: u32 = 0; pub const __PTHREAD_SIZE__: u32 = 8176; pub const __PTHREAD_ATTR_SIZE__: u32 = 56; pub const __PTHREAD_MUTEXATTR_SIZE__: u32 = 8; @@ -182,6 +181,30 @@ pub const TSS2_BASE_RC_BAD_TR: u32 = 24; pub const TSS2_BASE_RC_MULTIPLE_DECRYPT_SESSIONS: u32 = 25; pub const TSS2_BASE_RC_MULTIPLE_ENCRYPT_SESSIONS: u32 = 26; pub const TSS2_BASE_RC_RSP_AUTH_FAILED: u32 = 27; +pub const TSS2_BASE_RC_NO_CONFIG: u32 = 28; +pub const TSS2_BASE_RC_BAD_PATH: u32 = 29; +pub const TSS2_BASE_RC_NOT_DELETABLE: u32 = 30; +pub const TSS2_BASE_RC_PATH_ALREADY_EXISTS: u32 = 31; +pub const TSS2_BASE_RC_KEY_NOT_FOUND: u32 = 32; +pub const TSS2_BASE_RC_SIGNATURE_VERIFICATION_FAILED: u32 = 33; +pub const TSS2_BASE_RC_HASH_MISMATCH: u32 = 34; +pub const TSS2_BASE_RC_KEY_NOT_DUPLICABLE: u32 = 35; +pub const TSS2_BASE_RC_PATH_NOT_FOUND: u32 = 36; +pub const TSS2_BASE_RC_NO_CERT: u32 = 37; +pub const TSS2_BASE_RC_NO_PCR: u32 = 38; +pub const TSS2_BASE_RC_PCR_NOT_RESETTABLE: u32 = 39; +pub const TSS2_BASE_RC_BAD_TEMPLATE: u32 = 40; +pub const TSS2_BASE_RC_AUTHORIZATION_FAILED: u32 = 41; +pub const TSS2_BASE_RC_AUTHORIZATION_UNKNOWN: u32 = 42; +pub const TSS2_BASE_RC_NV_NOT_READABLE: u32 = 43; +pub const TSS2_BASE_RC_NV_TOO_SMALL: u32 = 44; +pub const TSS2_BASE_RC_NV_NOT_WRITEABLE: u32 = 45; +pub const TSS2_BASE_RC_POLICY_UNKNOWN: u32 = 46; +pub const TSS2_BASE_RC_NV_WRONG_TYPE: u32 = 47; +pub const TSS2_BASE_RC_NAME_ALREADY_EXISTS: u32 = 48; +pub const TSS2_BASE_RC_NO_TPM: u32 = 49; +pub const TSS2_BASE_RC_BAD_KEY: u32 = 50; +pub const TSS2_BASE_RC_NO_HANDLE: u32 = 51; pub const TSS2_LAYER_IMPLEMENTATION_SPECIFIC_OFFSET: u32 = 63488; pub const TSS2_LEVEL_IMPLEMENTATION_SPECIFIC_SHIFT: u32 = 11; pub const TPM2_MAX_COMMAND_SIZE: u32 = 4096; @@ -234,7 +257,7 @@ pub const POLLNVAL: u32 = 32; pub const POLLSTANDARD: u32 = 511; pub const TSS2_TCTI_TIMEOUT_BLOCK: i32 = -1; pub const TSS2_TCTI_TIMEOUT_NONE: u32 = 0; -pub const TSS2_TCTI_INFO_SYMBOL: &[u8; 15usize] = b"Tss2_Tcti_Info\0"; +pub const TSS2_TCTI_INFO_SYMBOL: &[u8; 15] = b"Tss2_Tcti_Info\0"; pub const TSS2_SYS_MAX_SESSIONS: u32 = 3; pub const ESYS_TR_NONE: u32 = 4095; pub const ESYS_TR_PASSWORD: u32 = 255; @@ -278,172 +301,166 @@ pub const ESYS_TR_RH_PLATFORM: u32 = 268; pub const ESYS_TR_RH_PLATFORM_NV: u32 = 269; pub const ESYS_TR_RH_AUTH_FIRST: u32 = 272; pub const ESYS_TR_MIN_OBJECT: u32 = 4096; -pub const __PRI_8_LENGTH_MODIFIER__: &[u8; 3usize] = b"hh\0"; -pub const __PRI_64_LENGTH_MODIFIER__: &[u8; 3usize] = b"ll\0"; -pub const __SCN_64_LENGTH_MODIFIER__: &[u8; 3usize] = b"ll\0"; -pub const __PRI_MAX_LENGTH_MODIFIER__: &[u8; 2usize] = b"j\0"; -pub const __SCN_MAX_LENGTH_MODIFIER__: &[u8; 2usize] = b"j\0"; -pub const PRId8: &[u8; 4usize] = b"hhd\0"; -pub const PRIi8: &[u8; 4usize] = b"hhi\0"; -pub const PRIo8: &[u8; 4usize] = b"hho\0"; -pub const PRIu8: &[u8; 4usize] = b"hhu\0"; -pub const PRIx8: &[u8; 4usize] = b"hhx\0"; -pub const PRIX8: &[u8; 4usize] = b"hhX\0"; -pub const PRId16: &[u8; 3usize] = b"hd\0"; -pub const PRIi16: &[u8; 3usize] = b"hi\0"; -pub const PRIo16: &[u8; 3usize] = b"ho\0"; -pub const PRIu16: &[u8; 3usize] = b"hu\0"; -pub const PRIx16: &[u8; 3usize] = b"hx\0"; -pub const PRIX16: &[u8; 3usize] = b"hX\0"; -pub const PRId32: &[u8; 2usize] = b"d\0"; -pub const PRIi32: &[u8; 2usize] = b"i\0"; -pub const PRIo32: &[u8; 2usize] = b"o\0"; -pub const PRIu32: &[u8; 2usize] = b"u\0"; -pub const PRIx32: &[u8; 2usize] = b"x\0"; -pub const PRIX32: &[u8; 2usize] = b"X\0"; -pub const PRId64: &[u8; 4usize] = b"lld\0"; -pub const PRIi64: &[u8; 4usize] = b"lli\0"; -pub const PRIo64: &[u8; 4usize] = b"llo\0"; -pub const PRIu64: &[u8; 4usize] = b"llu\0"; -pub const PRIx64: &[u8; 4usize] = b"llx\0"; -pub const PRIX64: &[u8; 4usize] = b"llX\0"; -pub const PRIdLEAST8: &[u8; 4usize] = b"hhd\0"; -pub const PRIiLEAST8: &[u8; 4usize] = b"hhi\0"; -pub const PRIoLEAST8: &[u8; 4usize] = b"hho\0"; -pub const PRIuLEAST8: &[u8; 4usize] = b"hhu\0"; -pub const PRIxLEAST8: &[u8; 4usize] = b"hhx\0"; -pub const PRIXLEAST8: &[u8; 4usize] = b"hhX\0"; -pub const PRIdLEAST16: &[u8; 3usize] = b"hd\0"; -pub const PRIiLEAST16: &[u8; 3usize] = b"hi\0"; -pub const PRIoLEAST16: &[u8; 3usize] = b"ho\0"; -pub const PRIuLEAST16: &[u8; 3usize] = b"hu\0"; -pub const PRIxLEAST16: &[u8; 3usize] = b"hx\0"; -pub const PRIXLEAST16: &[u8; 3usize] = b"hX\0"; -pub const PRIdLEAST32: &[u8; 2usize] = b"d\0"; -pub const PRIiLEAST32: &[u8; 2usize] = b"i\0"; -pub const PRIoLEAST32: &[u8; 2usize] = b"o\0"; -pub const PRIuLEAST32: &[u8; 2usize] = b"u\0"; -pub const PRIxLEAST32: &[u8; 2usize] = b"x\0"; -pub const PRIXLEAST32: &[u8; 2usize] = b"X\0"; -pub const PRIdLEAST64: &[u8; 4usize] = b"lld\0"; -pub const PRIiLEAST64: &[u8; 4usize] = b"lli\0"; -pub const PRIoLEAST64: &[u8; 4usize] = b"llo\0"; -pub const PRIuLEAST64: &[u8; 4usize] = b"llu\0"; -pub const PRIxLEAST64: &[u8; 4usize] = b"llx\0"; -pub const PRIXLEAST64: &[u8; 4usize] = b"llX\0"; -pub const PRIdFAST8: &[u8; 4usize] = b"hhd\0"; -pub const PRIiFAST8: &[u8; 4usize] = b"hhi\0"; -pub const PRIoFAST8: &[u8; 4usize] = b"hho\0"; -pub const PRIuFAST8: &[u8; 4usize] = b"hhu\0"; -pub const PRIxFAST8: &[u8; 4usize] = b"hhx\0"; -pub const PRIXFAST8: &[u8; 4usize] = b"hhX\0"; -pub const PRIdFAST16: &[u8; 3usize] = b"hd\0"; -pub const PRIiFAST16: &[u8; 3usize] = b"hi\0"; -pub const PRIoFAST16: &[u8; 3usize] = b"ho\0"; -pub const PRIuFAST16: &[u8; 3usize] = b"hu\0"; -pub const PRIxFAST16: &[u8; 3usize] = b"hx\0"; -pub const PRIXFAST16: &[u8; 3usize] = b"hX\0"; -pub const PRIdFAST32: &[u8; 2usize] = b"d\0"; -pub const PRIiFAST32: &[u8; 2usize] = b"i\0"; -pub const PRIoFAST32: &[u8; 2usize] = b"o\0"; -pub const PRIuFAST32: &[u8; 2usize] = b"u\0"; -pub const PRIxFAST32: &[u8; 2usize] = b"x\0"; -pub const PRIXFAST32: &[u8; 2usize] = b"X\0"; -pub const PRIdFAST64: &[u8; 4usize] = b"lld\0"; -pub const PRIiFAST64: &[u8; 4usize] = b"lli\0"; -pub const PRIoFAST64: &[u8; 4usize] = b"llo\0"; -pub const PRIuFAST64: &[u8; 4usize] = b"llu\0"; -pub const PRIxFAST64: &[u8; 4usize] = b"llx\0"; -pub const PRIXFAST64: &[u8; 4usize] = b"llX\0"; -pub const PRIdPTR: &[u8; 3usize] = b"ld\0"; -pub const PRIiPTR: &[u8; 3usize] = b"li\0"; -pub const PRIoPTR: &[u8; 3usize] = b"lo\0"; -pub const PRIuPTR: &[u8; 3usize] = b"lu\0"; -pub const PRIxPTR: &[u8; 3usize] = b"lx\0"; -pub const PRIXPTR: &[u8; 3usize] = b"lX\0"; -pub const PRIdMAX: &[u8; 3usize] = b"jd\0"; -pub const PRIiMAX: &[u8; 3usize] = b"ji\0"; -pub const PRIoMAX: &[u8; 3usize] = b"jo\0"; -pub const PRIuMAX: &[u8; 3usize] = b"ju\0"; -pub const PRIxMAX: &[u8; 3usize] = b"jx\0"; -pub const PRIXMAX: &[u8; 3usize] = b"jX\0"; -pub const SCNd8: &[u8; 4usize] = b"hhd\0"; -pub const SCNi8: &[u8; 4usize] = b"hhi\0"; -pub const SCNo8: &[u8; 4usize] = b"hho\0"; -pub const SCNu8: &[u8; 4usize] = b"hhu\0"; -pub const SCNx8: &[u8; 4usize] = b"hhx\0"; -pub const SCNd16: &[u8; 3usize] = b"hd\0"; -pub const SCNi16: &[u8; 3usize] = b"hi\0"; -pub const SCNo16: &[u8; 3usize] = b"ho\0"; -pub const SCNu16: &[u8; 3usize] = b"hu\0"; -pub const SCNx16: &[u8; 3usize] = b"hx\0"; -pub const SCNd32: &[u8; 2usize] = b"d\0"; -pub const SCNi32: &[u8; 2usize] = b"i\0"; -pub const SCNo32: &[u8; 2usize] = b"o\0"; -pub const SCNu32: &[u8; 2usize] = b"u\0"; -pub const SCNx32: &[u8; 2usize] = b"x\0"; -pub const SCNd64: &[u8; 4usize] = b"lld\0"; -pub const SCNi64: &[u8; 4usize] = b"lli\0"; -pub const SCNo64: &[u8; 4usize] = b"llo\0"; -pub const SCNu64: &[u8; 4usize] = b"llu\0"; -pub const SCNx64: &[u8; 4usize] = b"llx\0"; -pub const SCNdLEAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNiLEAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNoLEAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNuLEAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNxLEAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNdLEAST16: &[u8; 3usize] = b"hd\0"; -pub const SCNiLEAST16: &[u8; 3usize] = b"hi\0"; -pub const SCNoLEAST16: &[u8; 3usize] = b"ho\0"; -pub const SCNuLEAST16: &[u8; 3usize] = b"hu\0"; -pub const SCNxLEAST16: &[u8; 3usize] = b"hx\0"; -pub const SCNdLEAST32: &[u8; 2usize] = b"d\0"; -pub const SCNiLEAST32: &[u8; 2usize] = b"i\0"; -pub const SCNoLEAST32: &[u8; 2usize] = b"o\0"; -pub const SCNuLEAST32: &[u8; 2usize] = b"u\0"; -pub const SCNxLEAST32: &[u8; 2usize] = b"x\0"; -pub const SCNdLEAST64: &[u8; 4usize] = b"lld\0"; -pub const SCNiLEAST64: &[u8; 4usize] = b"lli\0"; -pub const SCNoLEAST64: &[u8; 4usize] = b"llo\0"; -pub const SCNuLEAST64: &[u8; 4usize] = b"llu\0"; -pub const SCNxLEAST64: &[u8; 4usize] = b"llx\0"; -pub const SCNdFAST8: &[u8; 4usize] = b"hhd\0"; -pub const SCNiFAST8: &[u8; 4usize] = b"hhi\0"; -pub const SCNoFAST8: &[u8; 4usize] = b"hho\0"; -pub const SCNuFAST8: &[u8; 4usize] = b"hhu\0"; -pub const SCNxFAST8: &[u8; 4usize] = b"hhx\0"; -pub const SCNdFAST16: &[u8; 3usize] = b"hd\0"; -pub const SCNiFAST16: &[u8; 3usize] = b"hi\0"; -pub const SCNoFAST16: &[u8; 3usize] = b"ho\0"; -pub const SCNuFAST16: &[u8; 3usize] = b"hu\0"; -pub const SCNxFAST16: &[u8; 3usize] = b"hx\0"; -pub const SCNdFAST32: &[u8; 2usize] = b"d\0"; -pub const SCNiFAST32: &[u8; 2usize] = b"i\0"; -pub const SCNoFAST32: &[u8; 2usize] = b"o\0"; -pub const SCNuFAST32: &[u8; 2usize] = b"u\0"; -pub const SCNxFAST32: &[u8; 2usize] = b"x\0"; -pub const SCNdFAST64: &[u8; 4usize] = b"lld\0"; -pub const SCNiFAST64: &[u8; 4usize] = b"lli\0"; -pub const SCNoFAST64: &[u8; 4usize] = b"llo\0"; -pub const SCNuFAST64: &[u8; 4usize] = b"llu\0"; -pub const SCNxFAST64: &[u8; 4usize] = b"llx\0"; -pub const SCNdPTR: &[u8; 3usize] = b"ld\0"; -pub const SCNiPTR: &[u8; 3usize] = b"li\0"; -pub const SCNoPTR: &[u8; 3usize] = b"lo\0"; -pub const SCNuPTR: &[u8; 3usize] = b"lu\0"; -pub const SCNxPTR: &[u8; 3usize] = b"lx\0"; -pub const SCNdMAX: &[u8; 3usize] = b"jd\0"; -pub const SCNiMAX: &[u8; 3usize] = b"ji\0"; -pub const SCNoMAX: &[u8; 3usize] = b"jo\0"; -pub const SCNuMAX: &[u8; 3usize] = b"ju\0"; -pub const SCNxMAX: &[u8; 3usize] = b"jx\0"; +pub const __PRI_8_LENGTH_MODIFIER__: &[u8; 3] = b"hh\0"; +pub const __PRI_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0"; +pub const __SCN_64_LENGTH_MODIFIER__: &[u8; 3] = b"ll\0"; +pub const __PRI_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0"; +pub const __SCN_MAX_LENGTH_MODIFIER__: &[u8; 2] = b"j\0"; +pub const PRId8: &[u8; 4] = b"hhd\0"; +pub const PRIi8: &[u8; 4] = b"hhi\0"; +pub const PRIo8: &[u8; 4] = b"hho\0"; +pub const PRIu8: &[u8; 4] = b"hhu\0"; +pub const PRIx8: &[u8; 4] = b"hhx\0"; +pub const PRIX8: &[u8; 4] = b"hhX\0"; +pub const PRId16: &[u8; 3] = b"hd\0"; +pub const PRIi16: &[u8; 3] = b"hi\0"; +pub const PRIo16: &[u8; 3] = b"ho\0"; +pub const PRIu16: &[u8; 3] = b"hu\0"; +pub const PRIx16: &[u8; 3] = b"hx\0"; +pub const PRIX16: &[u8; 3] = b"hX\0"; +pub const PRId32: &[u8; 2] = b"d\0"; +pub const PRIi32: &[u8; 2] = b"i\0"; +pub const PRIo32: &[u8; 2] = b"o\0"; +pub const PRIu32: &[u8; 2] = b"u\0"; +pub const PRIx32: &[u8; 2] = b"x\0"; +pub const PRIX32: &[u8; 2] = b"X\0"; +pub const PRId64: &[u8; 4] = b"lld\0"; +pub const PRIi64: &[u8; 4] = b"lli\0"; +pub const PRIo64: &[u8; 4] = b"llo\0"; +pub const PRIu64: &[u8; 4] = b"llu\0"; +pub const PRIx64: &[u8; 4] = b"llx\0"; +pub const PRIX64: &[u8; 4] = b"llX\0"; +pub const PRIdLEAST8: &[u8; 4] = b"hhd\0"; +pub const PRIiLEAST8: &[u8; 4] = b"hhi\0"; +pub const PRIoLEAST8: &[u8; 4] = b"hho\0"; +pub const PRIuLEAST8: &[u8; 4] = b"hhu\0"; +pub const PRIxLEAST8: &[u8; 4] = b"hhx\0"; +pub const PRIXLEAST8: &[u8; 4] = b"hhX\0"; +pub const PRIdLEAST16: &[u8; 3] = b"hd\0"; +pub const PRIiLEAST16: &[u8; 3] = b"hi\0"; +pub const PRIoLEAST16: &[u8; 3] = b"ho\0"; +pub const PRIuLEAST16: &[u8; 3] = b"hu\0"; +pub const PRIxLEAST16: &[u8; 3] = b"hx\0"; +pub const PRIXLEAST16: &[u8; 3] = b"hX\0"; +pub const PRIdLEAST32: &[u8; 2] = b"d\0"; +pub const PRIiLEAST32: &[u8; 2] = b"i\0"; +pub const PRIoLEAST32: &[u8; 2] = b"o\0"; +pub const PRIuLEAST32: &[u8; 2] = b"u\0"; +pub const PRIxLEAST32: &[u8; 2] = b"x\0"; +pub const PRIXLEAST32: &[u8; 2] = b"X\0"; +pub const PRIdLEAST64: &[u8; 4] = b"lld\0"; +pub const PRIiLEAST64: &[u8; 4] = b"lli\0"; +pub const PRIoLEAST64: &[u8; 4] = b"llo\0"; +pub const PRIuLEAST64: &[u8; 4] = b"llu\0"; +pub const PRIxLEAST64: &[u8; 4] = b"llx\0"; +pub const PRIXLEAST64: &[u8; 4] = b"llX\0"; +pub const PRIdFAST8: &[u8; 4] = b"hhd\0"; +pub const PRIiFAST8: &[u8; 4] = b"hhi\0"; +pub const PRIoFAST8: &[u8; 4] = b"hho\0"; +pub const PRIuFAST8: &[u8; 4] = b"hhu\0"; +pub const PRIxFAST8: &[u8; 4] = b"hhx\0"; +pub const PRIXFAST8: &[u8; 4] = b"hhX\0"; +pub const PRIdFAST16: &[u8; 3] = b"hd\0"; +pub const PRIiFAST16: &[u8; 3] = b"hi\0"; +pub const PRIoFAST16: &[u8; 3] = b"ho\0"; +pub const PRIuFAST16: &[u8; 3] = b"hu\0"; +pub const PRIxFAST16: &[u8; 3] = b"hx\0"; +pub const PRIXFAST16: &[u8; 3] = b"hX\0"; +pub const PRIdFAST32: &[u8; 2] = b"d\0"; +pub const PRIiFAST32: &[u8; 2] = b"i\0"; +pub const PRIoFAST32: &[u8; 2] = b"o\0"; +pub const PRIuFAST32: &[u8; 2] = b"u\0"; +pub const PRIxFAST32: &[u8; 2] = b"x\0"; +pub const PRIXFAST32: &[u8; 2] = b"X\0"; +pub const PRIdFAST64: &[u8; 4] = b"lld\0"; +pub const PRIiFAST64: &[u8; 4] = b"lli\0"; +pub const PRIoFAST64: &[u8; 4] = b"llo\0"; +pub const PRIuFAST64: &[u8; 4] = b"llu\0"; +pub const PRIxFAST64: &[u8; 4] = b"llx\0"; +pub const PRIXFAST64: &[u8; 4] = b"llX\0"; +pub const PRIdPTR: &[u8; 3] = b"ld\0"; +pub const PRIiPTR: &[u8; 3] = b"li\0"; +pub const PRIoPTR: &[u8; 3] = b"lo\0"; +pub const PRIuPTR: &[u8; 3] = b"lu\0"; +pub const PRIxPTR: &[u8; 3] = b"lx\0"; +pub const PRIXPTR: &[u8; 3] = b"lX\0"; +pub const PRIdMAX: &[u8; 3] = b"jd\0"; +pub const PRIiMAX: &[u8; 3] = b"ji\0"; +pub const PRIoMAX: &[u8; 3] = b"jo\0"; +pub const PRIuMAX: &[u8; 3] = b"ju\0"; +pub const PRIxMAX: &[u8; 3] = b"jx\0"; +pub const PRIXMAX: &[u8; 3] = b"jX\0"; +pub const SCNd8: &[u8; 4] = b"hhd\0"; +pub const SCNi8: &[u8; 4] = b"hhi\0"; +pub const SCNo8: &[u8; 4] = b"hho\0"; +pub const SCNu8: &[u8; 4] = b"hhu\0"; +pub const SCNx8: &[u8; 4] = b"hhx\0"; +pub const SCNd16: &[u8; 3] = b"hd\0"; +pub const SCNi16: &[u8; 3] = b"hi\0"; +pub const SCNo16: &[u8; 3] = b"ho\0"; +pub const SCNu16: &[u8; 3] = b"hu\0"; +pub const SCNx16: &[u8; 3] = b"hx\0"; +pub const SCNd32: &[u8; 2] = b"d\0"; +pub const SCNi32: &[u8; 2] = b"i\0"; +pub const SCNo32: &[u8; 2] = b"o\0"; +pub const SCNu32: &[u8; 2] = b"u\0"; +pub const SCNx32: &[u8; 2] = b"x\0"; +pub const SCNd64: &[u8; 4] = b"lld\0"; +pub const SCNi64: &[u8; 4] = b"lli\0"; +pub const SCNo64: &[u8; 4] = b"llo\0"; +pub const SCNu64: &[u8; 4] = b"llu\0"; +pub const SCNx64: &[u8; 4] = b"llx\0"; +pub const SCNdLEAST8: &[u8; 4] = b"hhd\0"; +pub const SCNiLEAST8: &[u8; 4] = b"hhi\0"; +pub const SCNoLEAST8: &[u8; 4] = b"hho\0"; +pub const SCNuLEAST8: &[u8; 4] = b"hhu\0"; +pub const SCNxLEAST8: &[u8; 4] = b"hhx\0"; +pub const SCNdLEAST16: &[u8; 3] = b"hd\0"; +pub const SCNiLEAST16: &[u8; 3] = b"hi\0"; +pub const SCNoLEAST16: &[u8; 3] = b"ho\0"; +pub const SCNuLEAST16: &[u8; 3] = b"hu\0"; +pub const SCNxLEAST16: &[u8; 3] = b"hx\0"; +pub const SCNdLEAST32: &[u8; 2] = b"d\0"; +pub const SCNiLEAST32: &[u8; 2] = b"i\0"; +pub const SCNoLEAST32: &[u8; 2] = b"o\0"; +pub const SCNuLEAST32: &[u8; 2] = b"u\0"; +pub const SCNxLEAST32: &[u8; 2] = b"x\0"; +pub const SCNdLEAST64: &[u8; 4] = b"lld\0"; +pub const SCNiLEAST64: &[u8; 4] = b"lli\0"; +pub const SCNoLEAST64: &[u8; 4] = b"llo\0"; +pub const SCNuLEAST64: &[u8; 4] = b"llu\0"; +pub const SCNxLEAST64: &[u8; 4] = b"llx\0"; +pub const SCNdFAST8: &[u8; 4] = b"hhd\0"; +pub const SCNiFAST8: &[u8; 4] = b"hhi\0"; +pub const SCNoFAST8: &[u8; 4] = b"hho\0"; +pub const SCNuFAST8: &[u8; 4] = b"hhu\0"; +pub const SCNxFAST8: &[u8; 4] = b"hhx\0"; +pub const SCNdFAST16: &[u8; 3] = b"hd\0"; +pub const SCNiFAST16: &[u8; 3] = b"hi\0"; +pub const SCNoFAST16: &[u8; 3] = b"ho\0"; +pub const SCNuFAST16: &[u8; 3] = b"hu\0"; +pub const SCNxFAST16: &[u8; 3] = b"hx\0"; +pub const SCNdFAST32: &[u8; 2] = b"d\0"; +pub const SCNiFAST32: &[u8; 2] = b"i\0"; +pub const SCNoFAST32: &[u8; 2] = b"o\0"; +pub const SCNuFAST32: &[u8; 2] = b"u\0"; +pub const SCNxFAST32: &[u8; 2] = b"x\0"; +pub const SCNdFAST64: &[u8; 4] = b"lld\0"; +pub const SCNiFAST64: &[u8; 4] = b"lli\0"; +pub const SCNoFAST64: &[u8; 4] = b"llo\0"; +pub const SCNuFAST64: &[u8; 4] = b"llu\0"; +pub const SCNxFAST64: &[u8; 4] = b"llx\0"; +pub const SCNdPTR: &[u8; 3] = b"ld\0"; +pub const SCNiPTR: &[u8; 3] = b"li\0"; +pub const SCNoPTR: &[u8; 3] = b"lo\0"; +pub const SCNuPTR: &[u8; 3] = b"lu\0"; +pub const SCNxPTR: &[u8; 3] = b"lx\0"; +pub const SCNdMAX: &[u8; 3] = b"jd\0"; +pub const SCNiMAX: &[u8; 3] = b"ji\0"; +pub const SCNoMAX: &[u8; 3] = b"jo\0"; +pub const SCNuMAX: &[u8; 3] = b"ju\0"; +pub const SCNxMAX: &[u8; 3] = b"jx\0"; pub const __API_TO_BE_DEPRECATED: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_MACOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_IOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_TVOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_WATCHOS: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_MACCATALYST: u32 = 100000; -pub const __API_TO_BE_DEPRECATED_DRIVERKIT: u32 = 100000; pub const __MAC_10_0: u32 = 1000; pub const __MAC_10_1: u32 = 1010; pub const __MAC_10_2: u32 = 1020; @@ -479,16 +496,6 @@ pub const __MAC_10_15_4: u32 = 101504; pub const __MAC_10_16: u32 = 101600; pub const __MAC_11_0: u32 = 110000; pub const __MAC_11_1: u32 = 110100; -pub const __MAC_11_3: u32 = 110300; -pub const __MAC_11_4: u32 = 110400; -pub const __MAC_11_5: u32 = 110500; -pub const __MAC_11_6: u32 = 110600; -pub const __MAC_12_0: u32 = 120000; -pub const __MAC_12_1: u32 = 120100; -pub const __MAC_12_2: u32 = 120200; -pub const __MAC_12_3: u32 = 120300; -pub const __MAC_13_0: u32 = 130000; -pub const __MAC_13_1: u32 = 130100; pub const __IPHONE_2_0: u32 = 20000; pub const __IPHONE_2_1: u32 = 20100; pub const __IPHONE_2_2: u32 = 20200; @@ -540,18 +547,6 @@ pub const __IPHONE_14_0: u32 = 140000; pub const __IPHONE_14_1: u32 = 140100; pub const __IPHONE_14_2: u32 = 140200; pub const __IPHONE_14_3: u32 = 140300; -pub const __IPHONE_14_5: u32 = 140500; -pub const __IPHONE_14_6: u32 = 140600; -pub const __IPHONE_14_7: u32 = 140700; -pub const __IPHONE_14_8: u32 = 140800; -pub const __IPHONE_15_0: u32 = 150000; -pub const __IPHONE_15_1: u32 = 150100; -pub const __IPHONE_15_2: u32 = 150200; -pub const __IPHONE_15_3: u32 = 150300; -pub const __IPHONE_15_4: u32 = 150400; -pub const __IPHONE_16_0: u32 = 160000; -pub const __IPHONE_16_1: u32 = 160100; -pub const __IPHONE_16_2: u32 = 160200; pub const __TVOS_9_0: u32 = 90000; pub const __TVOS_9_1: u32 = 90100; pub const __TVOS_9_2: u32 = 90200; @@ -577,17 +572,6 @@ pub const __TVOS_14_0: u32 = 140000; pub const __TVOS_14_1: u32 = 140100; pub const __TVOS_14_2: u32 = 140200; pub const __TVOS_14_3: u32 = 140300; -pub const __TVOS_14_5: u32 = 140500; -pub const __TVOS_14_6: u32 = 140600; -pub const __TVOS_14_7: u32 = 140700; -pub const __TVOS_15_0: u32 = 150000; -pub const __TVOS_15_1: u32 = 150100; -pub const __TVOS_15_2: u32 = 150200; -pub const __TVOS_15_3: u32 = 150300; -pub const __TVOS_15_4: u32 = 150400; -pub const __TVOS_16_0: u32 = 160000; -pub const __TVOS_16_1: u32 = 160100; -pub const __TVOS_16_2: u32 = 160200; pub const __WATCHOS_1_0: u32 = 10000; pub const __WATCHOS_2_0: u32 = 20000; pub const __WATCHOS_2_1: u32 = 20100; @@ -610,18 +594,6 @@ pub const __WATCHOS_6_2: u32 = 60200; pub const __WATCHOS_7_0: u32 = 70000; pub const __WATCHOS_7_1: u32 = 70100; pub const __WATCHOS_7_2: u32 = 70200; -pub const __WATCHOS_7_3: u32 = 70300; -pub const __WATCHOS_7_4: u32 = 70400; -pub const __WATCHOS_7_5: u32 = 70500; -pub const __WATCHOS_7_6: u32 = 70600; -pub const __WATCHOS_8_0: u32 = 80000; -pub const __WATCHOS_8_1: u32 = 80100; -pub const __WATCHOS_8_3: u32 = 80300; -pub const __WATCHOS_8_4: u32 = 80400; -pub const __WATCHOS_8_5: u32 = 80500; -pub const __WATCHOS_9_0: u32 = 90000; -pub const __WATCHOS_9_1: u32 = 90100; -pub const __WATCHOS_9_2: u32 = 90200; pub const MAC_OS_X_VERSION_10_0: u32 = 1000; pub const MAC_OS_X_VERSION_10_1: u32 = 1010; pub const MAC_OS_X_VERSION_10_2: u32 = 1020; @@ -655,12 +627,9 @@ pub const MAC_OS_X_VERSION_10_15: u32 = 101500; pub const MAC_OS_X_VERSION_10_15_1: u32 = 101501; pub const MAC_OS_X_VERSION_10_16: u32 = 101600; pub const MAC_OS_VERSION_11_0: u32 = 110000; -pub const MAC_OS_VERSION_12_0: u32 = 120000; -pub const MAC_OS_VERSION_13_0: u32 = 130000; pub const __DRIVERKIT_19_0: u32 = 190000; pub const __DRIVERKIT_20_0: u32 = 200000; -pub const __DRIVERKIT_21_0: u32 = 210000; -pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 130100; +pub const __MAC_OS_X_VERSION_MAX_ALLOWED: u32 = 110100; pub const __ENABLE_LEGACY_MAC_AVAILABILITY: u32 = 1; pub const __DARWIN_WCHAR_MIN: i32 = -2147483648; pub const _FORTIFY_SOURCE: u32 = 2; @@ -798,8 +767,7 @@ pub const RUSAGE_INFO_V2: u32 = 2; pub const RUSAGE_INFO_V3: u32 = 3; pub const RUSAGE_INFO_V4: u32 = 4; pub const RUSAGE_INFO_V5: u32 = 5; -pub const RUSAGE_INFO_V6: u32 = 6; -pub const RUSAGE_INFO_CURRENT: u32 = 6; +pub const RUSAGE_INFO_CURRENT: u32 = 5; pub const RU_PROC_RUNS_RESLIDE: u32 = 1; pub const RLIMIT_CPU: u32 = 0; pub const RLIMIT_FSIZE: u32 = 1; @@ -830,10 +798,6 @@ pub const IOPOL_TYPE_VFS_MATERIALIZE_DATALESS_FILES: u32 = 3; pub const IOPOL_TYPE_VFS_STATFS_NO_DATA_VOLUME: u32 = 4; pub const IOPOL_TYPE_VFS_TRIGGER_RESOLVE: u32 = 5; pub const IOPOL_TYPE_VFS_IGNORE_CONTENT_PROTECTION: u32 = 6; -pub const IOPOL_TYPE_VFS_IGNORE_PERMISSIONS: u32 = 7; -pub const IOPOL_TYPE_VFS_SKIP_MTIME_UPDATE: u32 = 8; -pub const IOPOL_TYPE_VFS_ALLOW_LOW_SPACE_WRITES: u32 = 9; -pub const IOPOL_TYPE_VFS_DISALLOW_RW_FOR_O_EVTONLY: u32 = 10; pub const IOPOL_SCOPE_PROCESS: u32 = 0; pub const IOPOL_SCOPE_THREAD: u32 = 1; pub const IOPOL_SCOPE_DARWIN_BG: u32 = 2; @@ -856,14 +820,6 @@ pub const IOPOL_VFS_TRIGGER_RESOLVE_DEFAULT: u32 = 0; pub const IOPOL_VFS_TRIGGER_RESOLVE_OFF: u32 = 1; pub const IOPOL_VFS_CONTENT_PROTECTION_DEFAULT: u32 = 0; pub const IOPOL_VFS_CONTENT_PROTECTION_IGNORE: u32 = 1; -pub const IOPOL_VFS_IGNORE_PERMISSIONS_OFF: u32 = 0; -pub const IOPOL_VFS_IGNORE_PERMISSIONS_ON: u32 = 1; -pub const IOPOL_VFS_SKIP_MTIME_UPDATE_OFF: u32 = 0; -pub const IOPOL_VFS_SKIP_MTIME_UPDATE_ON: u32 = 1; -pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_OFF: u32 = 0; -pub const IOPOL_VFS_ALLOW_LOW_SPACE_WRITES_ON: u32 = 1; -pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_DEFAULT: u32 = 0; -pub const IOPOL_VFS_DISALLOW_RW_FOR_O_EVTONLY_ON: u32 = 1; pub const WNOHANG: u32 = 1; pub const WUNTRACED: u32 = 2; pub const WCOREFLAG: u32 = 128; @@ -4436,13 +4392,13 @@ impl Default for TPMS_AUTH_RESPONSE { } pub type TPMI_AES_KEY_BITS = TPM2_KEY_BITS; pub type TPMI_SM4_KEY_BITS = TPM2_KEY_BITS; -pub type TPMI_TPM2_CAMELLIA_KEY_BITS = TPM2_KEY_BITS; +pub type TPMI_CAMELLIA_KEY_BITS = TPM2_KEY_BITS; #[repr(C)] #[derive(Copy, Clone)] pub union TPMU_SYM_KEY_BITS { pub aes: TPMI_AES_KEY_BITS, pub sm4: TPMI_SM4_KEY_BITS, - pub camellia: TPMI_TPM2_CAMELLIA_KEY_BITS, + pub camellia: TPMI_CAMELLIA_KEY_BITS, pub sym: TPM2_KEY_BITS, pub exclusiveOr: TPMI_ALG_HASH, } @@ -11736,6 +11692,20 @@ extern "C" { nonceTPM: *mut *mut TPM2B_NONCE, ) -> TSS2_RC; } +extern "C" { + pub fn Esys_TR_GetTpmHandle( + esys_context: *mut ESYS_CONTEXT, + esys_handle: ESYS_TR, + tpm_handle: *mut TPM2_HANDLE, + ) -> TSS2_RC; +} +extern "C" { + pub fn Esys_TRSess_GetAuthRequired( + esys_context: *mut ESYS_CONTEXT, + esys_handle: ESYS_TR, + auth_needed: *mut TPMI_YES_NO, + ) -> TSS2_RC; +} extern "C" { pub fn Esys_Startup(esysContext: *mut ESYS_CONTEXT, startupType: TPM2_SU) -> TSS2_RC; } @@ -14781,6 +14751,12 @@ extern "C" { extern "C" { pub fn Esys_Free(__ptr: *mut ::std::os::raw::c_void); } +extern "C" { + pub fn Esys_GetSysContext( + esys_context: *mut ESYS_CONTEXT, + sys_context: *mut *mut TSS2_SYS_CONTEXT, + ) -> TSS2_RC; +} pub type __darwin_nl_item = ::std::os::raw::c_int; pub type __darwin_wctrans_t = ::std::os::raw::c_int; pub type __darwin_wctype_t = __uint32_t; @@ -23733,518 +23709,7 @@ fn bindgen_test_layout_rusage_info_v5() { ) ); } -#[repr(C)] -#[derive(Debug, Default, Copy, Clone)] -pub struct rusage_info_v6 { - pub ri_uuid: [u8; 16usize], - pub ri_user_time: u64, - pub ri_system_time: u64, - pub ri_pkg_idle_wkups: u64, - pub ri_interrupt_wkups: u64, - pub ri_pageins: u64, - pub ri_wired_size: u64, - pub ri_resident_size: u64, - pub ri_phys_footprint: u64, - pub ri_proc_start_abstime: u64, - pub ri_proc_exit_abstime: u64, - pub ri_child_user_time: u64, - pub ri_child_system_time: u64, - pub ri_child_pkg_idle_wkups: u64, - pub ri_child_interrupt_wkups: u64, - pub ri_child_pageins: u64, - pub ri_child_elapsed_abstime: u64, - pub ri_diskio_bytesread: u64, - pub ri_diskio_byteswritten: u64, - pub ri_cpu_time_qos_default: u64, - pub ri_cpu_time_qos_maintenance: u64, - pub ri_cpu_time_qos_background: u64, - pub ri_cpu_time_qos_utility: u64, - pub ri_cpu_time_qos_legacy: u64, - pub ri_cpu_time_qos_user_initiated: u64, - pub ri_cpu_time_qos_user_interactive: u64, - pub ri_billed_system_time: u64, - pub ri_serviced_system_time: u64, - pub ri_logical_writes: u64, - pub ri_lifetime_max_phys_footprint: u64, - pub ri_instructions: u64, - pub ri_cycles: u64, - pub ri_billed_energy: u64, - pub ri_serviced_energy: u64, - pub ri_interval_max_phys_footprint: u64, - pub ri_runnable_time: u64, - pub ri_flags: u64, - pub ri_user_ptime: u64, - pub ri_system_ptime: u64, - pub ri_pinstructions: u64, - pub ri_pcycles: u64, - pub ri_energy_nj: u64, - pub ri_penergy_nj: u64, - pub ri_reserved: [u64; 14usize], -} -#[test] -fn bindgen_test_layout_rusage_info_v6() { - const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); - let ptr = UNINIT.as_ptr(); - assert_eq!( - ::std::mem::size_of::(), - 464usize, - concat!("Size of: ", stringify!(rusage_info_v6)) - ); - assert_eq!( - ::std::mem::align_of::(), - 8usize, - concat!("Alignment of ", stringify!(rusage_info_v6)) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_uuid) as usize - ptr as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_uuid) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_user_time) as usize - ptr as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_user_time) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_system_time) as usize - ptr as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_system_time) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_pkg_idle_wkups) as usize - ptr as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_interrupt_wkups) as usize - ptr as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_pageins) as usize - ptr as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_pageins) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_wired_size) as usize - ptr as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_wired_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_resident_size) as usize - ptr as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_resident_size) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_phys_footprint) as usize - ptr as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_phys_footprint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_start_abstime) as usize - ptr as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_proc_start_abstime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_proc_exit_abstime) as usize - ptr as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_proc_exit_abstime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_child_user_time) as usize - ptr as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_child_user_time) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_child_system_time) as usize - ptr as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_child_system_time) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pkg_idle_wkups) as usize - ptr as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_child_pkg_idle_wkups) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_child_interrupt_wkups) as usize - ptr as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_child_interrupt_wkups) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_child_pageins) as usize - ptr as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_child_pageins) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_child_elapsed_abstime) as usize - ptr as usize }, - 136usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_child_elapsed_abstime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_bytesread) as usize - ptr as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_diskio_bytesread) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_diskio_byteswritten) as usize - ptr as usize }, - 152usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_diskio_byteswritten) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_default) as usize - ptr as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cpu_time_qos_default) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_maintenance) as usize - ptr as usize }, - 168usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cpu_time_qos_maintenance) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_background) as usize - ptr as usize }, - 176usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cpu_time_qos_background) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_utility) as usize - ptr as usize }, - 184usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cpu_time_qos_utility) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_legacy) as usize - ptr as usize }, - 192usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cpu_time_qos_legacy) - ) - ); - assert_eq!( - unsafe { - ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_initiated) as usize - ptr as usize - }, - 200usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cpu_time_qos_user_initiated) - ) - ); - assert_eq!( - unsafe { - ::std::ptr::addr_of!((*ptr).ri_cpu_time_qos_user_interactive) as usize - ptr as usize - }, - 208usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cpu_time_qos_user_interactive) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_system_time) as usize - ptr as usize }, - 216usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_billed_system_time) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_system_time) as usize - ptr as usize }, - 224usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_serviced_system_time) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_logical_writes) as usize - ptr as usize }, - 232usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_logical_writes) - ) - ); - assert_eq!( - unsafe { - ::std::ptr::addr_of!((*ptr).ri_lifetime_max_phys_footprint) as usize - ptr as usize - }, - 240usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_lifetime_max_phys_footprint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_instructions) as usize - ptr as usize }, - 248usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_instructions) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_cycles) as usize - ptr as usize }, - 256usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_cycles) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_billed_energy) as usize - ptr as usize }, - 264usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_billed_energy) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_serviced_energy) as usize - ptr as usize }, - 272usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_serviced_energy) - ) - ); - assert_eq!( - unsafe { - ::std::ptr::addr_of!((*ptr).ri_interval_max_phys_footprint) as usize - ptr as usize - }, - 280usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_interval_max_phys_footprint) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_runnable_time) as usize - ptr as usize }, - 288usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_runnable_time) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_flags) as usize - ptr as usize }, - 296usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_flags) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_user_ptime) as usize - ptr as usize }, - 304usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_user_ptime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_system_ptime) as usize - ptr as usize }, - 312usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_system_ptime) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_pinstructions) as usize - ptr as usize }, - 320usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_pinstructions) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_pcycles) as usize - ptr as usize }, - 328usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_pcycles) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_energy_nj) as usize - ptr as usize }, - 336usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_energy_nj) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_penergy_nj) as usize - ptr as usize }, - 344usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_penergy_nj) - ) - ); - assert_eq!( - unsafe { ::std::ptr::addr_of!((*ptr).ri_reserved) as usize - ptr as usize }, - 352usize, - concat!( - "Offset of field: ", - stringify!(rusage_info_v6), - "::", - stringify!(ri_reserved) - ) - ); -} -pub type rusage_info_current = rusage_info_v6; +pub type rusage_info_current = rusage_info_v5; #[repr(C)] #[derive(Debug, Default, Copy, Clone)] pub struct rlimit { @@ -24765,10 +24230,7 @@ extern "C" { pub fn valloc(arg1: size_t) -> *mut ::std::os::raw::c_void; } extern "C" { - pub fn aligned_alloc( - __alignment: ::std::os::raw::c_ulong, - __size: ::std::os::raw::c_ulong, - ) -> *mut ::std::os::raw::c_void; + pub fn aligned_alloc(__alignment: size_t, __size: size_t) -> *mut ::std::os::raw::c_void; } extern "C" { pub fn posix_memalign(