]>
Commit | Line | Data |
---|---|---|
d9579d0f AL |
1 | //! Unix-specific primitives available on all unix platforms |
2 | ||
3 | #![stable(feature = "raw_ext", since = "1.1.0")] | |
60c5eb7d XL |
4 | #![rustc_deprecated( |
5 | since = "1.8.0", | |
6 | reason = "these type aliases are no longer supported by \ | |
7 | the standard library, the `libc` crate on \ | |
8 | crates.io should be used instead for the correct \ | |
9 | definitions" | |
10 | )] | |
7453a54e | 11 | #![allow(deprecated)] |
d9579d0f | 12 | |
60c5eb7d | 13 | #[stable(feature = "raw_ext", since = "1.1.0")] |
f9f354fc | 14 | #[allow(non_camel_case_types)] |
60c5eb7d | 15 | pub type uid_t = u32; |
f9f354fc | 16 | |
60c5eb7d | 17 | #[stable(feature = "raw_ext", since = "1.1.0")] |
f9f354fc | 18 | #[allow(non_camel_case_types)] |
60c5eb7d | 19 | pub type gid_t = u32; |
f9f354fc | 20 | |
60c5eb7d | 21 | #[stable(feature = "raw_ext", since = "1.1.0")] |
f9f354fc | 22 | #[allow(non_camel_case_types)] |
60c5eb7d | 23 | pub type pid_t = i32; |
d9579d0f AL |
24 | |
25 | #[doc(inline)] | |
3157f602 | 26 | #[stable(feature = "pthread_t", since = "1.8.0")] |
532ac7d7 | 27 | pub use crate::sys::platform::raw::pthread_t; |
92a42be0 SL |
28 | #[doc(inline)] |
29 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
60c5eb7d | 30 | pub use crate::sys::platform::raw::{blkcnt_t, time_t}; |
d9579d0f | 31 | #[doc(inline)] |
92a42be0 | 32 | #[stable(feature = "raw_ext", since = "1.1.0")] |
60c5eb7d | 33 | pub use crate::sys::platform::raw::{blksize_t, dev_t, ino_t, mode_t, nlink_t, off_t}; |