glibc/include/sys
Adhemerval Zanella aa03f722f3 linux: Add {f}stat{at} y2038 support
A new struct __stat{64}_t64 type is added with the required
__timespec64 time definition.  Only LFS is added, 64-bit time with
32-bit offsets is not supposed to be supported (no existing glibc
configuration supports such a combination).  It is done with an extra
__NR_statx call plus a conversion to the new __stat{64}_t64 type.
The statx call is done only for 32-bit time_t ABIs.

Internally some extra routines to copy from/to struct stat{64}
to struct __stat{64} used on multiple implementations (stat, fstat,
lstat, and fstatat) are added on a extra implementation
(stat_t64_cp.c).  Alse some extra routines to copy from statx to
__stat{64} is added on statx_cp.c.

Checked with a build for all affected ABIs. I also checked on x86_64,
i686, powerpc, powerpc64le, sparcv9, sparc64, s390, and s390x.

Reviewed-by: Lukasz Majewski <lukma@denx.de>
2020-10-09 17:02:07 -03:00
..
auxv.h
bitypes.h
cdefs.h Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
dir.h
epoll.h
errno.h
fcntl.h
file.h
gmon_out.h
gmon.h
ioctl.h
ipc.h
mman.h
msg.h sysv: linux: Add 64-bit time_t variant for msgctl 2020-07-09 12:05:40 -03:00
param.h
poll.h
prctl.h Add a C wrapper for prctl [BZ #25896] 2020-04-30 10:42:43 -07:00
profil.h
queue.h
random.h
resource.h linux: Use long time_t for wait4/getrusage 2020-04-02 09:21:06 -07:00
select.h linux: Add time64 select support 2020-09-28 16:21:48 -03:00
sem.h sysv: linux: Add 64-bit time_t variant for semctl 2020-07-09 12:05:35 -03:00
sendfile.h
shm.h sysv: linux: Add 64-bit time_t variant for shmctl 2020-07-09 12:05:47 -03:00
signal.h
single_threaded.h Add the __libc_single_threaded variable 2020-07-06 11:15:58 +02:00
socket.h linux: Add time64 recvmmsg support 2020-09-28 17:28:39 -03:00
stat.h linux: Add {f}stat{at} y2038 support 2020-10-09 17:02:07 -03:00
statfs.h
statvfs.h
sysinfo.h
syslog.h ldbl-128ibm-compat: PLT redirects for using ldbl redirects internally 2020-03-25 14:34:23 -05:00
sysmacros.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
termios.h
time.h y2038: linux: Provide __adjtime64 implementation 2020-05-20 01:03:26 +02:00
timeb.h
times.h
ttychars.h
types.h
uio.h
un.h
unistd.h
utsname.h
vfs.h
vlimit.h
vtimes.h
wait.h Implement waitpid in terms of wait4 2019-12-19 16:11:09 -03:00
xattr.h