|
1 | 1 | use crate::off_t; |
2 | 2 | use crate::prelude::*; |
3 | 3 |
|
4 | | -#[repr(C)] |
5 | | -#[derive(Debug)] |
6 | | -#[cfg_attr(feature = "extra_traits", derive(Eq, Hash, PartialEq))] |
7 | | -pub struct stat { |
8 | | - pub st_dev: crate::dev_t, |
9 | | - pub st_ino: crate::ino_t, |
10 | | - pub st_mode: crate::mode_t, |
11 | | - pub st_nlink: crate::nlink_t, |
12 | | - pub st_uid: crate::uid_t, |
13 | | - pub st_gid: crate::gid_t, |
14 | | - pub st_rdev: crate::dev_t, |
15 | | - pub st_atime: crate::time_t, |
16 | | - pub st_atime_nsec: c_long, |
17 | | - pub st_mtime: crate::time_t, |
18 | | - pub st_mtime_nsec: c_long, |
19 | | - pub st_ctime: crate::time_t, |
20 | | - pub st_ctime_nsec: c_long, |
21 | | - pub st_size: off_t, |
22 | | - pub st_blocks: crate::blkcnt_t, |
23 | | - pub st_blksize: crate::blksize_t, |
24 | | - pub st_flags: crate::fflags_t, |
25 | | - pub st_gen: u32, |
26 | | - pub st_lspare: i32, |
27 | | - pub st_birthtime: crate::time_t, |
28 | | - pub st_birthtime_nsec: c_long, |
29 | | - __unused: [u8; 8], |
30 | | -} |
31 | | - |
32 | | -impl Copy for crate::stat {} |
33 | | -impl Clone for crate::stat { |
34 | | - fn clone(&self) -> crate::stat { |
35 | | - *self |
| 4 | +s! { |
| 5 | + pub struct stat { |
| 6 | + pub st_dev: crate::dev_t, |
| 7 | + pub st_ino: crate::ino_t, |
| 8 | + pub st_mode: crate::mode_t, |
| 9 | + pub st_nlink: crate::nlink_t, |
| 10 | + pub st_uid: crate::uid_t, |
| 11 | + pub st_gid: crate::gid_t, |
| 12 | + pub st_rdev: crate::dev_t, |
| 13 | + pub st_atime: crate::time_t, |
| 14 | + pub st_atime_nsec: c_long, |
| 15 | + pub st_mtime: crate::time_t, |
| 16 | + pub st_mtime_nsec: c_long, |
| 17 | + pub st_ctime: crate::time_t, |
| 18 | + pub st_ctime_nsec: c_long, |
| 19 | + pub st_size: off_t, |
| 20 | + pub st_blocks: crate::blkcnt_t, |
| 21 | + pub st_blksize: crate::blksize_t, |
| 22 | + pub st_flags: crate::fflags_t, |
| 23 | + pub st_gen: u32, |
| 24 | + pub st_lspare: i32, |
| 25 | + pub st_birthtime: crate::time_t, |
| 26 | + pub st_birthtime_nsec: c_long, |
| 27 | + __unused: [u8; 8], |
36 | 28 | } |
37 | 29 | } |
0 commit comments