y2038: Use a common definition for shmid_ds
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 17 Feb 2021 21:38:09 +0000 (18:38 -0300)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 15 Jun 2021 13:42:11 +0000 (10:42 -0300)
commit7194337c3e1358b4586de45566064d5bb9c8a238
treeb914a166a523b525ea9a8831ce96cabc13db2005
parentf98beb65f57afd7f62a5d0e21863323975b43c1c
y2038: Use a common definition for shmid_ds

Instead of replicate the same definitions from struct_shmid64_ds.h
on the multiple struct_shmid_ds.h, use a common header which is included
when required (struct_shmid64_ds_helper.h).

The __USE_TIME_BITS64 is not defined internally yet, although the
internal header is used when building the 64-bit semctl implementation.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/bits/types/struct_shmid64_ds.h
sysdeps/unix/sysv/linux/bits/types/struct_shmid64_ds_helper.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/bits/types/struct_shmid_ds.h
sysdeps/unix/sysv/linux/hppa/bits/types/struct_shmid_ds.h
sysdeps/unix/sysv/linux/mips/bits/types/struct_shmid_ds.h
sysdeps/unix/sysv/linux/powerpc/bits/types/struct_shmid_ds.h
sysdeps/unix/sysv/linux/sparc/bits/types/struct_shmid_ds.h