| ... | @@ -3758,3 +3758,9 @@ pub fn copy_file_range(fd_int: c_int, off_in: ?*off_t, fd_out: c_int, off_out: ? | ... | @@ -3758,3 +3758,9 @@ pub fn copy_file_range(fd_int: c_int, off_in: ?*off_t, fd_out: c_int, off_out: ? |
| 3758 | std.debug.assert(rc >= 0); | 3758 | std.debug.assert(rc >= 0); |
| 3759 | return @intCast(rc); | 3759 | return @intCast(rc); |
| 3760 | } | 3760 | } |
| | 3761 | pub fn dup(fildes: c_int) !c_int { |
| | 3762 | const rc = libc.dup(fildes); |
| | 3763 | if (rc == -1) return errno.fromInt(errno.fromLibC()); |
| | 3764 | std.debug.assert(rc >= 0); |
| | 3765 | return rc; |
| | 3766 | } |