1 //! NetBSD-specific raw type definitions 2 3 #![stable(feature = "raw_ext", since = "1.1.0")] 4 #![rustc_deprecated( 5 since = "1.8.0", 6 reason = "these type aliases are no longer supported by \ 7 the standard library, the `libc` crate on \ 8 crates.io should be used instead for the correct \ 9 definitions" 10 )] 11 #![allow(deprecated)] 12 13 use crate::os::raw::c_long; 14 use crate::os::unix::raw::{gid_t, uid_t}; 15 16 #[stable(feature = "raw_ext", since = "1.1.0")] 17 pub type blkcnt_t = u64; 18 #[stable(feature = "raw_ext", since = "1.1.0")] 19 pub type blksize_t = u64; 20 #[stable(feature = "raw_ext", since = "1.1.0")] 21 pub type dev_t = u64; 22 #[stable(feature = "raw_ext", since = "1.1.0")] 23 pub type fflags_t = u32; 24 #[stable(feature = "raw_ext", since = "1.1.0")] 25 pub type ino_t = u64; 26 #[stable(feature = "raw_ext", since = "1.1.0")] 27 pub type mode_t = u32; 28 #[stable(feature = "raw_ext", since = "1.1.0")] 29 pub type nlink_t = u64; 30 #[stable(feature = "raw_ext", since = "1.1.0")] 31 pub type off_t = u64; 32 #[stable(feature = "raw_ext", since = "1.1.0")] 33 pub type time_t = i64; 34 35 #[stable(feature = "pthread_t", since = "1.8.0")] 36 pub type pthread_t = usize; 37 38 #[repr(C)] 39 #[derive(Clone)] 40 #[stable(feature = "raw_ext", since = "1.1.0")] 41 pub struct stat { 42 #[stable(feature = "raw_ext", since = "1.1.0")] 43 pub st_dev: u64, 44 #[stable(feature = "raw_ext", since = "1.1.0")] 45 pub st_mode: u32, 46 #[stable(feature = "raw_ext", since = "1.1.0")] 47 pub st_ino: u64, 48 #[stable(feature = "raw_ext", since = "1.1.0")] 49 pub st_nlink: u32, 50 #[stable(feature = "raw_ext", since = "1.1.0")] 51 pub st_uid: uid_t, 52 #[stable(feature = "raw_ext", since = "1.1.0")] 53 pub st_gid: gid_t, 54 #[stable(feature = "raw_ext", since = "1.1.0")] 55 pub st_rdev: u64, 56 #[stable(feature = "raw_ext", since = "1.1.0")] 57 pub st_atime: i64, 58 #[stable(feature = "raw_ext", since = "1.1.0")] 59 pub st_atime_nsec: c_long, 60 #[stable(feature = "raw_ext", since = "1.1.0")] 61 pub st_mtime: i64, 62 #[stable(feature = "raw_ext", since = "1.1.0")] 63 pub st_mtime_nsec: c_long, 64 #[stable(feature = "raw_ext", since = "1.1.0")] 65 pub st_ctime: i64, 66 #[stable(feature = "raw_ext", since = "1.1.0")] 67 pub st_ctime_nsec: c_long, 68 #[stable(feature = "raw_ext", since = "1.1.0")] 69 pub st_birthtime: i64, 70 #[stable(feature = "raw_ext", since = "1.1.0")] 71 pub st_birthtime_nsec: c_long, 72 #[stable(feature = "raw_ext", since = "1.1.0")] 73 pub st_size: i64, 74 #[stable(feature = "raw_ext", since = "1.1.0")] 75 pub st_blocks: i64, 76 #[stable(feature = "raw_ext", since = "1.1.0")] 77 pub st_blksize: i32, 78 #[stable(feature = "raw_ext", since = "1.1.0")] 79 pub st_flags: u32, 80 #[stable(feature = "raw_ext", since = "1.1.0")] 81 pub st_gen: u32, 82 st_spare: [u32; 2], 83 } 84