linux-user/syscall.c: eliminate other explicit LFS usages
authorMichael Tokarev <mjt@tls.msk.ru>
Thu, 29 Aug 2024 06:59:51 +0000 (09:59 +0300)
committerMichael Tokarev <mjt@tls.msk.ru>
Fri, 20 Sep 2024 05:06:56 +0000 (08:06 +0300)
commit99174ce39e86ec6aea7bb7ce326b16e3eed9e3da
treed6469a57a897852c6da29606b09add24279a3c8d
parentac1bbe8ca46c550b3ad99c85744119a3ace7b4f4
linux-user/syscall.c: eliminate other explicit LFS usages

Since we alwasy build with LFS enabled, and with -D_FILE_OFFSET_BITS=64
in particular, there is no need to use 64bit versions of various system
calls and constants, regular ones will do just fine.  Eliminate a few
last uses of the following constructs in linux-user/syscall.c:
  off64_t
  ftruncate64()
  lseek64()
  pread64()
  pwrite64()

This way it can be built on systems where the 64bit variants of
everything is not defined (since the system always uses 64bit
variants), such as on recent MUSL.

Resolves: 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