scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit 2a75910ec069ddbc622b69efcdb1484ecbda208a
parent 2f4b50a01e322ba30cdf2fb15d62abc12800e773
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date:   Wed,  8 Mar 2017 06:35:09 +0100

[libc-amd64-linux] Add more syscalls

These syscalls are going to be needed for raise()
and for signal()

Diffstat:
Mlibc/src/sys/amd64-linux/Makefile | 7+++++--
Mlibc/src/sys/amd64-linux/syscall.lst | 5++++-
2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/libc/src/sys/amd64-linux/Makefile b/libc/src/sys/amd64-linux/Makefile @@ -3,8 +3,11 @@ include ../../../../config.mk -OBJ = _brk.o _close.o _exit.o _lseek.o _open.o _read.o _write.o -SRC = $(OBJ:.o=.s) +OBJ_GEN = _read.o _write.o _open.o _close.o _lseek.o _brk.o\ + _rt_sigaction.o _getpid.o _exit.o _kill.o + +ASM_GEN = $(OBJ_GEN:.o=.s) +OBJ = $(OBJ_GEN) all: $(OBJ) diff --git a/libc/src/sys/amd64-linux/syscall.lst b/libc/src/sys/amd64-linux/syscall.lst @@ -1,8 +1,11 @@ -#number #name +#number name 0 _read 1 _write 2 _open 3 _close 3 _lseek 12 _brk +13 _rt_sigaction +38 _getpid 60 _exit +32 _kill