mes/build-aux
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
..
GNUmakefile.in lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
bootstrap.sh.in lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
build-guile.sh configure: Use GUILD_OPTIMIZE=-O1 for Guile-3. 2020-10-07 14:09:24 +02:00
build-lib.sh build: When courageous, do build libgetopt and libtcc1. 2022-10-18 07:34:27 +02:00
build-mes.sh mescc: Support --bootstrap build on ARM. 2021-05-01 16:10:49 +02:00
build-scaffold.sh build: Also use stage0_cpu detection in bootstrap.sh build. 2022-05-21 14:13:18 +02:00
build-source-lib.sh ARM: libtcc1: Add div.c, __memcpy, __memmove, __memset. 2021-01-23 08:43:44 +01:00
build.sh.in lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
cc.sh build: Cater for FreeBSD. 2019-12-17 21:08:18 +01:00
cflags.sh build: Also use stage0_cpu detection in bootstrap.sh build. 2022-05-21 14:13:18 +02:00
check-boot.sh boot: Add gc test. 2020-08-16 17:36:55 +02:00
check-mes.sh tests: Add gc.test. 2020-04-25 16:39:43 +02:00
check-mescc.sh test: Add 60-math-modulo.c. 2022-09-11 23:34:20 +02:00
check.sh.in Distinguish between gcc and mescc; select LIBS accordingly. 2020-10-06 10:04:41 +02:00
config.make.in configure: Use GUILD_OPTIMIZE=-O1 for Guile-3. 2020-10-07 14:09:24 +02:00
config.sh.in build: Cater for M2-Planet. 2020-10-18 23:15:11 +02:00
configure-lib.sh core: Resurrect gcc-10 support. 2021-05-02 14:58:23 +02:00
export.make build: Cater for M2-Planet. 2020-10-18 23:15:11 +02:00
gendocs.sh build: web: New target. 2018-07-28 11:37:47 +02:00
gitlog-to-changelog build: Generate ChangeLog reproducibly. Thanks, Timothy! 2019-12-13 21:52:29 +01:00
indent.sh mes: Grand indent: prepare. 2019-05-13 01:07:32 +02:00
install.sh.in lib: stat: Use SYS_stat64 for 32bit platforms. 2022-10-29 13:17:58 +02:00
manifest.scm guix: Update packaging. 2019-09-09 16:04:16 +02:00
mes-snarf.scm build: Update snarfer. 2020-09-27 19:07:00 +02:00
pointer.sh core: Switch to pointer cells. 2020-10-18 11:34:32 +02:00
pre-inst-env.in build: Resurrect running mescc from elsewhere. 2020-10-06 10:44:50 +02:00
setup-mes.sh Add missing copyright headers. 2018-07-23 19:10:34 +02:00
snarf.sh core: Split-out stack.c 2020-07-19 08:53:46 +02:00
test-boot.sh build: Simplify. 2019-06-08 15:36:22 +02:00
test-c.sh mescc: Mes C Library: Support gcc-10. 2020-10-06 13:13:44 +02:00
test-driver build: Simplify. 2019-06-08 15:36:22 +02:00
test-suite.sh build: Use bash if available to avoid dash problems. 2019-06-25 21:40:43 +02:00
trace.sh build: Simplify. 2019-06-08 15:36:22 +02:00
uninstall.sh.in build: Simplify. 2019-06-08 15:36:22 +02:00