aboutsummaryrefslogtreecommitdiff
path: root/libc/src/unix/linux_like/android/b32
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/unix/linux_like/android/b32')
-rw-r--r--libc/src/unix/linux_like/android/b32/mod.rs12
-rw-r--r--libc/src/unix/linux_like/android/b32/x86/align.rs7
-rw-r--r--libc/src/unix/linux_like/android/b32/x86/mod.rs (renamed from libc/src/unix/linux_like/android/b32/x86.rs)7
3 files changed, 19 insertions, 7 deletions
diff --git a/libc/src/unix/linux_like/android/b32/mod.rs b/libc/src/unix/linux_like/android/b32/mod.rs
index e8fd20e..e5c97e9 100644
--- a/libc/src/unix/linux_like/android/b32/mod.rs
+++ b/libc/src/unix/linux_like/android/b32/mod.rs
@@ -179,12 +179,10 @@ pub const PTRACE_SETFPREGS: ::c_int = 15;
pub const PTRACE_GETREGS: ::c_int = 12;
pub const PTRACE_SETREGS: ::c_int = 13;
-pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t = pthread_mutex_t {
- value: 0,
-};
-pub const PTHREAD_COND_INITIALIZER: pthread_cond_t = pthread_cond_t {
- value: 0,
-};
+pub const PTHREAD_MUTEX_INITIALIZER: pthread_mutex_t =
+ pthread_mutex_t { value: 0 };
+pub const PTHREAD_COND_INITIALIZER: pthread_cond_t =
+ pthread_cond_t { value: 0 };
pub const PTHREAD_RWLOCK_INITIALIZER: pthread_rwlock_t = pthread_rwlock_t {
lock: PTHREAD_MUTEX_INITIALIZER,
cond: PTHREAD_COND_INITIALIZER,
@@ -206,7 +204,7 @@ pub const UT_HOSTSIZE: usize = 16;
pub const SIGSTKSZ: ::size_t = 8192;
pub const MINSIGSTKSZ: ::size_t = 2048;
-extern {
+extern "C" {
pub fn timegm64(tm: *const ::tm) -> ::time64_t;
}
diff --git a/libc/src/unix/linux_like/android/b32/x86/align.rs b/libc/src/unix/linux_like/android/b32/x86/align.rs
new file mode 100644
index 0000000..04df4a0
--- /dev/null
+++ b/libc/src/unix/linux_like/android/b32/x86/align.rs
@@ -0,0 +1,7 @@
+s_no_extra_traits! {
+ #[allow(missing_debug_implementations)]
+ #[repr(align(8))]
+ pub struct max_align_t {
+ priv_: [f64; 2]
+ }
+}
diff --git a/libc/src/unix/linux_like/android/b32/x86.rs b/libc/src/unix/linux_like/android/b32/x86/mod.rs
index a56fa00..101bf2d 100644
--- a/libc/src/unix/linux_like/android/b32/x86.rs
+++ b/libc/src/unix/linux_like/android/b32/x86/mod.rs
@@ -413,3 +413,10 @@ pub const CS: ::c_int = 13;
pub const EFL: ::c_int = 14;
pub const UESP: ::c_int = 15;
pub const SS: ::c_int = 16;
+
+cfg_if! {
+ if #[cfg(libc_align)] {
+ mod align;
+ pub use self::align::*;
+ }
+}