scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit ed9a13e97b13e1a63fe2bf6ce919f1c0426d20b3
parent 39c51c48ea4d84767fe4cbc900e8cf57ef140dc0
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Tue, 14 Sep 2021 14:47:48 +0200

libc: Update arch/i386/linux

This code is being updated out of the tree of scc and
it is time to synchroniza both copies now.

Diffstat:
Asrc/libc/arch/i386/linux/.gitignore | 10++++++++++
Msrc/libc/arch/i386/linux/Makefile | 15+++++++--------
Msrc/libc/arch/i386/linux/syscall.lst | 4++--
3 files changed, 19 insertions(+), 10 deletions(-)

diff --git a/src/libc/arch/i386/linux/.gitignore b/src/libc/arch/i386/linux/.gitignore @@ -0,0 +1,10 @@ +_close.s +_exit.s +_getpid.s +_kill.s +_lseek.s +_open.s +_read.s +_sigaction.s +_sys_brk.s +_write.s diff --git a/src/libc/arch/i386/linux/Makefile b/src/libc/arch/i386/linux/Makefile @@ -5,16 +5,16 @@ include $(PROJECTDIR)/scripts/rules.mk include ../../../rules.mk GENOBJS =\ - _Exit.$O\ _close.$O\ + _exit.$O\ + _getpid.$O\ + _kill.$O\ + _lseek.$O\ _open.$O\ _read.$O\ - _write.$O\ - _lseek.$O\ - _brk.$O\ _sigaction.$O\ - _getpid.$O\ - _kill.$O\ + _sys_brk.$O\ + _write.$O\ GENSRC = $(GENOBJS:.$O=.s) @@ -31,7 +31,6 @@ $(GENSRC): syscall.lst ./gensys.sh $(@:.s=) clean: - rm -f $(GENSRC) - rm -f syscall _sys_errlist.c + rm -f $(GENSRC) _sys_errlist.c include deps.mk diff --git a/src/libc/arch/i386/linux/syscall.lst b/src/libc/arch/i386/linux/syscall.lst @@ -1,5 +1,5 @@ #number name num_of_op -1 _Exit 1 +1 _exit 1 3 _read 3 4 _write 3 5 _open 2 @@ -7,5 +7,5 @@ 19 _lseek 3 20 _getpid 0 37 _kill 2 -45 _brk 1 +45 _sys_brk 1 67 _sigaction 3