For use with utimensat and futimens.
pub const UTIME = switch (native_os)
pub const UTIME = switch (native_os) {
.dragonfly, .freebsd, .illumos, .driverkit, .ios, .maccatalyst, .macos, .tvos, .visionos, .watchos, .wasi => struct {
pub const NOW: timespec = .{ .sec = 0, .nsec = -1 };
pub const OMIT: timespec = .{ .sec = 0, .nsec = -2 };
},
.emscripten => emscripten.UTIME,
.haiku => struct {
pub const NOW: timespec = .{ .sec = 0, .nsec = 1000000000 };
pub const OMIT: timespec = .{ .sec = 0, .nsec = 1000000001 };
},
.linux => linux.UTIME,
.netbsd => struct {
pub const NOW: timespec = .{ .sec = 0, .nsec = 0x3fffffff };
pub const OMIT: timespec = .{ .sec = 0, .nsec = 0x3ffffffe };
},
.openbsd, .serenity => struct {
pub const NOW: timespec = .{ .sec = 0, .nsec = -2 };
pub const OMIT: timespec = .{ .sec = 0, .nsec = -1 };
},
else => void,
}