linux-user/syscall.c: drop 64 suffix from flock64 &Co
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 29 Aug 2024 06:39:50 +0000 (09:39 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 20 Sep 2024 05:06:56 +0000 (08:06 +0300)
commitac1bbe8ca46c550b3ad99c85744119a3ace7b4f4
tree3f6d2ab0507f98aca2c82e7eb3343cc8b066d784
parent5691f4778eb5061fa2e6d18c45a6ed7170d447a1
linux-user/syscall.c: drop 64 suffix from flock64 &Co

Since we are always building with LFS enabled, in particular
with -D_FILE_OFFSET_BITS=64, we should always have struct flock
mapped to the 64bit variant (with off64_t), and F_GETLK mapped
to F_GETLK64 etc, automatically.

So there should be no need to explicitly use the "64" suffix
for these things anymore.

Also fix a misleading comment near safe_fcntl telling us to
always use flock64 (since v2.6.0-1311-g435da5e7092a "linux-user:
Use safe_syscall wrapper for fcntl").

Reference: https://gitlab.com/qemu-project/qemu/-/issues/2215
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/syscall.c