LibC: Implement getpagesize

This commit is contained in:
2024-12-02 04:01:51 +02:00
parent 6ed1435aeb
commit 4508e099ff
2 changed files with 8 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
#include <BAN/Assert.h>
#include <BAN/Debug.h>
#include <kernel/Memory/Types.h>
#include <kernel/Syscall.h>
#include <errno.h>
@@ -448,6 +449,11 @@ int getopt(int argc, char* const argv[], const char* optstring)
return '?';
}
int getpagesize(void)
{
return PAGE_SIZE;
}
pid_t getpid(void)
{
return syscall(SYS_GET_PID);