authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-06 02:59:50 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-06 02:59:50 -07:00
log29cb44358aabe5d30a3ca2917e4bceaf42fb2aaf
tree567a29610db411eadb4497c5a1002a1235145ef4
parent9169bfabd576773a38ce496c5548e7823c12902c
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add File.utime()


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

File.zig+4
......@@ -183,3 +183,7 @@ pub fn mmap(self: File) ![]const u8 {
183183 0,
184184 );
185185}
186
187pub fn utime(self: File, times: [2]sys.struct_timespec) !void {
188 return sys.futimens(@intFromEnum(self.fd), times);
189}