summaryrefslogtreecommitdiff
path: root/sys/compat/linux/linux_misc.c
diff options
context:
space:
mode:
authorThomas Graichen <graichen@cvs.openbsd.org>1997-04-14 11:16:32 +0000
committerThomas Graichen <graichen@cvs.openbsd.org>1997-04-14 11:16:32 +0000
commitf3fb98deada0edda8b7f4c2f75e085b2000b67ea (patch)
treed15ad22cd87984a181a35e0f3b8adb9efd0349ce /sys/compat/linux/linux_misc.c
parentb08861122f892f935fbae1cac2f2ee0e7af7fb3c (diff)
#34 - linux_sys_nice from NetBSD
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
-rw-r--r--sys/compat/linux/linux_misc.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c
index bac41ab08d6..68b17182919 100644
--- a/sys/compat/linux/linux_misc.c
+++ b/sys/compat/linux/linux_misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: linux_misc.c,v 1.6 1996/08/10 12:09:23 deraadt Exp $ */
+/* $OpenBSD: linux_misc.c,v 1.7 1997/04/14 11:16:23 graichen Exp $ */
/* $NetBSD: linux_misc.c,v 1.27 1996/05/20 01:59:21 fvdl Exp $ */
/*
@@ -1163,3 +1163,20 @@ linux_sys___sysctl(p, v, retval)
return sys___sysctl(p, &bsa, retval);
}
+
+int
+linux_sys_nice(p, v, retval)
+ struct proc *p;
+ void *v;
+ register_t *retval;
+{
+ struct linux_sys_nice_args /* {
+ syscallarg(int) incr;
+ } */ *uap = v;
+ struct sys_setpriority_args bsa;
+
+ SCARG(&bsa, which) = PRIO_PROCESS;
+ SCARG(&bsa, who) = 0;
+ SCARG(&bsa, prio) = SCARG(uap, incr);
+ return sys_setpriority(p, &bsa, retval);
+}