authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2025-04-13 17:25:34-04:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2025-04-13 17:25:34-04:00
log2cb69e53b45286019465e78ec1454cf18e67bf24
treecdec8ad919d4c6745582fa7ad4a88bfcc32ae1d7
parente24e9ff7bd658d5bbe1636a0496da8d9dce95974
parent2527c82482a15701f52c304adf14c29f0423a200
signaturebadge-check Signed by PGP key B5690EEEBB952194

Merge pull request #23541 from alexrp/linux-5.10

`std.Target`: Bump minimum Linux kernel and glibc versions according to Debian LTS

2 files changed, 3 insertions(+), 3 deletions(-)

lib/std/Target.zig+2-2
......@@ -455,7 +455,7 @@ pub const Os = struct {
455455 .linux = .{
456456 .range = .{
457457 .min = blk: {
458 const default_min: std.SemanticVersion = .{ .major = 4, .minor = 19, .patch = 0 };
458 const default_min: std.SemanticVersion = .{ .major = 5, .minor = 10, .patch = 0 };
459459
460460 for (std.zig.target.available_libcs) |libc| {
461461 if (libc.arch != arch or libc.os != tag or libc.abi != abi) continue;
......@@ -470,7 +470,7 @@ pub const Os = struct {
470470 .max = .{ .major = 6, .minor = 13, .patch = 4 },
471471 },
472472 .glibc = blk: {
473 const default_min: std.SemanticVersion = .{ .major = 2, .minor = 28, .patch = 0 };
473 const default_min: std.SemanticVersion = .{ .major = 2, .minor = 31, .patch = 0 };
474474
475475 for (std.zig.target.available_libcs) |libc| {
476476 if (libc.os != tag or libc.arch != arch or libc.abi != abi) continue;
lib/std/os/linux.zig+1-1
......@@ -1149,7 +1149,7 @@ pub fn access(path: [*:0]const u8, mode: u32) usize {
11491149}
11501150
11511151pub fn faccessat(dirfd: i32, path: [*:0]const u8, mode: u32, flags: u32) usize {
1152 return syscall4(.faccessat, @as(usize, @bitCast(@as(isize, dirfd))), @intFromPtr(path), mode, flags);
1152 return syscall4(.faccessat2, @as(usize, @bitCast(@as(isize, dirfd))), @intFromPtr(path), mode, flags);
11531153}
11541154
11551155pub fn pipe(fd: *[2]i32) usize {