LibC: Implement getitimer

This commit is contained in:
2025-04-15 23:35:25 +03:00
parent ac90800c3c
commit ee9e941a56

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);