]> git.lizzy.rs Git - rust.git/blob - library/std/src/os/illumos/raw.rs
Auto merge of #96605 - Urgau:string-retain-codegen, r=thomcc
[rust.git] / library / std / src / os / illumos / raw.rs
1 //! illumos-specific 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 the standard library, the `libc` \
7     crate on crates.io should be used instead for the correct definitions"
8 )]
9 #![allow(deprecated)]
10
11 use crate::os::raw::c_long;
12 use crate::os::unix::raw::{gid_t, uid_t};
13
14 #[stable(feature = "raw_ext", since = "1.1.0")]
15 pub type blkcnt_t = u64;
16 #[stable(feature = "raw_ext", since = "1.1.0")]
17 pub type blksize_t = u64;
18 #[stable(feature = "raw_ext", since = "1.1.0")]
19 pub type dev_t = u64;
20 #[stable(feature = "raw_ext", since = "1.1.0")]
21 pub type fflags_t = u32;
22 #[stable(feature = "raw_ext", since = "1.1.0")]
23 pub type ino_t = u64;
24 #[stable(feature = "raw_ext", since = "1.1.0")]
25 pub type mode_t = u32;
26 #[stable(feature = "raw_ext", since = "1.1.0")]
27 pub type nlink_t = u64;
28 #[stable(feature = "raw_ext", since = "1.1.0")]
29 pub type off_t = u64;
30 #[stable(feature = "raw_ext", since = "1.1.0")]
31 pub type time_t = i64;
32
33 #[stable(feature = "pthread_t", since = "1.8.0")]
34 pub type pthread_t = u32;
35
36 #[repr(C)]
37 #[derive(Clone)]
38 #[stable(feature = "raw_ext", since = "1.1.0")]
39 pub struct stat {
40     #[stable(feature = "raw_ext", since = "1.1.0")]
41     pub st_dev: dev_t,
42     #[stable(feature = "raw_ext", since = "1.1.0")]
43     pub st_ino: ino_t,
44     #[stable(feature = "raw_ext", since = "1.1.0")]
45     pub st_mode: mode_t,
46     #[stable(feature = "raw_ext", since = "1.1.0")]
47     pub st_nlink: nlink_t,
48     #[stable(feature = "raw_ext", since = "1.1.0")]
49     pub st_uid: uid_t,
50     #[stable(feature = "raw_ext", since = "1.1.0")]
51     pub st_gid: gid_t,
52     #[stable(feature = "raw_ext", since = "1.1.0")]
53     pub st_rdev: dev_t,
54     #[stable(feature = "raw_ext", since = "1.1.0")]
55     pub st_size: off_t,
56     #[stable(feature = "raw_ext", since = "1.1.0")]
57     pub st_atime: time_t,
58     #[stable(feature = "raw_ext", since = "1.1.0")]
59     pub st_atime_nsec: c_long,
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_mtime_nsec: c_long,
64     #[stable(feature = "raw_ext", since = "1.1.0")]
65     pub st_ctime: time_t,
66     #[stable(feature = "raw_ext", since = "1.1.0")]
67     pub st_ctime_nsec: c_long,
68     #[stable(feature = "raw_ext", since = "1.1.0")]
69     pub st_blksize: blksize_t,
70     #[stable(feature = "raw_ext", since = "1.1.0")]
71     pub st_blocks: blkcnt_t,
72     #[stable(feature = "raw_ext", since = "1.1.0")]
73     pub __unused: [u8; 16],
74 }