mes/lib/stub
Jan (janneke) Nieuwenhuizen dad460189f kaem.run: Remove --bootstrap-mode.
* include/linux/arm/syscall.h,
include/linux/x86/syscall.h,
include/mes/constants.h: Remove CONSTANTs.
* lib/m2/open.c: Move to...
* lib/linux/open.c: ...here.  Update to make gcc-compatible.
* scaffold/argv.kaem: Update accordingly.
* lib/linux/lseek.c (_leek, lseek): Suport M2-Planet.
* lib/linux/_open3.c (_open3): Fix cast.
* lib/linux/waitpid.c (waitpid): Suport M2-Planet.
* lib/m2/getcwd.c (PATH_MAX): Remove CONSTANT.
* lib/m2/isatty.c (TCGETS): Remove CONSTANT.
* lib/mes/ntoab.c: Support M2-Planet.
* lib/posix/getcwd.c (__getcwd_buf): Remove.
* lib/posix/getenv.c (M2_PTR_SIZE)[__M2__]: Update to #define.
* lib/posix/setenv.c: Likewise.
* lib/stub/__raise.c (SIGABRT): Remove CONSTANT.
* src/core.c (error): Use __M2__ instead of __M2_PLANET__.
* src/gc.c (M2_CELL_SIZE)[__M2__]: Update to #define.  Support
non-bootstrap-mode.
* src/symbol.c: Likewise.
* src/vector.c: Likewise.
* src/posix.c: Likewise.
(__raise): Move to...
* include/mes/lib-cc.h (__raise): ...this new file to avoid M2-Planet crash.
* include/sys/types.h: Include it.
* lib/mes/div.c (__raise): Remove prototype.
[__TINYC__ || SYSTEM_LIBC] (__raise): Remove macro.
* include/mes/lib.h (__raise)[SYSTEM_LIBC]: Remove prototype.
* kaem.run: Remove --botstrap-mode.  Update source list accordingly.
* simple.make (M2_PLANET_FLAGS): Remove --bootstrap-mode.
* simple.make (M2_SOURCES, M2_PLANET_INCLUDES): Update source list
accordingly.
* include/sys/types.h (EOF): Move to...
* include/mes/lib-cccc.h (EOF): ...here, and...
* include/m2/types.h (EOF): ...here, to avoid M2-Planet crash.
2023-05-03 08:03:48 +02:00
..
__buffered_read.c lib: linux/_open3: Support M2-Planet. 2023-05-02 10:22:45 +02:00
__cleanup.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
__raise.c kaem.run: Remove --bootstrap-mode. 2023-05-03 08:03:48 +02:00
_getcwd.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
_open3.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
access.c mescc: Mes C Library: Fix access stub. 2019-12-13 21:52:31 +01:00
atan2.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
brk.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
bsearch.c build: Simplify. 2019-06-08 15:36:22 +02:00
chmod.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
chown.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
clock_gettime.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
close.c hurd: Add stubs for missing libc+tcc functions. 2019-12-13 21:52:30 +01:00
cos.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
ctime.c mescc: Mes C Library: Support gcc-4.6.4: Fix ctime stub. 2019-11-23 21:35:05 +01:00
dup.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
dup2.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
execve.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
exp.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
fork.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
fpurge.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
freadahead.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
frexp.c mescc: Mes C Library: Fix compile warnings. 2019-06-12 15:59:06 +02:00
getgrgid.c build: Improve --with-system-libc support. 2019-08-24 19:05:58 +02:00
getgrnam.c build: Improve --with-system-libc support. 2019-08-24 19:05:58 +02:00
getlogin.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
getpgid.c build: Improve --with-system-libc support. 2019-08-24 19:05:58 +02:00
getpgrp.c build: Improve --with-system-libc support. 2019-08-24 19:05:58 +02:00
getpwnam.c mescc: Mes C Library: Support GNU Tar: Fix getpwnam, getpwuid stubs. 2019-07-31 12:25:43 +02:00
getpwuid.c mescc: Mes C Library: Support GNU Tar: Fix getpwnam, getpwuid stubs. 2019-07-31 12:25:43 +02:00
gettimeofday.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
gmtime.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
ioctl.c Mes C Library: m2/ioctl.c: Remove specialization. 2020-12-29 18:41:45 +01:00
ioctl3.c Mes C Library: m2/ioctl.c: Remove specialization. 2020-12-29 18:41:45 +01:00
ldexp.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
localtime.c mescc: Mes C Library: Support GNU Tar: Add mktime stub, fix localtime stub. 2019-07-15 11:58:21 +02:00
log.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
lseek.c hurd: Add stubs for missing libmes functions. 2019-12-13 21:52:30 +01:00
mktime.c build: Improve --with-system-libc support. 2019-08-24 19:05:58 +02:00
modf.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
mprotect.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
pclose.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
popen.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
pow.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
rand.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
rewind.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
rmdir.c hurd: Add stubs for missing libc+tcc functions. 2019-12-13 21:52:30 +01:00
setbuf.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
setgrent.c build: Improve --with-system-libc support. 2019-08-24 19:05:58 +02:00
setlocale.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
setvbuf.c mes: Run build-aux/indent.sh. 2019-05-18 13:27:42 +02:00
sigaction.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
sigaddset.c mes: Run build-aux/indent.sh. 2019-05-18 13:27:42 +02:00
sigblock.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
sigdelset.c mes: Run build-aux/indent.sh. 2019-05-18 13:27:42 +02:00
sigemptyset.c mes: Run build-aux/indent.sh. 2019-05-18 13:27:42 +02:00
sigsetmask.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
sin.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
sqrt.c mescc: Mes C Library: Support gcc-4.6.4: Add math stubs. 2019-09-13 15:11:38 +02:00
stat.c hurd: Add stubs for missing libc+tcc functions. 2019-12-13 21:52:30 +01:00
strftime.c build: Simplify. 2019-06-08 15:36:22 +02:00
sys_siglist.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
system.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
time.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
times.c mescc: Mes C Library: Cleanup includes. 2019-05-08 00:25:41 +02:00
ttyname.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
umask.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
unlink.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00
utime.c build: Improve --with-system-libc support. 2019-06-25 19:05:58 +02:00
waitpid.c hurd: Add stubs for missing libc functions. 2019-12-13 21:52:30 +01:00