about summary refs log tree commit diff
path: root/io/Makefile
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-05-24 16:24:19 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-05-30 08:53:07 -0300
commit4d0fe291aed3a476a3b59c4ecfae9d35ac0f15e8 (patch)
treeff9e6cdae0a2296b1a7598842bd779dd3fa6d1c8 /io/Makefile
parent1512599694d0ead4394c0950525fdab09332faf5 (diff)
downloadglibc-4d0fe291aed3a476a3b59c4ecfae9d35ac0f15e8.tar.gz
glibc-4d0fe291aed3a476a3b59c4ecfae9d35ac0f15e8.tar.xz
glibc-4d0fe291aed3a476a3b59c4ecfae9d35ac0f15e8.zip
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: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'io/Makefile')
-rw-r--r--io/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/io/Makefile b/io/Makefile
index db886ca26f..d573064ecc 100644
--- a/io/Makefile
+++ b/io/Makefile
@@ -175,6 +175,7 @@ tests := \
   tst-fchmodat \
   tst-fchownat \
   tst-fcntl \
+  tst-fcntl-lock \
   tst-fstatat \
   tst-fts \
   tst-fts-lfs \