| ... | @@ -167,6 +167,18 @@ pub const timespec = switch (native_os) { | ... | @@ -167,6 +167,18 @@ pub const timespec = switch (native_os) { |
| 167 | .openbsd, .haiku => extern struct { | 167 | .openbsd, .haiku => extern struct { |
| 168 | sec: time_t, | 168 | sec: time_t, |
| 169 | nsec: isize, | 169 | 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 | }; |
| 170 | }, | 182 | }, |
| 171 | else => void, | 183 | else => void, |
| 172 | }; | 184 | }; |