diff --git a/File.zig b/File.zig index 216b2c5252291c297a083a4ec045067cf1e5e655..4a6b62de11ca31dd387ec7ff71a4cc98ea06f404 100644 --- a/File.zig +++ b/File.zig @@ -183,3 +183,7 @@ pub fn mmap(self: File) ![]const u8 { 0, ); } + +pub fn utime(self: File, times: [2]sys.struct_timespec) !void { + return sys.futimens(@intFromEnum(self.fd), times); +}