]> git.lizzy.rs Git - rust.git/blob - src/libstd/os/bitrig/raw.rs
move raw span to tt reader
[rust.git] / src / libstd / os / bitrig / raw.rs
1 //! Bitrig-specific raw type definitions
2
3 #![stable(feature = "raw_ext", since = "1.1.0")]
4 #![rustc_deprecated(since = "1.8.0",
5                     reason = "these type aliases are no longer supported by \
6                               the standard library, the `libc` crate on \
7                               crates.io should be used instead for the correct \
8                               definitions")]
9 #![allow(deprecated)]
10
11 use crate::os::raw::c_long;
12 use crate::os::unix::raw::{uid_t, gid_t};
13
14 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blkcnt_t = u64;
15 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blksize_t = u64;
16 #[stable(feature = "raw_ext", since = "1.1.0")] pub type dev_t = u64;
17 #[stable(feature = "raw_ext", since = "1.1.0")] pub type fflags_t = u32;
18 #[stable(feature = "raw_ext", since = "1.1.0")] pub type ino_t = u64;
19 #[stable(feature = "raw_ext", since = "1.1.0")] pub type mode_t = u32;
20 #[stable(feature = "raw_ext", since = "1.1.0")] pub type nlink_t = u64;
21 #[stable(feature = "raw_ext", since = "1.1.0")] pub type off_t = u64;
22 #[stable(feature = "raw_ext", since = "1.1.0")] pub type time_t = i64;
23
24 #[stable(feature = "pthread_t", since = "1.8.0")]
25 pub type pthread_t = usize;
26
27 #[repr(C)]
28 #[derive(Clone)]
29 #[stable(feature = "raw_ext", since = "1.1.0")]
30 pub struct stat {
31     #[stable(feature = "raw_ext", since = "1.1.0")]
32     pub st_mode: u32,
33     #[stable(feature = "raw_ext", since = "1.1.0")]
34     pub st_dev: i32,
35     #[stable(feature = "raw_ext", since = "1.1.0")]
36     pub st_ino: u64,
37     #[stable(feature = "raw_ext", since = "1.1.0")]
38     pub st_nlink: u32,
39     #[stable(feature = "raw_ext", since = "1.1.0")]
40     pub st_uid: u32,
41     #[stable(feature = "raw_ext", since = "1.1.0")]
42     pub st_gid: u32,
43     #[stable(feature = "raw_ext", since = "1.1.0")]
44     pub st_rdev: i32,
45     #[stable(feature = "raw_ext", since = "1.1.0")]
46     pub st_atime: i64,
47     #[stable(feature = "raw_ext", since = "1.1.0")]
48     pub st_atime_nsec: i64,
49     #[stable(feature = "raw_ext", since = "1.1.0")]
50     pub st_mtime: u64,
51     #[stable(feature = "raw_ext", since = "1.1.0")]
52     pub st_mtime_nsec: i64,
53     #[stable(feature = "raw_ext", since = "1.1.0")]
54     pub st_ctime: i64,
55     #[stable(feature = "raw_ext", since = "1.1.0")]
56     pub st_ctime_nsec: i64,
57     #[stable(feature = "raw_ext", since = "1.1.0")]
58     pub st_size: i64,
59     #[stable(feature = "raw_ext", since = "1.1.0")]
60     pub st_blocks: i64,
61     #[stable(feature = "raw_ext", since = "1.1.0")]
62     pub st_blksize: u32,
63     #[stable(feature = "raw_ext", since = "1.1.0")]
64     pub st_flags: u32,
65     #[stable(feature = "raw_ext", since = "1.1.0")]
66     pub st_gen: u32,
67     #[stable(feature = "raw_ext", since = "1.1.0")]
68     pub st_birthtime: i64,
69     #[stable(feature = "raw_ext", since = "1.1.0")]
70     pub st_birthtime_nsec: i64,
71 }