authorgravatar for greg@unrelenting.technologyGreg V <greg@unrelenting.technology> 2018-12-20 23:54:09+03:00
committergravatar for greg@unrelenting.technologyGreg V <greg@unrelenting.technology> 2018-12-20 23:54:09+03:00
log054c7ab18a8c9527414164bf68aa3564c29e8931
tree4479d3ad743bdf961ee0b09b2cde02b8ab196bd1
parente5b4748101ca40f5dc4082ce2cb46df0c8607417

Fix stat/timespec definitions for FreeBSD


1 files changed, 11 insertions(+), 6 deletions(-)

std/c/freebsd.zig+11-6
......@@ -50,18 +50,23 @@ pub const Stat = extern struct {
5050 nlink: usize,
5151
5252 mode: u32,
53 __pad0: u16,
5354 uid: u32,
5455 gid: u32,
55 __pad0: u32,
56 __pad1: u32,
5657 rdev: u64,
57 size: i64,
58 blksize: isize,
59 blocks: i64,
6058
6159 atim: timespec,
6260 mtim: timespec,
6361 ctim: timespec,
64 __unused: [3]isize,
62 birthtim: timespec,
63
64 size: i64,
65 blocks: i64,
66 blksize: isize,
67 flags: u32,
68 gen: u64,
69 __spare: [10]u64,
6570};
6671
6772pub const timespec = extern struct {
......@@ -72,7 +77,7 @@ pub const timespec = extern struct {
7277pub const dirent = extern struct {
7378 d_fileno: usize,
7479 d_off: i64,
75 d_reclen: u64,
80 d_reclen: u16,
7681 d_type: u8,
7782 d_pad0: u8,
7883 d_namlen: u16,