aboutsummaryrefslogtreecommitdiff
path: root/tools/generate_linux_syscalls.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-07-21 12:45:47 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-07-29 09:50:41 +0200
commit13945548fcd4fe3aab0879b670db1fe8131d8b0e (patch)
treec3d78b69f446ebf0c62821a3b2866142818762e5 /tools/generate_linux_syscalls.zig
parent4e5068c35cef5e1b3366aa05de60023b9fcd98e6 (diff)
downloadzig-13945548fcd4fe3aab0879b670db1fe8131d8b0e.tar.gz
zig-13945548fcd4fe3aab0879b670db1fe8131d8b0e.zip
std.fs: Rework to always use statx() instead of fstat()/fstatat() on Linux.
statx() is strictly superior to stat() and friends. We can do this because the standard library declares Linux 4.19 to be the minimum version supported in std.Target. This is also necessary on riscv32 where there is only statx(). While here, I improved std.fs.File.metadata() to gather as much information as possible when calling statx() since that is the expectation from this particular API.
Diffstat (limited to 'tools/generate_linux_syscalls.zig')
0 files changed, 0 insertions, 0 deletions