authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-04-20 22:05:23+02:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2021-04-21 16:31:30+02:00
loge4f9a3041af7fc0c8fceb0bf15b14b51d54d3869
tree1c597d86b78c03c8e3d193ce764fe93a99d7bdb9
parentd82eb8dd404b5971d3469bdd1a5ed6907fbbb281

std: Use stat definition with 32bit *time fields

We're not ready for Y38K yet.

1 files changed, 1 insertions(+), 9 deletions(-)

lib/std/os/bits/linux/powerpc.zig+1-9
...@@ -557,18 +557,10 @@ pub const kernel_stat = extern struct {...@@ -557,18 +557,10 @@ pub const kernel_stat = extern struct {
557 size: off_t,557 size: off_t,
558 blksize: blksize_t,558 blksize: blksize_t,
559 blocks: blkcnt_t,559 blocks: blkcnt_t,
560 __atim32: timespec32,
561 __mtim32: timespec32,
562 __ctim32: timespec32,
563 __unused: [2]u32,
564 atim: timespec,560 atim: timespec,
565 mtim: timespec,561 mtim: timespec,
566 ctim: timespec,562 ctim: timespec,
567563 __unused: [2]u32,
568 const timespec32 = extern struct {
569 tv_sec: i32,
570 tv_nsec: i32,
571 };
572564
573 pub fn atime(self: @This()) timespec {565 pub fn atime(self: @This()) timespec {
574 return self.atim;566 return self.atim;