Merge pull request #23541 from alexrp/linux-5.10

`std.Target`: Bump minimum Linux kernel and glibc versions according to Debian LTS
This commit is contained in:
Andrew Kelley 2025-04-13 17:25:34 -04:00 committed by GitHub
commit 2cb69e53b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View file

@ -455,7 +455,7 @@ pub const Os = struct {
.linux = .{ .linux = .{
.range = .{ .range = .{
.min = blk: { .min = blk: {
const default_min: std.SemanticVersion = .{ .major = 4, .minor = 19, .patch = 0 }; const default_min: std.SemanticVersion = .{ .major = 5, .minor = 10, .patch = 0 };
for (std.zig.target.available_libcs) |libc| { for (std.zig.target.available_libcs) |libc| {
if (libc.arch != arch or libc.os != tag or libc.abi != abi) continue; if (libc.arch != arch or libc.os != tag or libc.abi != abi) continue;
@ -470,7 +470,7 @@ pub const Os = struct {
.max = .{ .major = 6, .minor = 13, .patch = 4 }, .max = .{ .major = 6, .minor = 13, .patch = 4 },
}, },
.glibc = blk: { .glibc = blk: {
const default_min: std.SemanticVersion = .{ .major = 2, .minor = 28, .patch = 0 }; const default_min: std.SemanticVersion = .{ .major = 2, .minor = 31, .patch = 0 };
for (std.zig.target.available_libcs) |libc| { for (std.zig.target.available_libcs) |libc| {
if (libc.os != tag or libc.arch != arch or libc.abi != abi) continue; if (libc.os != tag or libc.arch != arch or libc.abi != abi) continue;

View file

@ -1149,7 +1149,7 @@ pub fn access(path: [*:0]const u8, mode: u32) usize {
} }
pub fn faccessat(dirfd: i32, path: [*:0]const u8, mode: u32, flags: u32) usize { pub fn faccessat(dirfd: i32, path: [*:0]const u8, mode: u32, flags: u32) usize {
return syscall4(.faccessat, @as(usize, @bitCast(@as(isize, dirfd))), @intFromPtr(path), mode, flags); return syscall4(.faccessat2, @as(usize, @bitCast(@as(isize, dirfd))), @intFromPtr(path), mode, flags);
} }
pub fn pipe(fd: *[2]i32) usize { pub fn pipe(fd: *[2]i32) usize {