| author | |
| committer | |
| log | da95409f3159a623b42aae5ff4bedd965f14e836 |
| tree | 485d4ecaee4afcb248f02de2f98e1848ee473212 |
| parent | c7c4e8d802c5c8ab2dc9d064c3985836e6677115 |
| parent | 7c68ab1d1085925ec33dc0f8a6695006b2d7a85d |
Reviewed-on: https://codeberg.org/ziglang/zig/pulls/310623 files changed, 3 insertions(+), 2 deletions(-)
lib/std/Io/Threaded.zig+1| ... | ... | @@ -16796,6 +16796,7 @@ fn createFileMap( |
| 16796 | 16796 | .OVERFLOW => return error.Unseekable, |
| 16797 | 16797 | .BADF => return errnoBug(err), // Always a race condition. |
| 16798 | 16798 | .INVAL => return errnoBug(err), // Invalid parameters to mmap() |
| 16799 | .OPNOTSUPP => return errnoBug(err), // Bad flags with MAP.SHARED_VALIDATE on Linux. | |
| 16799 | 16800 | else => return posix.unexpectedErrno(err), |
| 16800 | 16801 | } |
| 16801 | 16802 | }; |
lib/std/os/linux.zig+1| ... | ... | @@ -146,6 +146,7 @@ pub const MAP_TYPE = enum(u4) { |
| 146 | 146 | SHARED = 0x01, |
| 147 | 147 | PRIVATE = 0x02, |
| 148 | 148 | SHARED_VALIDATE = 0x03, |
| 149 | DROPPABLE = 0x08, | |
| 149 | 150 | }; |
| 150 | 151 | |
| 151 | 152 | pub const MAP = switch (native_arch) { |
src/codegen/llvm.zig+1-2| ... | ... | @@ -12608,8 +12608,7 @@ fn ccAbiPromoteInt(cc: std.builtin.CallingConvention, zcu: *Zcu, ty: Type) ?std. |
| 12608 | 12608 | } |
| 12609 | 12609 | const int_info = switch (ty.zigTypeTag(zcu)) { |
| 12610 | 12610 | .bool => Type.u1.intInfo(zcu), |
| 12611 | .int, .@"enum", .error_set => ty.intInfo(zcu), | |
| 12612 | else => return null, | |
| 12611 | else => if (ty.isAbiInt(zcu)) ty.intInfo(zcu) else return null, | |
| 12613 | 12612 | }; |
| 12614 | 12613 | return switch (target.os.tag) { |
| 12615 | 12614 | .driverkit, .ios, .maccatalyst, .macos, .watchos, .tvos, .visionos => switch (int_info.bits) { |