]> git.lizzy.rs Git - rust.git/blob - src/libstd/os/dragonfly/raw.rs
Remove alternate stack with sigaltstack before unmapping it.
[rust.git] / src / libstd / os / dragonfly / raw.rs
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 #![rustc_deprecated(since = "1.8.0",
15                     reason = "these type aliases are no longer supported by \
16                               the standard library, the `libc` crate on \
17                               crates.io should be used instead for the correct \
18                               definitions")]
19 #![allow(deprecated)]
20
21 use os::raw::c_long;
22 use os::unix::raw::{uid_t, gid_t};
23
24 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blkcnt_t = u64;
25 #[stable(feature = "raw_ext", since = "1.1.0")] pub type blksize_t = u64;
26 #[stable(feature = "raw_ext", since = "1.1.0")] pub type dev_t = u64;
27 #[stable(feature = "raw_ext", since = "1.1.0")] pub type fflags_t = u32;
28 #[stable(feature = "raw_ext", since = "1.1.0")] pub type ino_t = u64;
29 #[stable(feature = "raw_ext", since = "1.1.0")] pub type mode_t = u32;
30 #[stable(feature = "raw_ext", since = "1.1.0")] pub type nlink_t = u64;
31 #[stable(feature = "raw_ext", since = "1.1.0")] pub type off_t = u64;
32 #[stable(feature = "raw_ext", since = "1.1.0")] pub type time_t = i64;
33
34 #[unstable(feature = "pthread_t", issue = "29791")] pub type pthread_t = usize;
35
36 #[repr(C)]
37 #[derive(Clone)]
38 #[stable(feature = "raw_ext", since = "1.1.0")]
39 pub struct stat {
40     #[stable(feature = "raw_ext", since = "1.1.0")]
41     pub st_dev: u32,
42     #[stable(feature = "raw_ext", since = "1.1.0")]
43     pub st_ino: u32,
44     #[stable(feature = "raw_ext", since = "1.1.0")]
45     pub st_mode: u16,
46     #[stable(feature = "raw_ext", since = "1.1.0")]
47     pub st_nlink: u16,
48     #[stable(feature = "raw_ext", since = "1.1.0")]
49     pub st_uid: u32,
50     #[stable(feature = "raw_ext", since = "1.1.0")]
51     pub st_gid: u32,
52     #[stable(feature = "raw_ext", since = "1.1.0")]
53     pub st_rdev: u32,
54     #[stable(feature = "raw_ext", since = "1.1.0")]
55     pub st_atime: i64,
56     #[stable(feature = "raw_ext", since = "1.1.0")]
57     pub st_atime_nsec: i64,
58     #[stable(feature = "raw_ext", since = "1.1.0")]
59     pub st_mtime: i64,
60     #[stable(feature = "raw_ext", since = "1.1.0")]
61     pub st_mtime_nsec: i64,
62     #[stable(feature = "raw_ext", since = "1.1.0")]
63     pub st_ctime: i64,
64     #[stable(feature = "raw_ext", since = "1.1.0")]
65     pub st_ctime_nsec: i64,
66     #[stable(feature = "raw_ext", since = "1.1.0")]
67     pub st_size: i64,
68     #[stable(feature = "raw_ext", since = "1.1.0")]
69     pub st_blocks: i64,
70     #[stable(feature = "raw_ext", since = "1.1.0")]
71     pub st_blksize: u32,
72     #[stable(feature = "raw_ext", since = "1.1.0")]
73     pub st_flags: u32,
74     #[stable(feature = "raw_ext", since = "1.1.0")]
75     pub st_gen: u32,
76     #[stable(feature = "raw_ext", since = "1.1.0")]
77     pub st_lspare: i32,
78     #[stable(feature = "raw_ext", since = "1.1.0")]
79     pub st_birthtime: i64,
80     #[stable(feature = "raw_ext", since = "1.1.0")]
81     pub st_birthtime_nsec: i64,
82 }