From: Sami Kerola <kerolasa@iki.fi>
To: util-linux@vger.kernel.org
Subject: Re: [PATCH 0/6] pull: renice changes
Date: Tue, 16 Sep 2014 21:21:37 +0100 (BST) [thread overview]
Message-ID: <alpine.LNX.2.03.1409162118180.3712@kerolasa-home> (raw)
In-Reply-To: <1410002693-16540-1-git-send-email-kerolasa@iki.fi>
On Sat, 6 Sep 2014, Sami Kerola wrote:
> The renice(1) code looked a bit dated, so I decided to change it a bit
> which resulted few more changes than I thought. The --priority <arg>
> change makes the command line interface a bit less awkward, and the
> numeric uid argument parsing is a bug fix. Rest of the changes are clean
> ups.
Pull request I sent earlier is no longer completely up to date. The
renice branch is rebased on top of upstream master, and there is one new
change 0007: reorder usage() option descriptions.
The following changes since commit a3b92242ad76a7468cf508e1d878d0815c7e031f:
libmount: hide details about failed search in fstab/mtab (2014-09-16 15:30:03 +0200)
are available in the git repository at:
git://github.com/kerolasa/lelux-utiliteetit.git renice
for you to fetch changes up to a32b3f68da162eadbb17ff65a585d0249805c32f:
renice: reorder usage() option descriptions (2014-09-16 21:09:11 +0100)
----------------------------------------------------------------
Sami Kerola (7):
renice: reorder functions to avoid need of function prototype
rename: use usage and version print out macros
renice: disallow --priority <arg> without pid argument
renice: avoid having same lines of code twice
renice: fix numeric uid argument parsing
rename: add getpriority() message lookup table
renice: reorder usage() option descriptions
sys-utils/renice.c | 111
++++++++++++++++++++++++++---------------------------
1 file changed, 55 insertions(+), 56 deletions(-)
-->8---
From: Sami Kerola <kerolasa@iki.fi>
Date: Sun, 14 Sep 2014 11:12:58 +0100
Subject: [PATCH 7/7] renice: reorder usage() option descriptions
Make the Usage: and Options: sections to be in same order, which I found
to be quicker to use than alphabetical order.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
sys-utils/renice.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/sys-utils/renice.c b/sys-utils/renice.c
index 994c9de..100f6a5 100644
--- a/sys-utils/renice.c
+++ b/sys-utils/renice.c
@@ -63,12 +63,13 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
" %1$s [-n] <priority> -u|--user <user>...\n"),
program_invocation_short_name);
fputs(USAGE_OPTIONS, out);
- fputs(_(" -g, --pgrp <id> interpret argument as process group ID\n"
- " -n, --priority <num> specify the nice increment value\n"
- " -p, --pid <id> interpret argument as process ID (default)\n"
- " -u, --user <name|id> interpret argument as username or user ID\n"
- " -h, --help display help text and exit\n"
- " -V, --version display version information and exit\n"), out);
+ fputs(_(" -n, --priority <num> specify the nice increment value\n"), out);
+ fputs(_(" -p, --pid <id> interpret argument as process ID (default)\n"), out);
+ fputs(_(" -g, --pgrp <id> interpret argument as process group ID\n"), out);
+ fputs(_(" -u, --user <name|id> interpret argument as username or user ID\n"), out);
+ fputs(USAGE_SEPARATOR, out);
+ fputs(USAGE_HELP, out);
+ fputs(USAGE_VERSION, out);
fprintf(out, USAGE_MAN_TAIL("renice(1)"));
exit(out == stderr ? EXIT_FAILURE : EXIT_SUCCESS);
}
--
2.1.0
next prev parent reply other threads:[~2014-09-16 20:21 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-06 11:24 [PATCH 0/6] pull: renice changes Sami Kerola
2014-09-06 11:24 ` [PATCH 1/6] renice: reorder functions to avoid need of function prototype Sami Kerola
2014-09-06 11:24 ` [PATCH 2/6] rename: use usage and version print out macros Sami Kerola
2014-09-06 11:24 ` [PATCH 3/6] renice: disallow --priority <arg> without pid argument Sami Kerola
2014-09-06 11:24 ` [PATCH 4/6] renice: avoid having same lines of code twice Sami Kerola
2014-09-12 7:35 ` Karel Zak
2014-09-16 20:13 ` Sami Kerola
2014-09-06 11:24 ` [PATCH 5/6] renice: fix numeric uid argument parsing Sami Kerola
2014-09-12 8:03 ` Karel Zak
2014-09-16 20:17 ` Sami Kerola
2014-09-06 11:24 ` [PATCH 6/6] rename: add getpriority() message lookup table Sami Kerola
2014-09-16 20:21 ` Sami Kerola [this message]
2014-09-17 7:57 ` [PATCH 0/6] pull: renice changes Benno Schulenberg
2014-09-17 10:06 ` Sami Kerola
2014-09-22 12:48 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.03.1409162118180.3712@kerolasa-home \
--to=kerolasa@iki.fi \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox