From f500051a99db01976b5b1c429fc86c522ec7cf40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Wernst=C3=A5l?= <m4rw3r@gmail.com> Date: Sun, 13 Mar 2016 20:35:56 +0100 Subject: [PATCH] apple: TIOCTIMESTAMP and TIOCDCDTIMESTAMP differ on 32 bit --- src/unix/bsd/apple/b32.rs | 3 +++ src/unix/bsd/apple/b64.rs | 3 +++ src/unix/bsd/apple/mod.rs | 2 -- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/unix/bsd/apple/b32.rs b/src/unix/bsd/apple/b32.rs index d2c56716..80916b3b 100644 --- a/src/unix/bsd/apple/b32.rs +++ b/src/unix/bsd/apple/b32.rs @@ -13,3 +13,6 @@ s! { pub const __PTHREAD_MUTEX_SIZE__: usize = 40; pub const __PTHREAD_COND_SIZE__: usize = 24; pub const __PTHREAD_RWLOCK_SIZE__: usize = 124; + +pub const TIOCTIMESTAMP: ::c_ulong = 0x40087459; +pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40087458; diff --git a/src/unix/bsd/apple/b64.rs b/src/unix/bsd/apple/b64.rs index 784aa9b5..92962280 100644 --- a/src/unix/bsd/apple/b64.rs +++ b/src/unix/bsd/apple/b64.rs @@ -13,3 +13,6 @@ s! { pub const __PTHREAD_MUTEX_SIZE__: usize = 56; pub const __PTHREAD_COND_SIZE__: usize = 40; pub const __PTHREAD_RWLOCK_SIZE__: usize = 192; + +pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459; +pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458; diff --git a/src/unix/bsd/apple/mod.rs b/src/unix/bsd/apple/mod.rs index 2b5da7ff..70cd42c7 100644 --- a/src/unix/bsd/apple/mod.rs +++ b/src/unix/bsd/apple/mod.rs @@ -549,8 +549,6 @@ pub const TIOCSIG: ::c_uint = 0x2000745f; pub const TIOCDRAIN: ::c_uint = 0x2000745e; pub const TIOCMSDTRWAIT: ::c_ulong = 0x8004745b; pub const TIOCMGDTRWAIT: ::c_ulong = 0x4004745a; -pub const TIOCTIMESTAMP: ::c_ulong = 0x40107459; -pub const TIOCDCDTIMESTAMP: ::c_ulong = 0x40107458; pub const TIOCSDRAINWAIT: ::c_ulong = 0x80047457; pub const TIOCGDRAINWAIT: ::c_ulong = 0x40047456; pub const TIOCDSIMICROCODE: ::c_uint = 0x20007455; -- GitLab