Add time() syscall

This commit is contained in:
2025-10-16 14:15:05 +02:00
parent 48231931bd
commit 702f0ddf87
6 changed files with 41 additions and 11 deletions

13
kernel/syscall/time.c Normal file
View File

@ -0,0 +1,13 @@
#include <stdint.h>
#include <stddef.h>
#include "syscall.h"
#include "time.h"
#include "sysdefs/time.h"
#include "time/time.h"
#include "errors.h"
int32_t SYSCALL1(sys_time, timestruct1) {
Time *time = (Time *)timestruct1;
time_get(time);
return E_OK;
}