y2038: Add __USE_TIME_BITS64 support for socket-constants.h
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>
Wed, 24 Feb 2021 13:37:02 +0000 (13:37 +0000)
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>
Tue, 15 Jun 2021 13:42:11 +0000 (10:42 -0300)
commit7446e896334cdb5431997dcc30d7ca13768b467d
tree11867fc9bb17f23b9bb114b82fe9becbebadd094
parent7194337c3e1358b4586de45566064d5bb9c8a238
y2038: Add __USE_TIME_BITS64 support for socket-constants.h

It is only used for !__USE_MISC, the default way uses the kernel
headers.  The patch also adds the SO_TIMESTAMP, SO_TIMESTAMPNS, and
SO_TIMESTAMPING which uses new values for 64-bit time_t kernel
interfaces.

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

Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
sysdeps/unix/sysv/linux/bits/socket-constants.h
sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h
sysdeps/unix/sysv/linux/mips/bits/socket-constants.h
sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h
sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h