ref: 4fc08c89c81450f1f30e0b58e2579cd4425cee62
parent: 5cc018714cb7131b460b69dc52d2813d5fa68af0
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Wed Mar 8 01:35:09 EST 2017
[libc-amd64-linux] Add more syscalls These syscalls are going to be needed for raise() and for signal()
--- 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)
--- a/libc/src/sys/amd64-linux/syscall.lst
+++ b/libc/src/sys/amd64-linux/syscall.lst
@@ -1,4 +1,4 @@
-#number #name
+#number name
0 _read
1 _write
2 _open
@@ -5,4 +5,7 @@
3 _close
3 _lseek
12 _brk
+13 _rt_sigaction
+38 _getpid
60 _exit
+32 _kill