about summary refs log tree commit diff
path: root/elf
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-05-30 16:40:38 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-05-31 15:31:56 -0300
commit735cc668131e830d6d61820e06999505f29ed25c (patch)
treef4b5b30296c69e856caf884a1ebbdb3a45d2c2c2 /elf
parent53b58a681d62ec3eadae331326ddcc71fdf1e32a (diff)
downloadglibc-735cc668131e830d6d61820e06999505f29ed25c.tar.gz
glibc-735cc668131e830d6d61820e06999505f29ed25c.tar.xz
glibc-735cc668131e830d6d61820e06999505f29ed25c.zip
io: Fix F_GETLK, F_SETLK, and F_SETLKW for powerpc64
Different than other 64 bit architectures, powerpc64 defines the
LFS POSIX lock constants  with values similar to 32 ABI, which
are meant to be used with fcntl64 syscall.  Since powerpc64 kABI
does not have fcntl, the constants are adjusted with the
FCNTL_ADJUST_CMD macro.

The 4d0fe291aed3a476a changed the logic of generic constants
LFS value are equal to the default values; which is now wrong
for powerpc64.

Fix the value by explicit define the previous glibc constants
(powerpc64 does not need to use the 32 kABI value, but it simplifies
the FCNTL_ADJUST_CMD which should be kept as compatibility).

Checked on powerpc64-linux-gnu and powerpc-linux-gnu.

(cherry picked from commit 5f828ff824e3b7cd133ef905b8ae25ab8a8f3d66)
Diffstat (limited to 'elf')
0 files changed, 0 insertions, 0 deletions