]> git.lizzy.rs Git - rust.git/blob - library/std/src/os/horizon/raw.rs
Merge commit '0cb0f7636851f9fcc57085cf80197a2ef6db098f' into clippyup
[rust.git] / library / std / src / os / horizon / raw.rs
1 //! Horizon OS raw type definitions
2
3 #![stable(feature = "raw_ext", since = "1.1.0")]
4 #![deprecated(
5     since = "1.8.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 \
9             definitions"
10 )]
11 #![allow(deprecated)]
12
13 use crate::os::raw::c_long;
14 use crate::os::unix::raw::{gid_t, uid_t};
15
16 #[stable(feature = "pthread_t", since = "1.8.0")]
17 pub type pthread_t = libc::pthread_t;
18
19 #[stable(feature = "raw_ext", since = "1.1.0")]
20 pub type blkcnt_t = libc::blkcnt_t;
21
22 #[stable(feature = "raw_ext", since = "1.1.0")]
23 pub type blksize_t = libc::blksize_t;
24 #[stable(feature = "raw_ext", since = "1.1.0")]
25 pub type dev_t = libc::dev_t;
26 #[stable(feature = "raw_ext", since = "1.1.0")]
27 pub type ino_t = libc::ino_t;
28 #[stable(feature = "raw_ext", since = "1.1.0")]
29 pub type mode_t = libc::mode_t;
30 #[stable(feature = "raw_ext", since = "1.1.0")]
31 pub type nlink_t = libc::nlink_t;
32 #[stable(feature = "raw_ext", since = "1.1.0")]
33 pub type off_t = libc::off_t;
34
35 #[stable(feature = "raw_ext", since = "1.1.0")]
36 pub type time_t = libc::time_t;
37
38 #[repr(C)]
39 #[derive(Clone)]
40 #[stable(feature = "raw_ext", since = "1.1.0")]
41 pub struct stat {
42     #[stable(feature = "raw_ext", since = "1.1.0")]
43     pub st_dev: dev_t,
44     #[stable(feature = "raw_ext", since = "1.1.0")]
45     pub st_ino: ino_t,
46     #[stable(feature = "raw_ext", since = "1.1.0")]
47     pub st_mode: mode_t,
48     #[stable(feature = "raw_ext", since = "1.1.0")]
49     pub st_nlink: nlink_t,
50     #[stable(feature = "raw_ext", since = "1.1.0")]
51     pub st_uid: uid_t,
52     #[stable(feature = "raw_ext", since = "1.1.0")]
53     pub st_gid: gid_t,
54     #[stable(feature = "raw_ext", since = "1.1.0")]
55     pub st_rdev: dev_t,
56     #[stable(feature = "raw_ext", since = "1.1.0")]
57     pub st_size: off_t,
58     #[stable(feature = "raw_ext", since = "1.1.0")]
59     pub st_atime: time_t,
60     #[stable(feature = "raw_ext", since = "1.1.0")]
61     pub st_mtime: time_t,
62     #[stable(feature = "raw_ext", since = "1.1.0")]
63     pub st_ctime: time_t,
64     #[stable(feature = "raw_ext", since = "1.1.0")]
65     pub st_blksize: blksize_t,
66     #[stable(feature = "raw_ext", since = "1.1.0")]
67     pub st_blocks: blkcnt_t,
68     #[stable(feature = "raw_ext", since = "1.1.0")]
69     pub st_spare4: [c_long; 2usize],
70 }