For 32bit ARM fcntl64 syscall there are 2 possible argument types,
depending on cpu_env->eabi. For other architectures, it is plain
struct flock64 in all cases. In order to solve this, old code
used to take address of the conversion function and and run it
through this pointer. Instead, introduce 2 helper macros for
the flock64 conversion, and define them in the same block where
the oabi conversion functions are defined, and use these
helpers directly in the actual code, making each part more
self-contained and easier to read.
Also add comment to the block of code which itroduces the oabi
conversion functions.
Note also there was an inconsistency in the old code: different
the differences in single place we eliminate this difference.
While at it, replace tabs with spaces in nearby code.
Signed-off-by: Michael Tokarev<mjt@tls.msk.ru>
---
linux-user/syscall.c | 40 +++++++++++++++++++++++-----------------
1 file changed, 23 insertions(+), 17 deletions(-)