1 //! Redox-specific raw type definitions
3 #![stable(feature = "raw_ext", since = "1.1.0")]
6 note = "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 \
13 use crate::os::raw::{c_char, c_int, c_long, c_ulong, c_void};
15 #[stable(feature = "raw_ext", since = "1.1.0")]
16 pub type dev_t = c_long;
17 #[stable(feature = "raw_ext", since = "1.1.0")]
18 pub type gid_t = c_int;
19 #[stable(feature = "raw_ext", since = "1.1.0")]
20 pub type mode_t = c_int;
21 #[stable(feature = "raw_ext", since = "1.1.0")]
22 pub type uid_t = c_int;
24 #[stable(feature = "pthread_t", since = "1.8.0")]
25 pub type pthread_t = *mut c_void;
27 #[stable(feature = "raw_ext", since = "1.1.0")]
28 pub type blkcnt_t = c_ulong;
29 #[stable(feature = "raw_ext", since = "1.1.0")]
30 pub type blksize_t = c_ulong;
31 #[stable(feature = "raw_ext", since = "1.1.0")]
32 pub type ino_t = c_ulong;
33 #[stable(feature = "raw_ext", since = "1.1.0")]
34 pub type nlink_t = c_ulong;
35 #[stable(feature = "raw_ext", since = "1.1.0")]
36 pub type off_t = c_long;
37 #[stable(feature = "raw_ext", since = "1.1.0")]
38 pub type time_t = c_long;
42 #[stable(feature = "raw_ext", since = "1.1.0")]
44 #[stable(feature = "raw_ext", since = "1.1.0")]
46 #[stable(feature = "raw_ext", since = "1.1.0")]
48 #[stable(feature = "raw_ext", since = "1.1.0")]
49 pub st_nlink: nlink_t,
50 #[stable(feature = "raw_ext", since = "1.1.0")]
52 #[stable(feature = "raw_ext", since = "1.1.0")]
54 #[stable(feature = "raw_ext", since = "1.1.0")]
56 #[stable(feature = "raw_ext", since = "1.1.0")]
58 #[stable(feature = "raw_ext", since = "1.1.0")]
60 #[stable(feature = "raw_ext", since = "1.1.0")]
61 pub st_blksize: blksize_t,
62 #[stable(feature = "raw_ext", since = "1.1.0")]
63 pub st_blocks: blkcnt_t,
64 #[stable(feature = "raw_ext", since = "1.1.0")]
66 #[stable(feature = "raw_ext", since = "1.1.0")]
67 pub st_atime_nsec: c_long,
68 #[stable(feature = "raw_ext", since = "1.1.0")]
70 #[stable(feature = "raw_ext", since = "1.1.0")]
71 pub st_mtime_nsec: c_long,
72 #[stable(feature = "raw_ext", since = "1.1.0")]
74 #[stable(feature = "raw_ext", since = "1.1.0")]
75 pub st_ctime_nsec: c_long,
76 #[stable(feature = "raw_ext", since = "1.1.0")]
77 pub _pad: [c_char; 24],