• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <sys/resource.h>
2 #include "syscall.h"
3 
getpriority(int which,id_t who)4 int getpriority(int which, id_t who)
5 {
6 #ifdef __LITEOS_A__
7 	return syscall(SYS_getpriority, which, who);
8 #else
9 	int ret = syscall(SYS_getpriority, which, who);
10 	if (ret < 0) return ret;
11 	return 20-ret;
12 #endif
13 }
14