user: implement mlibc as the libc, finally.

It's finally done..

Signed-off-by: kaguya <vpshinomiya@protonmail.com>
This commit is contained in:
kaguya
2026-05-02 03:31:49 -04:00
parent 2fa39ad85a
commit 9a9b91c940
2387 changed files with 152741 additions and 315 deletions
@@ -0,0 +1,27 @@
#pragma once
#define SYS_READ 0
#define SYS_WRITE 1
#define SYS_OPEN 2
#define SYS_CLOSE 3
#define SYS_MMAP 9
#define SYS_MUNMAP 11
#define SYS_BRK 12
#define SYS_SIGACTION 13 /* rt_sigaction on Linux */
#define SYS_SIGPROCMASK 14 /* rt_sigprocmask on Linux */
#define SYS_SCHED_YIELD 24
#define SYS_GETPID 39
#define SYS_NICE 34
#define SYS_FORK 57
#define SYS_EXECVE 59
#define SYS_EXIT 60
#define SYS_KILL 62
#define SYS_GETPPID 110
#define SYS_SCHED_GETSCHEDULER 138
#define SYS_SCHED_SETSCHEDULER 139
#define SYS_FUTEX 202
#define SYS_EXIT_GROUP 231
#define SYS_TCB_SET 300