diff options
author | Daniel Mueller <deso@posteo.net> | 2019-11-01 07:42:33 -0700 |
---|---|---|
committer | Daniel Mueller <deso@posteo.net> | 2019-11-01 07:42:33 -0700 |
commit | 49be10a8179165d24bbb8eb3490c4ca6f94b42c4 (patch) | |
tree | 642978648e57ba8b162a7378e8754df85ca83b37 /libc/src/unix/linux_like/android/b64 | |
parent | 9f3991a74fa5124e298582afa60b229dd005be40 (diff) | |
download | nitrocli-49be10a8179165d24bbb8eb3490c4ca6f94b42c4.tar.gz nitrocli-49be10a8179165d24bbb8eb3490c4ca6f94b42c4.tar.bz2 |
Update libc crate to 0.2.66
This change updates the libc crate to version 0.2.66.
Import subrepo libc/:libc at 4f11029a68040c90acf771976b019c1ef273a8cd
Diffstat (limited to 'libc/src/unix/linux_like/android/b64')
-rw-r--r-- | libc/src/unix/linux_like/android/b64/aarch64/align.rs | 7 | ||||
-rw-r--r-- | libc/src/unix/linux_like/android/b64/aarch64/mod.rs (renamed from libc/src/unix/linux_like/android/b64/aarch64.rs) | 7 | ||||
-rw-r--r-- | libc/src/unix/linux_like/android/b64/mod.rs | 2 | ||||
-rw-r--r-- | libc/src/unix/linux_like/android/b64/x86_64/align.rs | 7 | ||||
-rw-r--r-- | libc/src/unix/linux_like/android/b64/x86_64/mod.rs (renamed from libc/src/unix/linux_like/android/b64/x86_64.rs) | 7 |
5 files changed, 29 insertions, 1 deletions
diff --git a/libc/src/unix/linux_like/android/b64/aarch64/align.rs b/libc/src/unix/linux_like/android/b64/aarch64/align.rs new file mode 100644 index 0000000..8e94996 --- /dev/null +++ b/libc/src/unix/linux_like/android/b64/aarch64/align.rs @@ -0,0 +1,7 @@ +s_no_extra_traits! { + #[allow(missing_debug_implementations)] + #[repr(align(16))] + pub struct max_align_t { + priv_: [f32; 8] + } +} diff --git a/libc/src/unix/linux_like/android/b64/aarch64.rs b/libc/src/unix/linux_like/android/b64/aarch64/mod.rs index cb1c81b..b2b9188 100644 --- a/libc/src/unix/linux_like/android/b64/aarch64.rs +++ b/libc/src/unix/linux_like/android/b64/aarch64/mod.rs @@ -323,3 +323,10 @@ pub const SYS_pkey_mprotect: ::c_long = 288; pub const SYS_pkey_alloc: ::c_long = 289; pub const SYS_pkey_free: ::c_long = 290; pub const SYS_syscalls: ::c_long = 292; + +cfg_if! { + if #[cfg(libc_align)] { + mod align; + pub use self::align::*; + } +} diff --git a/libc/src/unix/linux_like/android/b64/mod.rs b/libc/src/unix/linux_like/android/b64/mod.rs index d9759bd..9826bb9 100644 --- a/libc/src/unix/linux_like/android/b64/mod.rs +++ b/libc/src/unix/linux_like/android/b64/mod.rs @@ -107,7 +107,7 @@ s! { } } -s_no_extra_traits!{ +s_no_extra_traits! { pub struct pthread_mutex_t { value: ::c_int, __reserved: [::c_char; 36], diff --git a/libc/src/unix/linux_like/android/b64/x86_64/align.rs b/libc/src/unix/linux_like/android/b64/x86_64/align.rs new file mode 100644 index 0000000..7ca870f --- /dev/null +++ b/libc/src/unix/linux_like/android/b64/x86_64/align.rs @@ -0,0 +1,7 @@ +s_no_extra_traits! { + #[allow(missing_debug_implementations)] + #[repr(align(16))] + pub struct max_align_t { + priv_: [f64; 4] + } +} diff --git a/libc/src/unix/linux_like/android/b64/x86_64.rs b/libc/src/unix/linux_like/android/b64/x86_64/mod.rs index 2ab6080..f5b8b16 100644 --- a/libc/src/unix/linux_like/android/b64/x86_64.rs +++ b/libc/src/unix/linux_like/android/b64/x86_64/mod.rs @@ -418,3 +418,10 @@ pub const DS: ::c_int = 23; pub const ES: ::c_int = 24; pub const FS: ::c_int = 25; pub const GS: ::c_int = 26; + +cfg_if! { + if #[cfg(libc_align)] { + mod align; + pub use self::align::*; + } +} |