]>
Commit | Line | Data |
---|---|---|
b039eaaf | 1 | //! NetBSD-specific raw type definitions |
c1a9b12d SL |
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)] |
c1a9b12d | 12 | |
532ac7d7 | 13 | use crate::os::raw::c_long; |
60c5eb7d | 14 | use crate::os::unix::raw::{gid_t, uid_t}; |
c1a9b12d | 15 | |
60c5eb7d XL |
16 | #[stable(feature = "raw_ext", since = "1.1.0")] |
17 | pub type blkcnt_t = u64; | |
18 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
19 | pub type blksize_t = u64; | |
20 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
21 | pub type dev_t = u64; | |
22 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
23 | pub type fflags_t = u32; | |
24 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
25 | pub type ino_t = u64; | |
26 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
27 | pub type mode_t = u32; | |
28 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
29 | pub type nlink_t = u64; | |
30 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
31 | pub type off_t = u64; | |
32 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
33 | pub type time_t = i64; | |
c1a9b12d | 34 | |
3157f602 XL |
35 | #[stable(feature = "pthread_t", since = "1.8.0")] |
36 | pub type pthread_t = usize; | |
92a42be0 | 37 | |
c1a9b12d | 38 | #[repr(C)] |
b039eaaf | 39 | #[derive(Clone)] |
c1a9b12d SL |
40 | #[stable(feature = "raw_ext", since = "1.1.0")] |
41 | pub struct stat { | |
42 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
7453a54e | 43 | pub st_dev: u64, |
c1a9b12d | 44 | #[stable(feature = "raw_ext", since = "1.1.0")] |
7453a54e | 45 | pub st_mode: u32, |
c1a9b12d | 46 | #[stable(feature = "raw_ext", since = "1.1.0")] |
7453a54e | 47 | pub st_ino: u64, |
c1a9b12d | 48 | #[stable(feature = "raw_ext", since = "1.1.0")] |
7453a54e | 49 | pub st_nlink: u32, |
c1a9b12d SL |
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")] | |
7453a54e | 55 | pub st_rdev: u64, |
c1a9b12d | 56 | #[stable(feature = "raw_ext", since = "1.1.0")] |
7453a54e | 57 | pub st_atime: i64, |
c1a9b12d SL |
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")] | |
7453a54e | 61 | pub st_mtime: i64, |
c1a9b12d SL |
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")] | |
7453a54e | 65 | pub st_ctime: i64, |
c1a9b12d SL |
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")] | |
7453a54e | 69 | pub st_birthtime: i64, |
b039eaaf SL |
70 | #[stable(feature = "raw_ext", since = "1.1.0")] |
71 | pub st_birthtime_nsec: c_long, | |
72 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
7453a54e | 73 | pub st_size: i64, |
c1a9b12d | 74 | #[stable(feature = "raw_ext", since = "1.1.0")] |
7453a54e | 75 | pub st_blocks: i64, |
c1a9b12d | 76 | #[stable(feature = "raw_ext", since = "1.1.0")] |
7453a54e | 77 | pub st_blksize: i32, |
c1a9b12d | 78 | #[stable(feature = "raw_ext", since = "1.1.0")] |
7453a54e | 79 | pub st_flags: u32, |
c1a9b12d SL |
80 | #[stable(feature = "raw_ext", since = "1.1.0")] |
81 | pub st_gen: u32, | |
b039eaaf | 82 | st_spare: [u32; 2], |
c1a9b12d | 83 | } |