ref: 35a949fb7820804fa191db18db2c41bda2189a3b
parent: 17aed0d5adf9cefd6e4c48069be50e046f7fbdee
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Tue Sep 14 10:47:48 EDT 2021
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.
--- /dev/null
+++ b/src/libc/arch/i386/linux/.gitignore
@@ -1,0 +1,10 @@
+_close.s
+_exit.s
+_getpid.s
+_kill.s
+_lseek.s
+_open.s
+_read.s
+_sigaction.s
+_sys_brk.s
+_write.s
--- a/src/libc/arch/i386/linux/Makefile
+++ b/src/libc/arch/i386/linux/Makefile
@@ -5,16 +5,16 @@
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 @@
./gensys.sh $(@:.s=)
clean:
- rm -f $(GENSRC)
- rm -f syscall _sys_errlist.c
+ rm -f $(GENSRC) _sys_errlist.c
include deps.mk
--- 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