mes/lib/m2
Jan (janneke) Nieuwenhuizen bc1fa57851
lib: stat: Use SYS_stat64 for 32bit platforms.
This fixes <https://debbugs.gnu.org/41264>.

* include/linux/arm/syscall.h (SYS_stat64, SYS_lstat64,
SYS_fstat64)[__SIZEOF_LONG_LONG__ == 8]:
New defines.
(SYS_stat, SYS_lstat, SYS_fstat)[__SIZEOF_LONG_LONG__ == 8]: Redefine them.
* include/linux/x86/syscall.h (SYS_stat64, SYS_lstat64,
SYS_fstat64)[__SIZEOF_LONG_LONG__ == 8]:
New defines.
(SYS_stat, SYS_lstat, SYS_fstat)[__SIZEOF_LONG_LONG__ == 8]: Redefine them.
* include/sys/stat.h (struct stat): Move definition to...
* include/linux/arm/kernel-stat.h,
include/linux/m2/kernel-stat.h,
include/linux/x86/kernel-stat.h,
include/linux/x86_64/kernel-stat.h: These new files.
* include/gnu/x86/kernel-stat.h: New file.
* configure (main): Copy <srcdest>include/<kernel>/<arch>/*.h to
include/.
* configure.sh: Likewise.
* .gitignore: Ignore them.  Add copyright header.
* build-aux/GNUmakefile.in (X86_ARCH_HEADERS, ARCH_HEADERS): New
variables.
(build): Use them.
(include/arch/%.h, arch-dir): New targets.
* build-aux/bootstrap.sh.in (AM_CPPFLAGS): Replace
<srcdest>include/<kernel>/<cpu> with built ../include.
* build-aux/build.sh.in (AM_CPPFLAGS): Likewise.
* build-aux/install.sh.in: Also install built include.
* include/m2/types.h: New file.
* kaem.run: Use it.
* simple.sh: Copy kernel-stat.h, syscall.h for kernel/cpu to
include/arch.
2022-10-29 13:17:58 +02:00
..
arm ARM: build: Cater for M2-Planet. 2022-04-30 22:51:42 +02:00
x86 bootstrap: Update M2-Planet x86 definitions from 1.7.0-31-g358b6cf. 2021-01-01 19:07:22 +01:00
cast.c core: Use casting functions. 2020-10-18 15:44:49 +02:00
chmod.c mescc: Mes C Library: Add chmod for M2-Planet. 2020-07-25 20:03:06 +02:00
clock_gettime.c mescc: Mes C Library: Add clock_gettime for M2-Planet. 2020-07-25 20:03:17 +02:00
execv.c mescc: Mes C Library: Add execv for M2-Planet. 2020-07-25 20:03:30 +02:00
execve.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
exit.c mescc: Mes C Library: Add exit for M2-Planet. 2020-07-25 20:03:58 +02:00
getcwd.c Revert "Mes C Library: m2/getcwd.c: Remove specialization." 2021-01-01 15:54:13 +01:00
isatty.c Mes C Library: m2/ioctl.c: Remove specialization. 2020-12-29 18:41:45 +01:00
malloc.c kaem: scaffold/read.kaem. 2020-07-15 22:27:57 +02:00
mes_open.c mescc: Mes C Library: Bugfix __ungetc_clear. 2020-08-02 00:37:37 +02:00
open.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
read.c kaem: scaffold/read.kaem. 2020-07-15 22:27:57 +02:00
time.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
waitpid.c lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00