Fix stat/timespec definitions for FreeBSD

master
Greg V 2018-12-20 23:54:09 +03:00
parent e5b4748101
commit 054c7ab18a
1 changed files with 11 additions and 6 deletions

View File

@ -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,