git.cappig.dev / apheleiaOS.git master

ed21b78b4419e2090e4691caa96b0af34f45174d master
cappig <[email protected]> ยท 1 year ago
Begin work on userspace libc

* Implement a super basic, super shitty malloc in libc_usr/stdlib
* Implement a bunch of functions from libc_usr/stdio
* Add the close syscall
* Some toolchain fixes and changes
+ this patch is in rough shape.. subsequent commits should smooth this
  out.. here be bugs!
22 files changed, 956 insertions, 102 deletions
build/toolchain.mk +4 -0
compile_flags.txt +2 -1
kernel/build.mk +3 -1
kernel/mem/heap.c +1 -0
kernel/sched/process.c +0 -1
kernel/sched/syscall.c +18 -0
libs/alloc/global.h +2 -2
libs/aos/syscalls.h +20 -14
libs/base/attributes.h +1 -0
libs/libc/stdio.h +8 -2
libs/libc/stdlib.h +8 -2
libs/libc/string.c +55 -10
libs/libc/string.h +6 -5
libs/libc_ext/string.c +0 -48
libs/libc_ext/string.h +0 -2
libs/libc_usr/stdio.c created
libs/libc_usr/stdio.h created
libs/libc_usr/stdlib.c created
libs/libc_usr/stdlib.h created
makefile +1 -0
user/build.mk +2 -1
user/init/main.c +0 -13