authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2025-12-29 21:02:11-05:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2025-12-29 21:06:08-05:00
log51728f10535d9a10fcee85a6e03ee82e3211a149
treee9133801483febfde6c37eefd93e82e008cc8888
parentceb59b48b4de02a8ceaeae2eb480cc769133add3
signature Commit is signed but in an unrecognized format.

openbsd: add timespec OMIT and NOW definitions


1 files changed, 12 insertions(+), 0 deletions(-)

lib/std/c.zig+12
......@@ -167,6 +167,18 @@ pub const timespec = switch (native_os) {
167167 .openbsd, .haiku => extern struct {
168168 sec: time_t,
169169 nsec: isize,
170
171 /// For use with `utimensat` and `futimens`.
172 pub const NOW: timespec = .{
173 .sec = 0, // ignored
174 .nsec = -2,
175 };
176
177 /// For use with `utimensat` and `futimens`.
178 pub const OMIT: timespec = .{
179 .sec = 0, // ignored
180 .nsec = -1,
181 };
170182 },
171183 else => void,
172184};