mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-08 14:54:42 +00:00
std: Use stat definition with 32bit *time fields
We're not ready for Y38K yet.
This commit is contained in:
parent
d82eb8dd40
commit
e4f9a3041a
1 changed files with 1 additions and 9 deletions
|
|
@ -557,18 +557,10 @@ pub const kernel_stat = extern struct {
|
||||||
size: off_t,
|
size: off_t,
|
||||||
blksize: blksize_t,
|
blksize: blksize_t,
|
||||||
blocks: blkcnt_t,
|
blocks: blkcnt_t,
|
||||||
__atim32: timespec32,
|
|
||||||
__mtim32: timespec32,
|
|
||||||
__ctim32: timespec32,
|
|
||||||
__unused: [2]u32,
|
|
||||||
atim: timespec,
|
atim: timespec,
|
||||||
mtim: timespec,
|
mtim: timespec,
|
||||||
ctim: timespec,
|
ctim: timespec,
|
||||||
|
__unused: [2]u32,
|
||||||
const timespec32 = extern struct {
|
|
||||||
tv_sec: i32,
|
|
||||||
tv_nsec: i32,
|
|
||||||
};
|
|
||||||
|
|
||||||
pub fn atime(self: @This()) timespec {
|
pub fn atime(self: @This()) timespec {
|
||||||
return self.atim;
|
return self.atim;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue