diff options
| author | 1997-04-14 11:16:23 +0000 | |
|---|---|---|
| committer | 1997-04-14 11:16:23 +0000 | |
| commit | 42a9bd948bcbee224f555921ac3b4eefe4ca07fc (patch) | |
| tree | dbe59fc6c243ac3790f2a0bf7e8c3e6555658005 /sys/compat/linux/linux_misc.c | |
| parent | build stand (AND boot) (diff) | |
| download | wireguard-openbsd-42a9bd948bcbee224f555921ac3b4eefe4ca07fc.tar.xz wireguard-openbsd-42a9bd948bcbee224f555921ac3b4eefe4ca07fc.zip | |
#34 - linux_sys_nice from NetBSD
Diffstat (limited to 'sys/compat/linux/linux_misc.c')
| -rw-r--r-- | sys/compat/linux/linux_misc.c | 19 |
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); +} |
