glibc/sysdeps/unix
Adhemerval Zanella 735cc66813 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 4d0fe291ae 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 5f828ff824)
2023-05-31 15:31:56 -03:00
..
alpha
arm
bsd
i386
inet
mips
powerpc
sh
sysv/linux io: Fix F_GETLK, F_SETLK, and F_SETLKW for powerpc64 2023-05-31 15:31:56 -03:00
x86_64
confstr.h
get_child_max.c
getlogin_r.c
getlogin.c
getpagesize.c
grantpt.c
ifreq.c
Implies
make-syscalls.sh
Makefile
setxid.h
sockatmark.c
syscall-template.S
syscall.S
syscalls.list
sysdep.h