]> git.proxmox.com Git - rustc.git/blame - src/libstd/os/ios/raw.rs
New upstream version 1.41.1+dfsg1
[rustc.git] / src / libstd / os / ios / raw.rs
CommitLineData
d9579d0f
AL
1//! iOS-specific raw type definitions
2
3#![stable(feature = "raw_ext", since = "1.1.0")]
60c5eb7d
XL
4#![rustc_deprecated(
5 since = "1.8.0",
6 reason = "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)]
7453a54e 11#![allow(deprecated)]
d9579d0f 12
532ac7d7 13use crate::os::raw::c_long;
d9579d0f 14
60c5eb7d
XL
15#[stable(feature = "raw_ext", since = "1.1.0")]
16pub type blkcnt_t = u64;
17#[stable(feature = "raw_ext", since = "1.1.0")]
18pub type blksize_t = u64;
19#[stable(feature = "raw_ext", since = "1.1.0")]
20pub type dev_t = u64;
21#[stable(feature = "raw_ext", since = "1.1.0")]
22pub type ino_t = u64;
23#[stable(feature = "raw_ext", since = "1.1.0")]
24pub type mode_t = u32;
25#[stable(feature = "raw_ext", since = "1.1.0")]
26pub type nlink_t = u64;
27#[stable(feature = "raw_ext", since = "1.1.0")]
28pub type off_t = u64;
29#[stable(feature = "raw_ext", since = "1.1.0")]
30pub type time_t = i64;
d9579d0f 31
3157f602
XL
32#[stable(feature = "pthread_t", since = "1.8.0")]
33pub type pthread_t = usize;
92a42be0 34
d9579d0f 35#[repr(C)]
b039eaaf 36#[derive(Clone)]
d9579d0f
AL
37#[stable(feature = "raw_ext", since = "1.1.0")]
38pub struct stat {
39 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 40 pub st_dev: i32,
d9579d0f 41 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 42 pub st_mode: u16,
d9579d0f 43 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 44 pub st_nlink: u16,
d9579d0f 45 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 46 pub st_ino: u64,
d9579d0f 47 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 48 pub st_uid: u32,
d9579d0f 49 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 50 pub st_gid: u32,
d9579d0f 51 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 52 pub st_rdev: i32,
d9579d0f 53 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 54 pub st_atime: c_long,
d9579d0f
AL
55 #[stable(feature = "raw_ext", since = "1.1.0")]
56 pub st_atime_nsec: c_long,
57 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 58 pub st_mtime: c_long,
d9579d0f
AL
59 #[stable(feature = "raw_ext", since = "1.1.0")]
60 pub st_mtime_nsec: c_long,
61 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 62 pub st_ctime: c_long,
d9579d0f
AL
63 #[stable(feature = "raw_ext", since = "1.1.0")]
64 pub st_ctime_nsec: c_long,
65 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 66 pub st_birthtime: c_long,
d9579d0f
AL
67 #[stable(feature = "raw_ext", since = "1.1.0")]
68 pub st_birthtime_nsec: c_long,
69 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 70 pub st_size: i64,
d9579d0f 71 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 72 pub st_blocks: i64,
d9579d0f 73 #[stable(feature = "raw_ext", since = "1.1.0")]
7453a54e 74 pub st_blksize: i32,
d9579d0f
AL
75 #[stable(feature = "raw_ext", since = "1.1.0")]
76 pub st_flags: u32,
77 #[stable(feature = "raw_ext", since = "1.1.0")]
78 pub st_gen: u32,
79 #[stable(feature = "raw_ext", since = "1.1.0")]
80 pub st_lspare: i32,
81 #[stable(feature = "raw_ext", since = "1.1.0")]
82 pub st_qspare: [i64; 2],
83}