Kernel/LibC: opening standard files is done in libc

This commit is contained in:
2023-05-29 20:21:19 +03:00
parent 2a34391b71
commit 7151bb86a8
6 changed files with 33 additions and 24 deletions

View File

@@ -7,6 +7,13 @@
#include <sys/syscall.h>
#include <unistd.h>
extern "C" void _init_stdio();
extern "C" void _init_libc()
{
_init_stdio();
}
void _exit(int status)
{
syscall(SYS_EXIT, status);
@@ -139,4 +146,4 @@ pid_t fork(void)
unsigned int sleep(unsigned int seconds)
{
return syscall(SYS_SLEEP, seconds);
}
}