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 11:17:58 +00:00
|
|
|
# GNU Mes --- Maxwell Equations of Software
|
2023-05-03 13:34:48 +00:00
|
|
|
# Copyright © 2016,2017,2019,2020,2022,2023 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
|
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 11:17:58 +00:00
|
|
|
#
|
|
|
|
# This file is part of GNU Mes.
|
|
|
|
#
|
|
|
|
# GNU Mes is free software; you can redistribute it and/or modify it
|
|
|
|
# under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 3 of the License, or (at
|
|
|
|
# your option) any later version.
|
|
|
|
#
|
|
|
|
# GNU Mes is distributed in the hope that it will be useful, but
|
|
|
|
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with GNU Mes. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2016-05-15 11:41:40 +00:00
|
|
|
*-
|
2016-07-09 11:23:58 +00:00
|
|
|
*~
|
2016-10-21 20:44:50 +00:00
|
|
|
.#*
|
2017-07-02 14:25:14 +00:00
|
|
|
*.E
|
2019-06-13 12:19:59 +00:00
|
|
|
*.s
|
2018-05-25 06:05:02 +00:00
|
|
|
*.blood-elf
|
2018-05-29 18:07:46 +00:00
|
|
|
*.blood-elf-M1
|
|
|
|
*.blood-elf-hex2
|
2017-07-02 14:25:14 +00:00
|
|
|
*.gcc
|
2018-05-29 18:07:46 +00:00
|
|
|
*.gcc-o
|
|
|
|
*.gcc-out
|
2018-06-02 09:41:06 +00:00
|
|
|
*.gcc-stdout
|
2018-05-29 18:07:46 +00:00
|
|
|
*.go
|
2017-07-02 14:25:14 +00:00
|
|
|
*.guile
|
2018-07-21 11:48:50 +00:00
|
|
|
*.guile-log
|
2017-07-19 17:31:48 +00:00
|
|
|
*.log
|
2019-06-08 13:36:22 +00:00
|
|
|
*.trs
|
2018-05-29 18:07:46 +00:00
|
|
|
*.mes-gcc
|
|
|
|
*.mes-gcc-o
|
|
|
|
*.mes-gcc-out
|
|
|
|
*.mes-gcc-out
|
|
|
|
*.mes-gcc-stdout
|
2018-08-10 09:15:43 +00:00
|
|
|
*.mes-o
|
|
|
|
*.mes-out
|
|
|
|
*.mes-stdout
|
2018-06-24 07:28:23 +00:00
|
|
|
*.mes-tcc
|
|
|
|
*.mes-tcc-o
|
|
|
|
*.mes-tcc-out
|
|
|
|
*.mes-tcc-out
|
|
|
|
*.mes-tcc-stdout
|
2017-07-19 17:31:48 +00:00
|
|
|
*.mini-M1
|
2017-07-02 14:25:14 +00:00
|
|
|
*.mini-guile
|
2017-07-19 17:31:48 +00:00
|
|
|
*.mini-hex2
|
2018-11-06 19:29:35 +00:00
|
|
|
*.a
|
2018-05-29 18:07:46 +00:00
|
|
|
*.o
|
2020-04-19 08:49:48 +00:00
|
|
|
*.h.m2
|
|
|
|
*.c.m2
|
2018-05-29 18:07:46 +00:00
|
|
|
*.seed-out
|
2020-04-19 08:49:48 +00:00
|
|
|
*.stderr
|
|
|
|
*.stdout
|
|
|
|
|
|
|
|
*.x86-out
|
|
|
|
|
|
|
|
/TAGS
|
|
|
|
|
|
|
|
/lib/x86-mes/0exit-42
|
|
|
|
/lib/x86-mes/exit-42
|
2018-11-06 19:29:35 +00:00
|
|
|
|
2019-02-24 16:51:53 +00:00
|
|
|
/lib/tests/*/[0-9a][0-9a-z]-*
|
|
|
|
!/lib/tests/*/*.c
|
|
|
|
!/lib/tests/*/*.exit
|
|
|
|
!/lib/tests/*/*.stdout
|
|
|
|
|
2020-07-15 17:25:16 +00:00
|
|
|
/scaffold/*.M1
|
|
|
|
/scaffold/*.m2
|
|
|
|
/scaffold/*.hex2
|
2018-11-06 19:29:35 +00:00
|
|
|
/scaffold/argv
|
|
|
|
/scaffold/hello
|
|
|
|
/scaffold/main
|
|
|
|
/scaffold/micro-mes
|
2020-07-15 20:27:57 +00:00
|
|
|
/scaffold/read
|
2018-11-06 19:29:35 +00:00
|
|
|
/scaffold/tiny-mes
|
|
|
|
|
2020-07-15 17:25:16 +00:00
|
|
|
/scaffold/argv-m2
|
2023-05-03 13:34:48 +00:00
|
|
|
/scaffold/env-m2
|
2020-07-15 17:25:16 +00:00
|
|
|
/scaffold/hello-m2
|
|
|
|
/scaffold/main-m2
|
|
|
|
/scaffold/micro-mes-m2
|
2020-07-15 20:27:57 +00:00
|
|
|
/scaffold/read-m2
|
2020-07-15 17:25:16 +00:00
|
|
|
/scaffold/tiny-mes-m2
|
2018-11-06 19:29:35 +00:00
|
|
|
|
2016-10-15 22:34:23 +00:00
|
|
|
/.config.make
|
2017-07-19 17:31:48 +00:00
|
|
|
/.store
|
2016-10-21 20:44:50 +00:00
|
|
|
/.tarball-version
|
2017-03-19 12:41:56 +00:00
|
|
|
|
2016-10-18 20:43:23 +00:00
|
|
|
?
|
|
|
|
?.mes
|
2016-10-15 22:34:23 +00:00
|
|
|
\#*#
|
2017-01-21 15:15:34 +00:00
|
|
|
/doc/fosdem/fosdem.aux
|
|
|
|
/doc/fosdem/fosdem.log
|
|
|
|
/doc/fosdem/fosdem.nav
|
|
|
|
/doc/fosdem/fosdem.out
|
|
|
|
/doc/fosdem/fosdem.snm
|
|
|
|
/doc/fosdem/fosdem.tex
|
|
|
|
/doc/fosdem/fosdem.toc
|
|
|
|
/doc/fosdem/fosdem.*vrb
|
2018-06-28 21:10:14 +00:00
|
|
|
/doc/mes.1
|
|
|
|
/doc/mes.info
|
2018-07-09 18:07:38 +00:00
|
|
|
/doc/mes.pdf
|
2019-12-08 21:05:14 +00:00
|
|
|
/doc/mesar.1
|
2018-06-28 21:10:14 +00:00
|
|
|
/doc/mescc.1
|
|
|
|
/doc/version.texi
|
2019-12-08 21:05:14 +00:00
|
|
|
/mes.aux
|
|
|
|
/mes.cp
|
|
|
|
/mes.cps
|
|
|
|
/mes.fn
|
|
|
|
/mes.info
|
|
|
|
/mes.tmp
|
|
|
|
/mes.toc
|
|
|
|
/mes.vr
|
|
|
|
/mes.vrs
|
2018-07-21 16:28:47 +00:00
|
|
|
|
2018-11-06 19:29:35 +00:00
|
|
|
/config.status
|
2018-07-21 16:28:47 +00:00
|
|
|
/pre-inst-env
|
2019-07-07 10:17:03 +00:00
|
|
|
/bootstrap.sh
|
2018-11-06 19:29:35 +00:00
|
|
|
/build.sh
|
|
|
|
/check.sh
|
|
|
|
/install.sh
|
|
|
|
/uninstall.sh
|
2018-07-21 16:28:47 +00:00
|
|
|
/mes/module/mes/boot-0.scm
|
2019-07-21 14:44:54 +00:00
|
|
|
/scripts/mesar
|
2018-11-25 12:21:03 +00:00
|
|
|
/scripts/mescc.scm
|
2018-07-21 16:28:47 +00:00
|
|
|
/scripts/mescc
|
2018-07-22 20:27:24 +00:00
|
|
|
/doc/images/gcc-mesboot-graph.png
|
2018-07-25 06:14:13 +00:00
|
|
|
/GNUmakefile
|
|
|
|
/pre-inst-env
|
2018-07-28 09:37:47 +00:00
|
|
|
/doc/images/gcc-mesboot-graph.eps
|
|
|
|
/doc/images/gcc-mesboot-graph.pdf
|
|
|
|
/doc/web/
|
2019-06-08 13:36:22 +00:00
|
|
|
/config.sh
|
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 11:17:58 +00:00
|
|
|
/include/arch
|
2019-06-08 13:36:22 +00:00
|
|
|
/include/mes/config.h
|
|
|
|
/gcc-lib
|
|
|
|
/mescc-lib
|
|
|
|
/bin
|
2019-06-13 12:19:59 +00:00
|
|
|
/0exit-42
|
|
|
|
/0hello-mes
|
|
|
|
/body-exit-42
|
|
|
|
/body-hello-mes
|
|
|
|
/exit-42
|
|
|
|
/hello-mes
|
2019-03-10 20:52:05 +00:00
|
|
|
core
|
|
|
|
/.config
|
|
|
|
a.out
|