diff --git a/lib/std/c/darwin.zig b/lib/std/c/darwin.zig index 3f5b8b340ad6b9430850d6743eb96a712858612d..2d72f690243a8620150d0cc66034983516edbefc 100644 --- a/lib/std/c/darwin.zig +++ b/lib/std/c/darwin.zig @@ -395,6 +395,10 @@ pub const Stat = extern struct { pub fn ctime(self: @This()) timespec { return self.ctimespec; } + + pub fn birthtime(self: @This()) timespec { + return self.birthtimespec; + } }; pub const timespec = extern struct { diff --git a/lib/std/c/freebsd.zig b/lib/std/c/freebsd.zig index a19ecd3bac8be2eaf60785710350a6d460ef6347..10ab830ab087e7e87b55caaceee7bee5e5cceb5a 100644 --- a/lib/std/c/freebsd.zig +++ b/lib/std/c/freebsd.zig @@ -283,6 +283,10 @@ pub const Stat = extern struct { pub fn ctime(self: @This()) timespec { return self.ctim; } + + pub fn birthtime(self: @This()) timespec { + return self.birthtim; + } }; pub const timespec = extern struct { diff --git a/lib/std/c/netbsd.zig b/lib/std/c/netbsd.zig index 4fbc7594b07c60ca4200439a6c7d43753b1474b1..17c3bfd83cd69ab3b71dfed3625ec9724aec4682 100644 --- a/lib/std/c/netbsd.zig +++ b/lib/std/c/netbsd.zig @@ -312,6 +312,10 @@ pub const Stat = extern struct { pub fn ctime(self: @This()) timespec { return self.ctim; } + + pub fn birthtime(self: @This()) timespec { + return self.birthtim; + } }; pub const timespec = extern struct { diff --git a/lib/std/c/openbsd.zig b/lib/std/c/openbsd.zig index 6ba11e8e5acde697a972d8c97bea83bdbe4eab10..4ee3351023154a6e171ec603250f4977859c6e48 100644 --- a/lib/std/c/openbsd.zig +++ b/lib/std/c/openbsd.zig @@ -235,6 +235,10 @@ pub const Stat = extern struct { pub fn ctime(self: @This()) timespec { return self.ctim; } + + pub fn birthtime(self: @This()) timespec { + return self.birthtim; + } }; pub const timespec = extern struct {