| author | |
| committer | |
| log | 51728f10535d9a10fcee85a6e03ee82e3211a149 |
| tree | e9133801483febfde6c37eefd93e82e008cc8888 |
| parent | ceb59b48b4de02a8ceaeae2eb480cc769133add3 |
| signature | Commit is signed but in an unrecognized format. |
1 files changed, 12 insertions(+), 0 deletions(-)
lib/std/c.zig+12| ... | ... | @@ -167,6 +167,18 @@ pub const timespec = switch (native_os) { |
| 167 | 167 | .openbsd, .haiku => extern struct { |
| 168 | 168 | sec: time_t, |
| 169 | 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 | 183 | else => void, |
| 172 | 184 | }; |