Don't abort on unimplemented setitimer

This commit is contained in:
Theodore Dubois 2018-12-23 14:54:57 -08:00
parent f8028736b4
commit ff4f9d9704

View File

@ -77,8 +77,10 @@ static void itimer_notify(struct task *task) {
}
dword_t sys_setitimer(dword_t which, addr_t new_val_addr, addr_t old_val_addr) {
if (which != ITIMER_REAL_)
TODO("setitimer %d", which);
if (which != ITIMER_REAL_) {
FIXME("unimplemented setitimer %d", which);
return _EINVAL;
}
struct itimerval_ val;
if (user_get(new_val_addr, val))