| author | |
| committer | |
| log | f0b155d3627f8c19868be1b2f15d71cda908b575 |
| tree | f76272c50ca317caf24a8295ae419f00e56944d3 |
| parent | 53f9178eb7e42cd15d20fb57d190ddd8760ed55f |
| signature |
1 files changed, 5 insertions(+), 0 deletions(-)
mod.zig+5| ... | ... | @@ -3722,3 +3722,8 @@ pub fn getcwd(buf: []u8) ![*:0]u8 { |
| 3722 | 3722 | if (rc == null) return errno.fromInt(errno.fromLibC()); |
| 3723 | 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 | } |