| ... | @@ -3117,6 +3117,11 @@ pub fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int) errno.Error!c_int { | ... | @@ -3117,6 +3117,11 @@ pub fn openat(fd: c_int, file: [*:0]const u8, oflag: c_int) errno.Error!c_int { |
| 3117 | if (rc == -1) return errno.fromInt(errno.fromLibC()); | 3117 | if (rc == -1) return errno.fromInt(errno.fromLibC()); |
| 3118 | return rc; | 3118 | return rc; |
| 3119 | } | 3119 | } |
| | 3120 | pub fn openat4(fd: c_int, file: [*:0]const u8, oflag: c_int, mode: mode_t) errno.Error!c_int { |
| | 3121 | const rc = libc.openat(fd, file, oflag, mode); |
| | 3122 | if (rc == -1) return errno.fromInt(errno.fromLibC()); |
| | 3123 | return rc; |
| | 3124 | } |
| 3120 | pub fn close(fd: c_int) errno.Error!void { | 3125 | pub fn close(fd: c_int) errno.Error!void { |
| 3121 | const rc = libc.close(fd); | 3126 | const rc = libc.close(fd); |
| 3122 | if (rc == -1) return errno.fromInt(errno.fromLibC()); | 3127 | if (rc == -1) return errno.fromInt(errno.fromLibC()); |