summaryrefslogtreecommitdiff
path: root/sys-utils/renice.c
AgeCommit message (Collapse)AuthorFilesLines
2012-01-22Restored building renice (with gnulib)Igor Pashev1-0/+1
2010-12-10fix __noreturn__ usageKarel Zak1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-12-09renice: improve messages specifying what ID is referring toFrancesco Cosoleto1-5/+11
Hello, On 30/11/2010 13:01, Karel Zak wrote: > Unfortunately, translators don't like this kind of strings where any > translatable substring is inserted to the normal sentence. It would be > better to use something like: > > "%d (%s): failed to set priority", who, idtype > > "%s: %d: failed to set priority", idtype, who > > or so... or "failed to set priority for %d (%s)"? From 536eb11f873f2c887e075a37ffb3c971cac258d5 Mon Sep 17 00:00:00 2001 From: Francesco Cosoleto <cosoleto@gmail.com> Date: Mon, 6 Dec 2010 01:23:10 +0100 Subject: [PATCH] renice: improve messages specifying what ID is referring to This version makes more clear the printed message specially when the --user option is used. Old version: $ renice 19 10 -u fra -g 1 renice: 10: setpriority: Operation not permitted renice: 1000: setpriority: Operation not permitted renice: 1: setpriority: Operation not permitted $ renice 19 -u fra 1000: old priority 0, new priority 19 New version: $ renice 19 10 -u fra -g 1 renice: failed to set priority for 10 (process ID): Operation not permitted renice: failed to set priority for 1000 (user ID): Operation not permitted renice: failed to set priority for 1 (process group ID): Operation not permitted $ renice 19 -u fra 1000 (user ID) old priority 0, new priority 19 Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-11-30renice: rewrite usage()Karel Zak1-12/+23
Signed-off-by: Karel Zak <kzak@redhat.com>
2010-11-30renice: reverse %s position in error messagesFrancesco Cosoleto1-2/+2
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-11-30renice: remove hardcoded program name using warn() and warnx()Francesco Cosoleto1-10/+6
Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
2010-11-30renice: make some functions staticFrancesco Cosoleto1-3/+3
2009-03-09renice: add -n option for compatibility with POSIXKarel Zak1-3/+9
The -n option is required by POSIX.1-200x. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-01-29renice: detect errors in arguments, add -v, -h and long optionsLaMont Jones1-23/+46
* renice was using atoi(), which does no error detection, meaning that: "renice +20 blah" was accepted as valid. * add -h | --help * add -v | --version * add long options for -p, -u and -g * cleanup coding style Addresses-Debian-Bug: #385245 Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: LaMont Jones <lamont@debian.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2006-12-07Imported from util-linux-2.11m tarball.Karel Zak1-7/+17
2006-12-07Imported from util-linux-2.11b tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.10s tarball.Karel Zak1-0/+1
2006-12-07Imported from util-linux-2.9v tarball.Karel Zak1-8/+17
2006-12-07Imported from util-linux-2.8 tarball.Karel Zak1-14/+3
2006-12-07Imported from util-linux-2.7.1 tarball.Karel Zak1-0/+5
2006-12-07Imported from util-linux-2.2 tarball.Karel Zak1-0/+128