Fix stat/timespec definitions for FreeBSD
parent
e5b4748101
commit
054c7ab18a
|
@ -50,18 +50,23 @@ pub const Stat = extern struct {
|
|||
nlink: usize,
|
||||
|
||||
mode: u32,
|
||||
__pad0: u16,
|
||||
uid: u32,
|
||||
gid: u32,
|
||||
__pad0: u32,
|
||||
__pad1: u32,
|
||||
rdev: u64,
|
||||
size: i64,
|
||||
blksize: isize,
|
||||
blocks: i64,
|
||||
|
||||
atim: timespec,
|
||||
mtim: timespec,
|
||||
ctim: timespec,
|
||||
__unused: [3]isize,
|
||||
birthtim: timespec,
|
||||
|
||||
size: i64,
|
||||
blocks: i64,
|
||||
blksize: isize,
|
||||
flags: u32,
|
||||
gen: u64,
|
||||
__spare: [10]u64,
|
||||
};
|
||||
|
||||
pub const timespec = extern struct {
|
||||
|
@ -72,7 +77,7 @@ pub const timespec = extern struct {
|
|||
pub const dirent = extern struct {
|
||||
d_fileno: usize,
|
||||
d_off: i64,
|
||||
d_reclen: u64,
|
||||
d_reclen: u16,
|
||||
d_type: u8,
|
||||
d_pad0: u8,
|
||||
d_namlen: u16,
|
||||
|
|
Loading…
Reference in New Issue