authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-30 02:05:56 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2026-05-30 02:05:56 -07:00
logc855473c8bd15dd24a4e8b6911b7e006062004ba
tree26399a49b0aa8915d0acad7b8c042ae98e4af5bd
parentff118ab7234a8881b4c03a47e27ac9b204309ce1
signaturebadge-check Signed by SSH key SHA256:4hHJbtBRU58AYXwjL7fkz2fnQHdiye8x1QpTCQ0sHNw

add File.chmod


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

File.zig+4
......@@ -219,3 +219,7 @@ pub fn isatty(self: File) bool {
219219pub fn seekTo(self: File, pos: u64) !void {
220220 return sys.lseek(@intFromEnum(self.fd), @bitCast(pos), sys.SEEK.SET);
221221}
222
223pub fn chmod(self: File, mode: Mode) !void {
224 return sys.fchmod(@intFromEnum(self.fd), mode);
225}