summaryrefslogtreecommitdiffstats
path: root/usr.bin/renice
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1997-06-20 09:58:03 +0000
committerderaadt <deraadt@openbsd.org>1997-06-20 09:58:03 +0000
commit81a265f705df077dedc5defc249f00af0fb762a5 (patch)
tree4811060a54faa5a6650d48c3abca787853d6d5cd /usr.bin/renice
parentstrip%d not st%d (diff)
downloadwireguard-openbsd-81a265f705df077dedc5defc249f00af0fb762a5.tar.xz
wireguard-openbsd-81a265f705df077dedc5defc249f00af0fb762a5.zip
Wall
Diffstat (limited to 'usr.bin/renice')
-rw-r--r--usr.bin/renice/renice.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c
index 1bf825af4f5..54a53455ab3 100644
--- a/usr.bin/renice/renice.c
+++ b/usr.bin/renice/renice.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: renice.c,v 1.2 1996/06/26 05:38:27 deraadt Exp $ */
+/* $OpenBSD: renice.c,v 1.3 1997/06/20 10:02:31 deraadt Exp $ */
/*
* Copyright (c) 1983 The Regents of the University of California.
@@ -41,20 +41,24 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)renice.c 5.3 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$OpenBSD: renice.c,v 1.2 1996/06/26 05:38:27 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: renice.c,v 1.3 1997/06/20 10:02:31 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <stdio.h>
+#include <stdlib.h>
#include <pwd.h>
+int donice __P((int, int, int));
+
/*
* Change the priority (nice) of processes
* or groups of processes which are already
* running.
*/
+int
main(argc, argv)
char **argv;
{
@@ -108,6 +112,7 @@ main(argc, argv)
exit(errs != 0);
}
+int
donice(which, who, prio)
int which, who, prio;
{