]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
syscall: fix fstatfs(2) use for x32
authorEric Wong <e@80x24.org>
Thu, 1 May 2025 23:18:10 +0000 (23:18 +0000)
committerEric Wong <e@80x24.org>
Sat, 3 May 2025 19:09:25 +0000 (19:09 +0000)
commit119d242e62a7582ed2b40c7aceb9b0491b7e8bd9
tree621423ee5ff726679d814334373816653550a1a1
parent0845e3f65ee886cfd4034a2b471006cfa7144a0e
syscall: fix fstatfs(2) use for x32

x32 syscalls all seem to have 0x40000000 added to them, so the
low x86-64 number seems obviously wrong.  Tested on an x32 btrfs
chroot where I also realized the statfs.f_type field is 8 bytes
since x32 kernels are 64-bit.
lib/PublicInbox/Syscall.pm