authorgravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-11-08 16:34:44+01:00
committergravatar for thatlemon@gmail.comLemonBoy <thatlemon@gmail.com> 2020-11-20 08:38:10+01:00
loge374ae3598669bf856df9d65e405c398b893e325
tree61589544b4d336a09d3edc19b1d198b4ef6c34b7
parent4e2a4e194bb07d08927410012a5a19bbe443c9f2

std: Use newfstatat on PPC64

One more variation in the syscall table, hooray!

1 files changed, 2 insertions(+), 0 deletions(-)

lib/std/os/linux.zig+2
......@@ -1098,6 +1098,8 @@ pub fn lstat(pathname: [*:0]const u8, statbuf: *kernel_stat) usize {
10981098pub fn fstatat(dirfd: i32, path: [*:0]const u8, stat_buf: *kernel_stat, flags: u32) usize {
10991099 if (@hasField(SYS, "fstatat64")) {
11001100 return syscall4(.fstatat64, @bitCast(usize, @as(isize, dirfd)), @ptrToInt(path), @ptrToInt(stat_buf), flags);
1101 } else if (@hasField(SYS, "newfstatat")) {
1102 return syscall4(.newfstatat, @bitCast(usize, @as(isize, dirfd)), @ptrToInt(path), @ptrToInt(stat_buf), flags);
11011103 } else {
11021104 return syscall4(.fstatat, @bitCast(usize, @as(isize, dirfd)), @ptrToInt(path), @ptrToInt(stat_buf), flags);
11031105 }