glibc/sysdeps/unix/sysv/linux/powerpc
Aurelien Jarno 434bf72a94 io: Fix record locking contants for powerpc64 with __USE_FILE_OFFSET64
Commit 5f828ff824 ("io: Fix F_GETLK, F_SETLK, and F_SETLKW for
powerpc64") fixed an issue with the value of the lock constants on
powerpc64 when not using __USE_FILE_OFFSET64, but it ended-up also
changing the value when using __USE_FILE_OFFSET64 causing an API change.

Fix that by also checking that define, restoring the pre
4d0fe291ae commit values:

Default values:
- F_GETLK: 5
- F_SETLK: 6
- F_SETLKW: 7

With -D_FILE_OFFSET_BITS=64:
- F_GETLK: 12
- F_SETLK: 13
- F_SETLKW: 14

At the same time, it has been noticed that there was no test for io lock
with __USE_FILE_OFFSET64, so just add one.

Tested on x86_64-linux-gnu, i686-linux-gnu and
powerpc64le-unknown-linux-gnu.

Resolves: BZ #30804.
Co-authored-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
2023-09-07 21:56:31 +02:00
..
bits io: Fix record locking contants for powerpc64 with __USE_FILE_OFFSET64 2023-09-07 21:56:31 +02:00
powerpc32 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
powerpc64 linux: Add pidfd_getpid 2023-09-05 13:08:59 -03:00
sys Add PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG etc. from Linux 6.4 to sys/ptrace.h 2023-08-08 14:38:22 +00:00
Implies
Makefile PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
Versions
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
cpu-features.c PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
cpu-features.h PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
dl-auxv.h
dl-cache.h
dl-support.c
elision-conf.c
elision-conf.h
elision-lock.c
elision-timed.c
elision-trylock.c
elision-unlock.c
get_timebase_freq.c
gettimeofday.c
htm.h
internal-ioctl.h
ipc_priv.h
kernel-features.h
kernel_sigaction.h
kernel_termios.h
ldd-rewrite.sed
libc-start.c
libc-start.h
libc-vdso.h
libpthread-compat.c
nldbl-abi.h
pointer_guard.h
pthread_attr_setstack.c
pthread_attr_setstacksize.c
readelflib.c
rt-sysdep.c
rtld_static_init.h
sigcontextinfo.h
socket-constants-time64.h
struct_kernel_shmid64_ds.h
syscall.S
sysconf.c
sysdep.c
sysdep.h
test-gettimebasefreq-static.c
test-gettimebasefreq.c
test-powerpc-linux-sysconf.c
time.c
tst-hwcap-tunables.c PowerPC: Influence cpu/arch hwcap features via GLIBC_TUNABLES 2023-08-01 07:41:17 -05:00
xstatver.h