LibC: Implement getitimer

This commit is contained in:
Bananymous 2025-04-15 23:35:25 +03:00
parent ac90800c3c
commit ee9e941a56
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ int gettimeofday(struct timeval* __restrict tp, void* __restrict tzp)
return 0;
}
int getitimer(int which, struct itimerval* value)
{
return setitimer(which, nullptr, value);
}
int setitimer(int which, const struct itimerval* __restrict value, struct itimerval* __restrict ovalue)
{
return syscall(SYS_SETITIMER, which, value, ovalue);