Skip to content
Snippets Groups Projects
Commit d7b5c59f authored by Costes Martin's avatar Costes Martin
Browse files

compléter la fonction uint64 sys_nice(void)

parent 22ac87e4
No related branches found
Tags tp1-act-3-2
No related merge requests found
......@@ -74,10 +74,24 @@ sys_sleep(void)
}
uint64
sys_nice(void){
return 0;
sys_nice(void)
{
int pid;
int prio;
if(argint(0, &pid) < 0)
return -1;
if(argint(1, &prio) < 0)
return -1;
if ((prio < 0) || (prio >= NPRIO))
return -1;
return nice(pid, prio);
}
uint64
sys_kill(void)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment