Skip to content
Commit 4d0fe291 authored by Adhemerval Zanella's avatar Adhemerval Zanella
Browse files

io: Fix record locking contants on 32 bit arch with 64 bit default time_t (BZ#30477)



For architecture with default 64 bit time_t support, the kernel
does not provide LFS and non-LFS values for F_GETLK, F_GETLK, and
F_GETLK (the default value used for 64 bit architecture are used).

This is might be considered an ABI break, but the currenct exported
values is bogus anyway.

The POSIX lockf is not affected since it is aliased to lockf64,
which already uses the LFS values.

Checked on i686-linux-gnu and the new tests on a riscv32.

Reviewed-by: default avatarCarlos O'Donell <carlos@redhat.com>
parent 15125996
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment