Sami Kerola
208a043256
tload: validate scale argument
...
Earlier version crashed when negative value was provided.
$ tload -s -1
Segmentation fault
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-12-20 17:30:54 +01:00
Sami Kerola
9047933b2d
tload: validate numeric user input
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-12-20 17:30:54 +01:00
Sami Kerola
0022b6ec5d
nls: improve translations and provide translator help comments
...
Reference: http://www.freelists.org/post/procps/backporting,1
Reported-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-12-20 17:30:54 +01:00
Sami Kerola
c862a4caa5
nls: add functions which take translations to be used
...
Add the following three functions to most of the commands.
setlocale (LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
Reference: http://www.freelists.org/post/procps/backporting,1
Reported-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-12-20 17:30:53 +01:00
Sami Kerola
1ef14f4bf9
includes: add xalloc.h to unify memory allocations
...
The xalloc.h provides necessary error checking.
Signed-off-by: Jim Warner <james.warner@comcast.net>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-12-20 17:30:50 +01:00
Sami Kerola
24762e2ed8
tload: add gettext support
...
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-12-20 17:17:04 +01:00
Sami Kerola
a08e0a6ef2
tload: new usage & fix coding style
...
Coding style fixed and more readable help output.
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
2011-12-20 17:17:02 +01:00
Craig Small
426941f8a3
tload: remote unneeded optarg and optind variables
...
A patch from Debian.
Backported-by: Sami Kerola <kerolasa@iki.fi>
2011-12-18 22:53:30 +11:00
Jim Warner
9408b9721b
rh analysis #2 : tload
...
http://www.freelists.org/post/procps/Scan-results,5
2011-10-19 09:32:40 +02:00
csmall
03a9b5a30f
procps 010114
2002-02-01 22:47:29 +00:00