Zig 0.17.0-dev (Split by item) This is an example of documentation generated by
ZigDoc , an alternative to Zig's built-in
Auto Doc feature. See also
examples in other modes/formats . The project being documented here (as the example) is the Zig standard library.
std › c › UTIME Public Constant UTIME Doc Source Public Constant std.c.UTIME
pub const UTIME = switch (native_os ) File c.zig: 98
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118 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 ,
}
For use with
utimensatandfutimens.