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
14 use os::unix::raw::{uid_t, gid_t};
16 pub type blkcnt_t = i64;
17 pub type blksize_t = u32;
19 pub type fflags_t = u32; // type not declared, but struct stat have u_int32_t
21 pub type mode_t = u32;
22 pub type nlink_t = u32;
24 pub type time_t = i64;
31 pub st_nlink: nlink_t,
36 pub st_atime_nsec: c_long,
38 pub st_mtime_nsec: c_long,
40 pub st_ctime_nsec: c_long,
42 pub st_blocks: blkcnt_t,
43 pub st_blksize: blksize_t,
44 pub st_flags: fflags_t,
46 pub st_birthtime: time_t,
47 pub st_birthtime_nsec: c_long,