summaryrefslogtreecommitdiff
path: root/src/misc/setpriority.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/misc/setpriority.c')
-rw-r--r--src/misc/setpriority.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/misc/setpriority.c b/src/misc/setpriority.c
new file mode 100644
index 00000000..26da4b83
--- /dev/null
+++ b/src/misc/setpriority.c
@@ -0,0 +1,7 @@
+#include <sys/resource.h>
+#include "syscall.h"
+
+int setpriority(int which, id_t who, int prio)
+{
+ return syscall3(__NR_getpriority, which, who, prio);
+}