From 622e8da61d6035c2284606542eb647146b5ba9b1 Mon Sep 17 00:00:00 2001 From: Philippe Charnier Date: Wed, 26 Feb 2003 20:27:24 +0000 Subject: [PATCH] The usage string: renice [priority | [-n incr]] ... assumed that the part `priority | [-n incr]' was optionnal which is wrong according to the code. Add FreeBSD Id. Reviewed by: maxim --- usr.bin/renice/renice.8 | 7 ++++++- usr.bin/renice/renice.c | 13 +++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/usr.bin/renice/renice.8 b/usr.bin/renice/renice.8 index e20747671d11..4420d8efa758 100644 --- a/usr.bin/renice/renice.8 +++ b/usr.bin/renice/renice.8 @@ -40,7 +40,12 @@ .Nd alter priority of running processes .Sh SYNOPSIS .Nm -.Op Ar priority | Op Fl n Ar increment +.Ar priority +.Op Oo Fl p Oc Ar pid ... +.Op Oo Fl g Oc Ar pgrp ... +.Op Oo Fl u Oc Ar user ... +.Nm +.Fl n Ar increment .Op Oo Fl p Oc Ar pid ... .Op Oo Fl g Oc Ar pgrp ... .Op Oo Fl u Oc Ar user ... diff --git a/usr.bin/renice/renice.c b/usr.bin/renice/renice.c index f9e7d9c8cc5c..333f4cd768ce 100644 --- a/usr.bin/renice/renice.c +++ b/usr.bin/renice/renice.c @@ -37,13 +37,14 @@ static const char copyright[] = The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ -#ifndef lint #if 0 +#ifndef lint static char sccsid[] = "@(#)renice.c 8.1 (Berkeley) 6/9/93"; -#endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include +__FBSDID("$FreeBSD$"); #include #include @@ -179,7 +180,7 @@ static void usage() { fprintf(stderr, "%s\n%s\n", -"usage: renice [priority | [-n incr]] [[-p] pid ...] [[-g] pgrp ...]", -" [[-u] user ...]"); +"usage: renice priority [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]", +" renice -n increment [[-p] pid ...] [[-g] pgrp ...] [[-u] user ...]"); exit(1); }