glibc/sysdeps/unix/sysv/linux/generic
Adhemerval Zanella 7a6ca82f80 linux: Fix generic struct_stat for 64 bit time (BZ# 29657)
The generic Linux struct_stat misses the conditionals to use
bits/struct_stat_time64_helper.h in the __USE_TIME_BITS64 for
architecture that uses __TIMESIZE == 32 (currently csky and nios2).

Since newer ports should not support 32 bit time_t, the generic
implementation should be used as default.

For arm, hppa, and sh a copy of default struct_stat is added,
while for csky and nios a new one based on generic is used, along
with conditionals to use bits/struct_stat_time64_helper.h.

The default struct_stat is also replaced with the generic one.

Checked on aarch64-linux-gnu and arm-linux-gnueabihf.
2022-10-25 15:53:19 -03:00
..
bits linux: Fix generic struct_stat for 64 bit time (BZ# 29657) 2022-10-25 15:53:19 -03:00
wordsize-32 Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
____longjmp_chk.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
chmod.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
chown.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dl-origin.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
dup2.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
epoll_create.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
inotify_init.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
lchown.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
link.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
Makefile linux: Remove stat-check.c 2021-02-11 08:02:16 -03:00
mkdir.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
readlink.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
README linux-generic: add a README 2015-03-19 13:33:01 -04:00
rmdir.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
symlink.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
syscalls.list linux: Consolidate Linux setsockopt implementation 2021-07-06 11:45:35 -03:00
sysdep.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
unlink.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
xstatver.h Remove mknod wrapper functions, move them to symbols 2020-10-09 17:02:06 -03:00

This hierarchy supports Linux systems using the new
asm-generic/unistd.h, which removes many familiar old syscalls.  For
example, to implement open(), newer Linux architectures require glibc
to invoke the __NR_openat syscall with AT_FDCWD.  This hierarchy
provides all those implementations.

It also provides support for 32-bit platforms using the 64-bit kernel
syscall APIs, as the 32-bit ones are no longer provided.  Note that
newer ILP32 environments (x32 or AArch64:ILP32, for example) are
converting to use more 64-bit types in kernel syscalls, so that aspect
of this support is in more flux as of this writing.