summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_resource.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-10-25 04:42:48 +0000
committerguenther <guenther@openbsd.org>2013-10-25 04:42:48 +0000
commit14988649970a0f50139d27033770248115dc1c82 (patch)
treed72d5ae2063f881d69a35290cbec06fea289a11e /sys/kern/kern_resource.c
parentAdd support for Microsoft XBox 360 controller as a uhid. It doesn't use (diff)
downloadwireguard-openbsd-14988649970a0f50139d27033770248115dc1c82.tar.xz
wireguard-openbsd-14988649970a0f50139d27033770248115dc1c82.zip
Move the declarations for dogetrusage(), itimerround(), and dowait4()
to sys/*.h headers so that the compat/linux code can use them. Change dowait4() to not copyout() the status value, but rather leave that for its caller, as compat/linux has to translate it, with the side benefit of simplifying the native code. Originally written months ago as part of the time_t work; long memory, prodding, and ok from pirofti@
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r--sys/kern/kern_resource.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c
index 27cef51c3c4..4ba85ea9da5 100644
--- a/sys/kern/kern_resource.c
+++ b/sys/kern/kern_resource.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_resource.c,v 1.45 2013/09/14 03:06:41 guenther Exp $ */
+/* $OpenBSD: kern_resource.c,v 1.46 2013/10/25 04:42:48 guenther Exp $ */
/* $NetBSD: kern_resource.c,v 1.38 1996/10/23 07:19:38 matthias Exp $ */
/*-
@@ -421,8 +421,6 @@ calcru(struct tusage *tup, struct timeval *up, struct timeval *sp,
TIMESPEC_TO_TIMEVAL(ip, &i);
}
-int dogetrusage(struct proc *, int, struct rusage *);
-
/* ARGSUSED */
int
sys_getrusage(struct proc *p, void *v, register_t *retval)