]>
Commit | Line | Data |
---|---|---|
d9579d0f AL |
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. | |
4 | // | |
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. | |
10 | ||
11 | //! Dragonfly-specific raw type definitions | |
12 | ||
13 | #![stable(feature = "raw_ext", since = "1.1.0")] | |
14 | ||
15 | use os::raw::c_long; | |
16 | use os::unix::raw::{uid_t, gid_t}; | |
17 | ||
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 = u32; | |
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 = u16; | |
24 | #[stable(feature = "raw_ext", since = "1.1.0")] pub type nlink_t = u16; | |
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; | |
27 | ||
92a42be0 SL |
28 | #[unstable(feature = "pthread_t", issue = "29791")] pub type pthread_t = usize; |
29 | ||
d9579d0f | 30 | #[repr(C)] |
b039eaaf | 31 | #[derive(Clone)] |
d9579d0f AL |
32 | #[stable(feature = "raw_ext", since = "1.1.0")] |
33 | pub struct stat { | |
34 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
35 | pub st_ino: ino_t, | |
36 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
37 | pub st_nlink: nlink_t, | |
38 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
39 | pub st_dev: dev_t, | |
40 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
41 | pub st_mode: mode_t, | |
42 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
43 | pub st_padding1: u16, | |
44 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
45 | pub st_uid: uid_t, | |
46 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
47 | pub st_gid: gid_t, | |
48 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
49 | pub st_rdev: dev_t, | |
50 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
51 | pub st_atime: time_t, | |
52 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
53 | pub st_atime_nsec: c_long, | |
54 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
55 | pub st_mtime: time_t, | |
56 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
57 | pub st_mtime_nsec: c_long, | |
58 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
59 | pub st_ctime: time_t, | |
60 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
61 | pub st_ctime_nsec: c_long, | |
62 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
63 | pub st_size: off_t, | |
64 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
65 | pub st_blocks: blkcnt_t, | |
66 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
67 | pub st_blksize: blksize_t, | |
68 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
69 | pub st_flags: fflags_t, | |
70 | #[stable(feature = "raw_ext", since = "1.1.0")] | |
e9174d1e | 71 | pub st_gen: u32, |
d9579d0f | 72 | #[stable(feature = "raw_ext", since = "1.1.0")] |
e9174d1e | 73 | pub st_lspare: i32, |
d9579d0f | 74 | #[stable(feature = "raw_ext", since = "1.1.0")] |
e9174d1e | 75 | pub st_qspare1: i64, |
d9579d0f | 76 | #[stable(feature = "raw_ext", since = "1.1.0")] |
e9174d1e | 77 | pub st_qspare2: i64, |
d9579d0f | 78 | } |