repo.or.cz
/
trinity.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
move_pages: just use calloc
[trinity.git]
/
syscalls
/
getpriority.c
blob
2033a1b645e7f197b15ee5cb6710c6dc82320d4c
1
/*
2
* SYSCALL_DEFINE2(getpriority, int, which, int, who)
3
*/
4
5
#include <sys/time.h>
6
#include <sys/resource.h>
7
#include
"sanitise.h"
8
9
struct
syscallentry syscall_getpriority
= {
10
.
name
=
"getpriority"
,
11
.
num_args
=
2
,
12
.
arg1name
=
"which"
,
13
.
arg1type
=
ARG_OP
,
14
.
arg1list
= {
15
.
num
=
3
,
16
.
values
= {
PRIO_PROCESS
,
PRIO_PGRP
,
PRIO_USER
},
17
},
18
.
arg2name
=
"who"
,
19
.
arg2type
=
ARG_PID
,
20
};