summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wernstål <m4rw3r@gmail.com>2016-03-13 20:35:56 +0100
committerMartin Wernstål <m4rw3r@gmail.com>2016-03-13 20:35:56 +0100
commitf500051a99db01976b5b1c429fc86c522ec7cf40 (patch)
treed11523a73d5911312530a1b53b93197925349d08
parent8e85797c3dbc70320b9509e0f6539e3171d00640 (diff)
downloadrust-libc-f500051a99db01976b5b1c429fc86c522ec7cf40.tar.gz
apple: TIOCTIMESTAMP and TIOCDCDTIMESTAMP differ on 32 bit
-rw-r--r--src/unix/bsd/apple/b32.rs3
-rw-r--r--src/unix/bsd/apple/b64.rs3
-rw-r--r--src/unix/bsd/apple/mod.rs2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/unix/bsd/apple/b32.rs b/src/unix/bsd/apple/b32.rs
index d2c5671612..80916b3b78 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 784aa9b5da..9296228077 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 2b5da7ff0a..70cd42c7ae 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;