Skip to content

Commit 68bd82d

Browse files
linusgandrewrk
authored andcommitted
std.posix: Handle USER_MAPPED_FILE in windows ftruncate() impl
1 parent e47f340 commit 68bd82d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/std/posix.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1056,6 +1056,7 @@ pub fn ftruncate(fd: fd_t, length: u64) TruncateError!void {
10561056
.SUCCESS => return,
10571057
.INVALID_HANDLE => unreachable, // Handle not open for writing
10581058
.ACCESS_DENIED => return error.AccessDenied,
1059+
.USER_MAPPED_FILE => return error.AccessDenied,
10591060
else => return windows.unexpectedStatus(rc),
10601061
}
10611062
}

0 commit comments

Comments
 (0)