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 | 557 | size: off_t, |
| 558 | 558 | blksize: blksize_t, |
| 559 | 559 | blocks: blkcnt_t, |
| 560 | | __atim32: timespec32, |
| 561 | | __mtim32: timespec32, |
| 562 | | __ctim32: timespec32, |
| 563 | | __unused: [2]u32, |
| 564 | 560 | atim: timespec, |
| 565 | 561 | mtim: timespec, |
| 566 | 562 | ctim: timespec, |
| 567 | | |
| 568 | | const timespec32 = extern struct { |
| 569 | | tv_sec: i32, |
| 570 | | tv_nsec: i32, |
| 571 | | }; |
| 563 | __unused: [2]u32, |
| 572 | 564 | |
| 573 | 565 | pub fn atime(self: @This()) timespec { |
| 574 | 566 | return self.atim; |