about summary refs log tree commit diff
path: root/src/libstd/os/linux
diff options
context:
space:
mode:
authorPeter Atashian <retep998@gmail.com>2015-12-03 21:58:00 -0500
committerPeter Atashian <retep998@gmail.com>2015-12-04 20:09:32 -0500
commit9749a193d629dd723562004879bca3e2d47e25a1 (patch)
treeaa8f19d13f1c3379eafc4332436db308e84b6f84 /src/libstd/os/linux
parent95cdada99a02c5abea4898f46e04f7a271419dac (diff)
downloadrust-9749a193d629dd723562004879bca3e2d47e25a1.tar.gz
rust-9749a193d629dd723562004879bca3e2d47e25a1.zip
Add JoinHandleExt to get the pthread_t on unix platforms
Signed-off-by: Peter Atashian <retep998@gmail.com>
Diffstat (limited to 'src/libstd/os/linux')
-rw-r--r--src/libstd/os/linux/raw.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/os/linux/raw.rs b/src/libstd/os/linux/raw.rs
index 35de9bfc194..f44199f311b 100644
--- a/src/libstd/os/linux/raw.rs
+++ b/src/libstd/os/linux/raw.rs
@@ -12,9 +12,13 @@
 
 #![stable(feature = "raw_ext", since = "1.1.0")]
 
+use os::raw::c_ulong;
+
 #[stable(feature = "raw_ext", since = "1.1.0")] pub type dev_t = u64;
 #[stable(feature = "raw_ext", since = "1.1.0")] pub type mode_t = u32;
 
+#[unstable(feature = "pthread_t", issue = "29791")] pub type pthread_t = c_ulong;
+
 #[doc(inline)]
 #[stable(feature = "raw_ext", since = "1.1.0")]
 pub use self::arch::{off_t, ino_t, nlink_t, blksize_t, blkcnt_t, stat, time_t};