]> git.lizzy.rs Git - rust.git/blob - library/std/src/os/espidf/raw.rs
Rollup merge of #96882 - jackh726:no-subst, r=oli-obk
[rust.git] / library / std / src / os / espidf / raw.rs
1 //! Raw type definitions for the ESP-IDF framework.
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
12 use crate::os::raw::c_long;
13 use crate::os::unix::raw::{gid_t, uid_t};
14
15 #[stable(feature = "pthread_t", since = "1.8.0")]
16 pub type pthread_t = libc::pthread_t;
17
18 #[stable(feature = "raw_ext", since = "1.1.0")]
19 pub type blkcnt_t = libc::blkcnt_t;
20
21 #[stable(feature = "raw_ext", since = "1.1.0")]
22 pub type blksize_t = libc::blksize_t;
23 #[stable(feature = "raw_ext", since = "1.1.0")]
24 pub type dev_t = libc::dev_t;
25 #[stable(feature = "raw_ext", since = "1.1.0")]
26 pub type ino_t = libc::ino_t;
27 #[stable(feature = "raw_ext", since = "1.1.0")]
28 pub type mode_t = libc::mode_t;
29 #[stable(feature = "raw_ext", since = "1.1.0")]
30 pub type nlink_t = libc::nlink_t;
31 #[stable(feature = "raw_ext", since = "1.1.0")]
32 pub type off_t = libc::off_t;
33
34 #[stable(feature = "raw_ext", since = "1.1.0")]
35 pub type time_t = libc::time_t;
36
37 #[repr(C)]
38 #[derive(Clone)]
39 #[stable(feature = "raw_ext", since = "1.1.0")]
40 pub struct stat {
41     #[stable(feature = "raw_ext", since = "1.1.0")]
42     pub st_dev: dev_t,
43     #[stable(feature = "raw_ext", since = "1.1.0")]
44     pub st_ino: ino_t,
45     #[stable(feature = "raw_ext", since = "1.1.0")]
46     pub st_mode: mode_t,
47     #[stable(feature = "raw_ext", since = "1.1.0")]
48     pub st_nlink: nlink_t,
49     #[stable(feature = "raw_ext", since = "1.1.0")]
50     pub st_uid: uid_t,
51     #[stable(feature = "raw_ext", since = "1.1.0")]
52     pub st_gid: gid_t,
53     #[stable(feature = "raw_ext", since = "1.1.0")]
54     pub st_rdev: dev_t,
55     #[stable(feature = "raw_ext", since = "1.1.0")]
56     pub st_size: off_t,
57     #[stable(feature = "raw_ext", since = "1.1.0")]
58     pub st_atime: time_t,
59     #[stable(feature = "raw_ext", since = "1.1.0")]
60     pub st_mtime: time_t,
61     #[stable(feature = "raw_ext", since = "1.1.0")]
62     pub st_ctime: time_t,
63     #[stable(feature = "raw_ext", since = "1.1.0")]
64     pub st_blksize: blksize_t,
65     #[stable(feature = "raw_ext", since = "1.1.0")]
66     pub st_blocks: blkcnt_t,
67     #[stable(feature = "raw_ext", since = "1.1.0")]
68     pub st_spare4: [c_long; 2usize],
69 }