Skip to content

Commit 2cb69e5

Browse files
authored
Merge pull request #23541 from alexrp/linux-5.10
`std.Target`: Bump minimum Linux kernel and glibc versions according to Debian LTS
2 parents e24e9ff + 2527c82 commit 2cb69e5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/std/Target.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1149,7 +1149,7 @@ pub fn access(path: [*:0]const u8, mode: u32) usize {
11491149
}
11501150

11511151
pub 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

11551155
pub fn pipe(fd: *[2]i32) usize {

0 commit comments

Comments
 (0)