note a leak that needs fixing eventually
[trinity.git] / syscalls / getpriority.c
blob2033a1b645e7f197b15ee5cb6710c6dc82320d4c
1 /*
2 * SYSCALL_DEFINE2(getpriority, int, which, int, who)
3 */
5 #include <sys/time.h>
6 #include <sys/resource.h>
7 #include "sanitise.h"
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 },
18 .arg2name = "who",
19 .arg2type = ARG_PID,