mes/lib
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-mes ARM: Fix unsigned modulo. 2022-09-12 09:47:28 +02:00
arm-mes-gcc mescc: Mes C Library: ARM: setjmp.c: Inline fake asm. 2021-01-23 08:43:46 +01:00
arm-mes-mescc Implement setjmp for ARM mescc. 2020-06-12 23:20:17 +02:00
ctype mescc: Mes C Library: Support GNU Awk: Add isgraph. 2019-06-16 11:25:37 +02:00
dirent build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
freebsd mescc: Mes C Library: crt: Support more than 255 command line parameters. 2021-05-02 14:22:21 +02:00
gnu mescc: Mes C Library: Split _exit.c, _write.c from mini.c. 2021-01-23 08:43:45 +01:00
linux lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
m2 lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
mach hurd: Fixes for upgrade to debian-hurd-20190220.img. 2019-12-13 21:52:31 +01:00
math mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
mes lib: __assert_fail: Update to standard. 2022-10-26 21:14:05 +02:00
posix Revert "Mes C Library: m2/getcwd.c: Remove specialization." 2021-01-01 15:54:13 +01:00
stdio mescc: Mes C Library: Use casting functions. 2020-10-18 14:55:24 +02:00
stdlib mescc: Mes C Library: Prepare for M2-Planet: realloc. 2020-07-25 19:56:16 +02:00
string Mes C Library: memchr: Avoid compile warning. 2022-04-30 16:40:57 +02:00
stub Mes C Library: m2/ioctl.c: Remove specialization. 2020-12-29 18:41:45 +01:00
tests lib/test: Cater for gcc-12.2.0. 2022-09-15 13:56:38 +02:00
x86-mes kaem: scaffold/argv.kaem. 2020-07-15 22:15:36 +02:00
x86-mes-gcc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86-mes-mescc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes mescc: Add X86_64 assembly defines for TinyCC compilation. 2022-09-21 09:43:43 +02:00
x86_64-mes-gcc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
x86_64-mes-mescc build: Prepare for kernel variants. 2019-12-17 21:07:35 +01:00
libtcc1.c libtcc1: Fix integer division, modulo and shifting procedures. 2021-03-14 11:05:00 +01:00