#include <agnix/agnix.h>
#include <agnix/tasks.h>
#include <agnix/timer.h>
#include <agnix/errno.h>
Include dependency graph for sys_unix.c:
Go to the source code of this file.
Functions | |
int | do_sys_nice (int nice) |
int | do_sys_getpid (void) |
|
Definition at line 31 of file sys_unix.c. Referenced by SYS_CALL(). 00032 {
00033 return current_task->t_pid;
00034 }
|
|
Definition at line 19 of file sys_unix.c. Referenced by SYS_CALL(). 00020 { 00021 if (current_task->t_uid != 0) { 00022 if (current_task->t_nice >= nice) 00023 return -EPERM; 00024 } 00025 00026 current_task->t_nice = nice; 00027 00028 return 0; 00029 }
|