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 //! OpenBSD-specific raw type definitions
13 #![stable(feature = "raw_ext", since = "1.1.0")]
16 use os::unix::raw::{uid_t, gid_t};
18 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blkcnt_t = i64;
19 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blksize_t = u32;
20 #[stable(feature = "raw_ext", since = "1.1.0")] pub type dev_t = i32;
21 #[stable(feature = "raw_ext", since = "1.1.0")] pub type fflags_t = u32;
22 #[stable(feature = "raw_ext", since = "1.1.0")] pub type ino_t = u64;
23 #[stable(feature = "raw_ext", since = "1.1.0")] pub type mode_t = u32;
24 #[stable(feature = "raw_ext", since = "1.1.0")] pub type nlink_t = u32;
25 #[stable(feature = "raw_ext", since = "1.1.0")] pub type off_t = i64;
26 #[stable(feature = "raw_ext", since = "1.1.0")] pub type time_t = i64;
29 #[stable(feature = "raw_ext", since = "1.1.0")]
31 #[stable(feature = "raw_ext", since = "1.1.0")]
33 #[stable(feature = "raw_ext", since = "1.1.0")]
35 #[stable(feature = "raw_ext", since = "1.1.0")]
37 #[stable(feature = "raw_ext", since = "1.1.0")]
38 pub st_nlink: nlink_t,
39 #[stable(feature = "raw_ext", since = "1.1.0")]
41 #[stable(feature = "raw_ext", since = "1.1.0")]
43 #[stable(feature = "raw_ext", since = "1.1.0")]
45 #[stable(feature = "raw_ext", since = "1.1.0")]
47 #[stable(feature = "raw_ext", since = "1.1.0")]
48 pub st_atime_nsec: c_long,
49 #[stable(feature = "raw_ext", since = "1.1.0")]
51 #[stable(feature = "raw_ext", since = "1.1.0")]
52 pub st_mtime_nsec: c_long,
53 #[stable(feature = "raw_ext", since = "1.1.0")]
55 #[stable(feature = "raw_ext", since = "1.1.0")]
56 pub st_ctime_nsec: c_long,
57 #[stable(feature = "raw_ext", since = "1.1.0")]
59 #[stable(feature = "raw_ext", since = "1.1.0")]
60 pub st_blocks: blkcnt_t,
61 #[stable(feature = "raw_ext", since = "1.1.0")]
62 pub st_blksize: blksize_t,
63 #[stable(feature = "raw_ext", since = "1.1.0")]
64 pub st_flags: fflags_t,
65 #[stable(feature = "raw_ext", since = "1.1.0")]
67 #[stable(feature = "raw_ext", since = "1.1.0")]
68 pub st_birthtime: time_t,
69 #[stable(feature = "raw_ext", since = "1.1.0")]
70 pub st_birthtime_nsec: c_long,