| ... | @@ -3722,3 +3722,8 @@ pub fn getcwd(buf: []u8) ![*:0]u8 { | ... | @@ -3722,3 +3722,8 @@ pub fn getcwd(buf: []u8) ![*:0]u8 { |
| 3722 | if (rc == null) return errno.fromInt(errno.fromLibC()); | 3722 | if (rc == null) return errno.fromInt(errno.fromLibC()); |
| 3723 | return rc.?; | 3723 | return rc.?; |
| 3724 | } | 3724 | } |
| | 3725 | pub fn fchmod(fd: c_int, mode: mode_t) !void { |
| | 3726 | const rc = libc.fchmod(fd, mode); |
| | 3727 | if (rc == -1) return errno.fromInt(errno.fromLibC()); |
| | 3728 | std.debug.assert(rc == 0); |
| | 3729 | } |