1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
11 //! FreeBSD-specific raw type definitions
13 #![stable(feature = "raw_ext", since = "1.1.0")]
15 #[stable(feature = "raw_ext", since = "1.1.0")] pub type off_t = i64;
16 #[stable(feature = "raw_ext", since = "1.1.0")] pub type dev_t = u32;
17 #[stable(feature = "raw_ext", since = "1.1.0")] pub type ino_t = u32;
18 #[stable(feature = "raw_ext", since = "1.1.0")] pub type mode_t = u16;
19 #[stable(feature = "raw_ext", since = "1.1.0")] pub type nlink_t = u16;
20 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blksize_t = u32;
21 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blkcnt_t = i64;
22 #[stable(feature = "raw_ext", since = "1.1.0")] pub type fflags_t = u32;
25 pub use self::arch
::{stat, time_t}
;
27 #[cfg(target_arch = "x86")]
29 use super::{off_t, dev_t, ino_t, mode_t, nlink_t, blksize_t, blkcnt_t, fflags_t}
;
31 use os
::unix
::raw
::{uid_t, gid_t}
;
33 #[stable(feature = "raw_ext", since = "1.1.0")] pub type time_t = i32;
36 #[stable(feature = "raw_ext", since = "1.1.0")]
38 #[stable(feature = "raw_ext", since = "1.1.0")]
40 #[stable(feature = "raw_ext", since = "1.1.0")]
42 #[stable(feature = "raw_ext", since = "1.1.0")]
44 #[stable(feature = "raw_ext", since = "1.1.0")]
45 pub st_nlink
: nlink_t
,
46 #[stable(feature = "raw_ext", since = "1.1.0")]
48 #[stable(feature = "raw_ext", since = "1.1.0")]
50 #[stable(feature = "raw_ext", since = "1.1.0")]
52 #[stable(feature = "raw_ext", since = "1.1.0")]
54 #[stable(feature = "raw_ext", since = "1.1.0")]
55 pub st_atime_nsec
: c_long
,
56 #[stable(feature = "raw_ext", since = "1.1.0")]
58 #[stable(feature = "raw_ext", since = "1.1.0")]
59 pub st_mtime_nsec
: c_long
,
60 #[stable(feature = "raw_ext", since = "1.1.0")]
62 #[stable(feature = "raw_ext", since = "1.1.0")]
63 pub st_ctime_nsec
: c_long
,
64 #[stable(feature = "raw_ext", since = "1.1.0")]
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_blksize
: blksize_t
,
70 #[stable(feature = "raw_ext", since = "1.1.0")]
71 pub st_flags
: fflags_t
,
72 #[stable(feature = "raw_ext", since = "1.1.0")]
74 #[stable(feature = "raw_ext", since = "1.1.0")]
76 #[stable(feature = "raw_ext", since = "1.1.0")]
77 pub st_birthtime
: time_t
,
78 #[stable(feature = "raw_ext", since = "1.1.0")]
79 pub st_birthtime_nsec
: c_long
,
80 #[stable(feature = "raw_ext", since = "1.1.0")]
81 pub __unused
: [u8; 8],
85 #[cfg(target_arch = "x86_64")]
87 use super::{off_t, dev_t, ino_t, mode_t, nlink_t, blksize_t, blkcnt_t, fflags_t}
;
89 use os
::unix
::raw
::{uid_t, gid_t}
;
91 #[stable(feature = "raw_ext", since = "1.1.0")] pub type time_t = i64;
94 #[stable(feature = "raw_ext", since = "1.1.0")]
96 #[stable(feature = "raw_ext", since = "1.1.0")]
98 #[stable(feature = "raw_ext", since = "1.1.0")]
100 #[stable(feature = "raw_ext", since = "1.1.0")]
102 #[stable(feature = "raw_ext", since = "1.1.0")]
103 pub st_nlink
: nlink_t
,
104 #[stable(feature = "raw_ext", since = "1.1.0")]
106 #[stable(feature = "raw_ext", since = "1.1.0")]
108 #[stable(feature = "raw_ext", since = "1.1.0")]
110 #[stable(feature = "raw_ext", since = "1.1.0")]
111 pub st_atime
: time_t
,
112 #[stable(feature = "raw_ext", since = "1.1.0")]
113 pub st_atime_nsec
: c_long
,
114 #[stable(feature = "raw_ext", since = "1.1.0")]
115 pub st_mtime
: time_t
,
116 #[stable(feature = "raw_ext", since = "1.1.0")]
117 pub st_mtime_nsec
: c_long
,
118 #[stable(feature = "raw_ext", since = "1.1.0")]
119 pub st_ctime
: time_t
,
120 #[stable(feature = "raw_ext", since = "1.1.0")]
121 pub st_ctime_nsec
: c_long
,
122 #[stable(feature = "raw_ext", since = "1.1.0")]
124 #[stable(feature = "raw_ext", since = "1.1.0")]
125 pub st_blocks
: blkcnt_t
,
126 #[stable(feature = "raw_ext", since = "1.1.0")]
127 pub st_blksize
: blksize_t
,
128 #[stable(feature = "raw_ext", since = "1.1.0")]
129 pub st_flags
: fflags_t
,
130 #[stable(feature = "raw_ext", since = "1.1.0")]
132 #[stable(feature = "raw_ext", since = "1.1.0")]
134 #[stable(feature = "raw_ext", since = "1.1.0")]
135 pub st_birthtime
: time_t
,
136 #[stable(feature = "raw_ext", since = "1.1.0")]
137 pub st_birthtime_nsec
: c_long
,