procps:crrodriguezs-procps.git
6 years agobuild-sys: use Makevars --add-comments= to limit .pot comments
Jim Warner [Sun, 6 Nov 2011 23:08:02 +0000 (17:08 -0600)]
build-sys: use Makevars --add-comments= to limit .pot comments

By not limiting --add-comments= via an argument, xgettext is far
too aggressive (one might say stupid) when extracting comments.
It doesn't even limit extraction to a single preceeding comment.

Here is an example showing a program source excerpt and the
resulting .pot excerpt:

 --- program source ----------------------------------------
 close (0); dup (in_fd[0]);  /* set the stdin to the in pipe */
 close (1); dup (out_fd[1]); /* set the stdout to the out pipe */
 close (2); dup (out_fd[1]); /* set the stderr to the out pipe */
 execvp (args[0], args);     /* exec gdb */
 perror (_("exec failed"));

 --- resulting .pot ----------------------------------------
 #. set the stdin to the in pipe
 #. set the stdout to the out pipe
 #. set the stderr to the out pipe
 #. exec gdb
 #: ps/stacktrace.c:28 ps/stacktrace.c:63
 msgid "exec failed"
 msgstr ""

6 years agobuild-sys: we don't need wide-ncurses, what were we thinking?
Jim Warner [Fri, 28 Oct 2011 13:37:30 +0000 (08:37 -0500)]
build-sys: we don't need wide-ncurses, what were we thinking?

. 1 program uses curses (top)
. 2 programs use ncurses (slabtop, watch)
. all 3 include non-wide <curses.h> or <ncurses.h>
. those 3 do not currently need wide support
. but anticipating nls, we link against libncursesw

This patch ensures an environment consistent with current
and future ncurses needs.

6 years agobuild-sys: added config.h include to nls.h (for PACKAGE str)
Jim Warner [Tue, 1 Nov 2011 23:38:52 +0000 (18:38 -0500)]
build-sys: added config.h include to nls.h (for PACKAGE str)

6 years agobuild-sys: added tabs to AC_CONFIG_FILES for consistency
Jim Warner [Mon, 31 Oct 2011 15:15:23 +0000 (10:15 -0500)]
build-sys: added tabs to AC_CONFIG_FILES for consistency

6 years agobuild-sys: alphabeticized strverscmp in AC_CHECK_FUNCS
Jim Warner [Mon, 31 Oct 2011 15:13:20 +0000 (10:13 -0500)]
build-sys: alphabeticized strverscmp in AC_CHECK_FUNCS

6 years agobuild-sys: added some missing files to AC_CHECK_HEADERS
Jim Warner [Mon, 31 Oct 2011 14:57:00 +0000 (09:57 -0500)]
build-sys: added some missing files to AC_CHECK_HEADERS

6 years agoslabtop: added remaining missing nls support
Jim Warner [Thu, 3 Nov 2011 16:07:47 +0000 (11:07 -0500)]
slabtop: added remaining missing nls support

6 years agofree: added remaining missing nls support
Jim Warner [Thu, 3 Nov 2011 10:37:10 +0000 (05:37 -0500)]
free: added remaining missing nls support

6 years agomisc: trailing space/tab cleanup following rebase
Jim Warner [Thu, 27 Oct 2011 14:50:24 +0000 (09:50 -0500)]
misc: trailing space/tab cleanup following rebase

6 years agobuild-sys: corrected/simplified ncurses support detection
Jim Warner [Wed, 26 Oct 2011 22:29:48 +0000 (17:29 -0500)]
build-sys: corrected/simplified ncurses support detection

6 years agopmap: correct 'rh analysis #2' patch and contrib document
Jim Warner [Mon, 24 Oct 2011 22:16:26 +0000 (17:16 -0500)]
pmap: correct 'rh analysis #2' patch and contrib document

6 years agobuild-sys: verify gettext is present in autogen.sh
Sami Kerola [Wed, 19 Oct 2011 09:45:38 +0000 (11:45 +0200)]
build-sys: verify gettext is present in autogen.sh

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agobuild-sys: add missing files to distribution
Sami Kerola [Wed, 19 Oct 2011 08:37:03 +0000 (10:37 +0200)]
build-sys: add missing files to distribution

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agobuild-sys: remove non-existing files from Makefile.am
Sami Kerola [Wed, 19 Oct 2011 07:58:06 +0000 (09:58 +0200)]
build-sys: remove non-existing files from Makefile.am

The f23390043bece9f2d4870e5b3a187896e2c7d23f removed few files,
which still exist in Makefile.am making `make dist' to fail. This
patch fixes the isue.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: add rh analysis #2 information to contrib
Sami Kerola [Wed, 19 Oct 2011 07:39:36 +0000 (09:39 +0200)]
docs: add rh analysis #2 information to contrib

Reference information.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agobuild-sys: enable xgettext TRANSLATORS comments
Jim Warner [Fri, 14 Oct 2011 07:10:34 +0000 (02:10 -0500)]
build-sys: enable xgettext TRANSLATORS comments

This commit will enable pass comments to translators near gettext
directive to .pot file. For example;

/* TRANSLATORS: this is visible in .pot file */
printf(_("to be translated"));

Signed-off-by: Jim Warner <james.warner@comcast.net>
6 years agosysctl: warn when separators are repeated
Sami Kerola [Wed, 12 Oct 2011 21:21:34 +0000 (23:21 +0200)]
sysctl: warn when separators are repeated

For some reason sysctl earlier allowed quite strange separators.

% sysctl kernel./.pty.nr
kernel./.pty.nr = 6
% sysctl kernel///pty//////////nr
kernel...pty..........nr = 6

This commit does not disallow that sort of constructs, but will warn
about them. In future disallowing these might be reasonable thing to
do.

% sysctl kernel./.pty.nr
sysctl: separators should not be repeated: ./.pty.nr
kernel./.pty.nr = 6

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agosysctl: use libc error printing facilities
Sami Kerola [Wed, 12 Oct 2011 20:35:56 +0000 (22:35 +0200)]
sysctl: use libc error printing facilities

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agovmstat: use libc error printing facilities
Sami Kerola [Wed, 12 Oct 2011 18:53:11 +0000 (20:53 +0200)]
vmstat: use libc error printing facilities

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agopgrep: use libc error printing facilities
Sami Kerola [Tue, 11 Oct 2011 21:20:36 +0000 (23:20 +0200)]
pgrep: use libc error printing facilities

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agolibproc-ng & ps: fix warning reported by smatch
Sami Kerola [Tue, 11 Oct 2011 20:01:19 +0000 (22:01 +0200)]
libproc-ng & ps: fix warning reported by smatch

proc/ksym.c +279 read_file(54) info: redundant null check on buf calling free()
proc/ksym.c +330 parse_ksyms(41) info: redundant null check on ksyms_data calling free()
proc/ksym.c +332 parse_ksyms(43) info: redundant null check on ksyms_index calling free()
proc/ksym.c +451 sysmap_mmap(110) info: redundant null check on sysmap_index calling free()
proc/procps.h:74:5: warning: undefined preprocessor identifier 'SHARED'
proc/slab.c +145 parse_slabinfo20(24) error: potential null derefence 'prev'.
proc/slab.c +222 parse_slabinfo11(21) error: potential null derefence 'prev'.
ps/stacktrace.c +131 debug(6) error: snprintf() is printing too much 99 vs 16

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agomisc: compiler warning fixes
Sami Kerola [Sun, 9 Oct 2011 20:45:59 +0000 (22:45 +0200)]
misc: compiler warning fixes

Fix few compiler warnings. Some of these warnings appeared multiple
times, and the listing bellow is more about which sort of errors
where fixed.

devname.c:87:12: warning: comparison of integers of different signs: 'int' and 'unsigned long'
output.c:389:36: warning: passing 'char **const' to parameter of type 'const char *const restrict *' discards qualifiers in nested pointer types
output.c:611:31: warning: comparison of integers of different signs: 'const unsigned long' and 'int'
stacktrace.c:33:37: warning: unused parameter 'signum'

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agoincludes: add xalloc.h to unify memory allocations
Sami Kerola [Sun, 9 Oct 2011 19:29:26 +0000 (21:29 +0200)]
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>
6 years agops: add gettext support
Sami Kerola [Sun, 9 Oct 2011 11:52:57 +0000 (13:52 +0200)]
ps: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agowatch: add gettext support
Sami Kerola [Sun, 9 Oct 2011 11:12:04 +0000 (13:12 +0200)]
watch: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agow: add gettext support
Sami Kerola [Sun, 9 Oct 2011 11:05:02 +0000 (13:05 +0200)]
w: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agovmstat: add gettext support
Sami Kerola [Sun, 9 Oct 2011 10:35:38 +0000 (12:35 +0200)]
vmstat: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agouptime: add gettext support
Sami Kerola [Sun, 9 Oct 2011 10:25:30 +0000 (12:25 +0200)]
uptime: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agotload: add gettext support
Sami Kerola [Sun, 9 Oct 2011 10:25:19 +0000 (12:25 +0200)]
tload: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agosysctl: add gettext support
Sami Kerola [Sun, 9 Oct 2011 00:57:45 +0000 (02:57 +0200)]
sysctl: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agoslabtop: add gettext support
Sami Kerola [Sun, 9 Oct 2011 00:49:51 +0000 (02:49 +0200)]
slabtop: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agoskill: add gettext support
Sami Kerola [Sun, 9 Oct 2011 00:28:17 +0000 (02:28 +0200)]
skill: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agopwdx: add gettext support
Sami Kerola [Sun, 9 Oct 2011 00:10:05 +0000 (02:10 +0200)]
pwdx: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agopmap: add gettext support
Sami Kerola [Sun, 9 Oct 2011 00:05:14 +0000 (02:05 +0200)]
pmap: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agopgrep: add gettext support
Sami Kerola [Sat, 8 Oct 2011 23:29:43 +0000 (01:29 +0200)]
pgrep: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agofree: add gettext support
Sami Kerola [Sat, 8 Oct 2011 20:24:06 +0000 (22:24 +0200)]
free: add gettext support

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agobuild-sys: add c.h with fundamental C definitions
Sami Kerola [Sat, 8 Oct 2011 20:00:02 +0000 (22:00 +0200)]
build-sys: add c.h with fundamental C definitions

This file contains various preprocessor directed definitions, and
other definitions, which most programs need.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agobuild-sys: add NLS support
Sami Kerola [Sat, 8 Oct 2011 19:14:21 +0000 (21:14 +0200)]
build-sys: add NLS support

Add GNU gettext internationalization and localization support.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agosysctl: implement --pattern option
Ludwig Nussel [Fri, 7 Oct 2011 07:10:50 +0000 (09:10 +0200)]
sysctl: implement --pattern option

Useful for e.g network hook scripts together with --system to only apply
sysctls for a specific network interface.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agosysctl: add --system switch
Ludwig Nussel [Fri, 7 Oct 2011 07:10:49 +0000 (09:10 +0200)]
sysctl: add --system switch

instead of requiring distributions to construct a loop around sysctl
in boot scripts just scan a set of default directories if the --system
switch is used.

Config files are applied in alphabetic order of their base name.
Each base name is only applied once according to the directory
preference. /etc/sysctl.conf is always applied last.

Signed-off-by: Ludwig Nussel <ludwig.nussel@suse.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agops: new usage function
Sami Kerola [Sun, 2 Oct 2011 11:07:35 +0000 (13:07 +0200)]
ps: new usage function

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: clean up kill and skill man pages
Sami Kerola [Sat, 1 Oct 2011 23:15:12 +0000 (01:15 +0200)]
docs: clean up kill and skill man pages

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agoskill: new usage function
Sami Kerola [Sat, 1 Oct 2011 22:24:52 +0000 (00:24 +0200)]
skill: new usage function

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man vmstat.8
Sami Kerola [Wed, 28 Sep 2011 20:54:05 +0000 (22:54 +0200)]
docs: mention long options in man vmstat.8

This commit includes generic manual clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agovmstat: add long options & new usage function
Sami Kerola [Wed, 28 Sep 2011 20:23:33 +0000 (22:23 +0200)]
vmstat: add long options & new usage function

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: fix free.1 groff syntax
Sami Kerola [Tue, 27 Sep 2011 21:04:35 +0000 (23:04 +0200)]
docs: fix free.1 groff syntax

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man pgrep.1
Sami Kerola [Tue, 27 Sep 2011 20:42:51 +0000 (22:42 +0200)]
docs: mention long options in man pgrep.1

This commit includes generic manual clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agow: new usage & fix coding style
Sami Kerola [Sun, 5 Jun 2011 12:34:42 +0000 (14:34 +0200)]
w: new usage & fix coding style

Coding style fixed and more readable help output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agoinclude/devname.h: add missing header
Sami Kerola [Sun, 5 Jun 2011 11:23:15 +0000 (13:23 +0200)]
include/devname.h: add missing header

The devname.h requires readproc.h header which has dev_t. Unless
header is included the includes in program files must be in
correct order. I also added FIXME item to remind that for uid &
gid value int not correct data type but uid_t or gid_t from
pwd.h.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agotload: new usage & fix coding style
Sami Kerola [Sun, 5 Jun 2011 11:19:35 +0000 (13:19 +0200)]
tload: new usage & fix coding style

Coding style fixed and more readable help output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agouptime: new usage & fix coding style
Sami Kerola [Sat, 4 Jun 2011 19:33:11 +0000 (21:33 +0200)]
uptime: new usage & fix coding style

Coding style fixed and more readable help output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agoslabtop: new usage & fix coding style
Sami Kerola [Sat, 4 Jun 2011 16:58:25 +0000 (18:58 +0200)]
slabtop: new usage & fix coding style

Coding style fixed and more readable help output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agopwdx.c: new usage & fix coding style
Sami Kerola [Sat, 4 Jun 2011 16:56:08 +0000 (18:56 +0200)]
pwdx.c: new usage & fix coding style

Coding style fixed and new help output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agopgrep: add long options & new usage
Sami Kerola [Mon, 26 Sep 2011 20:03:43 +0000 (22:03 +0200)]
pgrep: add long options & new usage

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agofree: do not mix declarations and code [smatch scan]
Sami Kerola [Sat, 24 Sep 2011 06:41:26 +0000 (08:41 +0200)]
free: do not mix declarations and code [smatch scan]

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man sysctl.8
Sami Kerola [Mon, 6 Jun 2011 21:17:20 +0000 (23:17 +0200)]
docs: mention long options in man sysctl.8

The commit includes few generic manual clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man pmap.1
Sami Kerola [Mon, 6 Jun 2011 21:08:36 +0000 (23:08 +0200)]
docs: mention long options in man pmap.1

Also add range option to manual page. The commit includes few generic manual
clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man watch.1
Sami Kerola [Mon, 6 Jun 2011 21:02:14 +0000 (23:02 +0200)]
docs: mention long options in man watch.1

This patch also changed a little the manual page structure, and wording.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man w.1
Sami Kerola [Mon, 6 Jun 2011 20:53:59 +0000 (22:53 +0200)]
docs: mention long options in man w.1

The commit includes few generic manual clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man tload.1
Sami Kerola [Mon, 6 Jun 2011 20:48:26 +0000 (22:48 +0200)]
docs: mention long options in man tload.1

The commit includes few generic manual clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man uptime.1
Sami Kerola [Mon, 6 Jun 2011 20:44:05 +0000 (22:44 +0200)]
docs: mention long options in man uptime.1

The commit includes few generic manual clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: small nroff fixes to man slabtop.1
Sami Kerola [Mon, 6 Jun 2011 20:40:58 +0000 (22:40 +0200)]
docs: small nroff fixes to man slabtop.1

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agodocs: mention long options in man pwdx.1
Sami Kerola [Mon, 6 Jun 2011 20:34:52 +0000 (22:34 +0200)]
docs: mention long options in man pwdx.1

The commit includes few generic manual clean ups as well.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agosysctl: options handling & usage output
Sami Kerola [Sun, 5 Jun 2011 17:46:49 +0000 (19:46 +0200)]
sysctl: options handling & usage output

The sysctl now uses getopt_long and has help screen which be user
friendly. Rest of the modernization is left later, since this is
a command is used in scripts, and changing for instance error
printing to use warn & warnx could break stuff.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agopmap: new usage & fix coding style
Sami Kerola [Sun, 5 Jun 2011 16:05:26 +0000 (18:05 +0200)]
pmap: new usage & fix coding style

Coding style fixed and more readable help output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agowatch: new usage & fix coding style
Sami Kerola [Sun, 5 Jun 2011 13:05:47 +0000 (15:05 +0200)]
watch: new usage & fix coding style

Coding style fixed and more readable help output.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
6 years agoRemoved xalloc type functions from library
Craig Small [Tue, 20 Dec 2011 11:56:17 +0000 (22:56 +1100)]
Removed xalloc type functions from library

These xalloc functions are a private function for the library. If using
programs need them, then they should make their own error reporting or
use a common file.

6 years agoAdded news item for top search capability
Craig Small [Tue, 20 Dec 2011 11:16:40 +0000 (22:16 +1100)]
Added news item for top search capability

6 years agotop: update man document for new search capability
Jim Warner [Fri, 16 Dec 2011 20:03:44 +0000 (14:03 -0600)]
top: update man document for new search capability

This commit documents the top search provisons as a
new section entitled:
   5d. SEARCHING in a window

It also adds minor unrelated content and tweaks some
miscellaneous formatting and spacing inconsistencies.

6 years agotop: add a search capability
Jim Warner [Fri, 16 Dec 2011 20:04:38 +0000 (14:04 -0600)]
top: add a search capability

6 years agoFixed watch 8 bit so its optional
Craig Small [Tue, 20 Dec 2011 11:12:37 +0000 (22:12 +1100)]
Fixed watch 8 bit so its optional

You can make watch 8bit clean by using the configure option
--enable-watch8bit

6 years agowatch: support unicode
Jarrod Lowe [Tue, 3 Nov 2009 19:24:27 +0000 (19:24 +0000)]
watch: support unicode

A patch from Debian.

Bug-Debian: http://bugs.debian.org/240989
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/procps/+bug/318221
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agowatch: add precision wait time option -p
Anthony DeRobertis [Tue, 24 Nov 2009 00:00:46 +0000 (11:00 +1100)]
watch: add precision wait time option -p

A patch from Debian.

Bug-Debian: http://bugs.debian.org/183486
Reviewed-by: Craig Small <csmall@debian.org>
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agowatch: interpret ANSI color code sequences
Craig Small [Mon, 1 Mar 2010 06:17:11 +0000 (06:17 +0000)]
watch: interpret ANSI color code sequences

A patch from Debian.

Bug-Debian: http://bugs.debian.org/129334
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agowatch: add -exec and -beep flags and has better quoting
Mordechai T. Abzug [Tue, 24 Nov 2009 00:00:43 +0000 (11:00 +1100)]
watch: add -exec and -beep flags and has better quoting

Additionally add -errexit flag (#183346).

A patch from Debian.

Bug-Debian: http://bugs.debian.org/410967
Bug-Debian: http://bugs.debian.org/183346
Reviewed-by: Craig Small <csmall@debian.org>
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agow: use environment to set user and from/host column widths
Craig Small [Tue, 24 Nov 2009 00:00:44 +0000 (11:00 +1100)]
w: use environment to set user and from/host column widths

A patch from Debian.

Bug-Debian: http://bugs.debian.org/396423
Bug-Debian: http://bugs.debian.org/341439
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agow: use COLUMNS environment if TIOCGWINSZ fails
Craig Small [Tue, 24 Nov 2009 00:00:43 +0000 (11:00 +1100)]
w: use COLUMNS environment if TIOCGWINSZ fails

A patch from Debian.

Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agow: bassman emulation with -o option
Craig Small [Tue, 24 Nov 2009 00:00:39 +0000 (11:00 +1100)]
w: bassman emulation with -o option

A patch from Debian.

Bug-Debian: http://bugs.debian.org/414906
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agovmstat: do not scale si/so just like bi/bo
Michael Tokarev [Thu, 26 Nov 2009 16:55:22 +0000 (19:55 +0300)]
vmstat: do not scale si/so just like bi/bo

Use strtoull insteadof strtoul for some counters.

A patch from Debian.

Bug-Debian: http://bugs.debian.org/558361
Bug-Debian: http://bugs.debian.org/558134
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agolibprocps-ng: sysinfo.c: truncate the vmstat figure to 32 bits
David Fries [Sat, 2 Apr 2011 17:59:17 +0000 (12:59 -0500)]
libprocps-ng: sysinfo.c: truncate the vmstat figure to 32 bits

A patch from Debian.

Bug-Debian: http://bugs.debian.org/620557
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agotload: remote unneeded optarg and optind variables
Craig Small [Tue, 24 Nov 2009 00:00:42 +0000 (11:00 +1100)]
tload: remote unneeded optarg and optind variables

A patch from Debian.

Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agosysctl: fix up some option processing
Craig Small [Tue, 24 Nov 2009 00:00:33 +0000 (11:00 +1100)]
sysctl: fix up some option processing

A patch from Debian.

Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agoskill: kill prints perror
Justin Pryzby [Thu, 28 Feb 2008 15:59:37 +0000 (10:59 -0500)]
skill: kill prints perror

A patch from Debian.

Bug-Debian: http://bugs.debian.org/468363
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agoskill: do not treat skill null parameter as 0
WANG Yunfeng [Fri, 16 Oct 2009 10:39:31 +0000 (18:39 +0800)]
skill: do not treat skill null parameter as 0

A patch from Debian.

Bug-Debian: http://bugs.debian.org/551173
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agoskill: fix too greedy option parser
Craig Small [Wed, 10 Feb 2010 11:00:26 +0000 (11:00 +0000)]
skill: fix too greedy option parser

Patch based on submitted patch by Yoshio Nakamura

A patch from Debian.

Bug-Debian: http://bugs.debian.org/331419
Bug-Debian: http://bugs.debian.org/569030
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agolibprocps-ng: readproc.c: some type conversion help
Craig Small [Tue, 24 Nov 2009 00:00:41 +0000 (11:00 +1100)]
libprocps-ng: readproc.c: some type conversion help

Return if unable to open /proc

A patch from Debian.

Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agops: rename SZ to SIZE
Craig Small [Mon, 5 Oct 2009 10:49:04 +0000 (10:49 +0000)]
ps: rename SZ to SIZE

Means we do not follow SCO but less confusion.

A patch from Debian.

Bug-Debian: http://bugs.debian.org/541061
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agops: add sorting to %mem for ps
Jessica McKellar [Mon, 4 Oct 2010 00:17:19 +0000 (20:17 -0400)]
ps: add sorting to %mem for ps

A patch from Debian.

Bug-Debian: http://bugs.debian.org/599043
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agopmap: provide information for -x option
Craig Small [Sun, 31 Jan 2010 11:06:04 +0000 (12:06 +0100)]
pmap: provide information for -x option

A patch from Debian.

Similiar idea to pmap written by Robert Love.

Bug-Debian: http://bugs.debian.org/347476
Bug-Debian: http://bugs.debian.org/505571
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agopgrep: distinguish between invalid commandline parameters and '-?'
Jan Christoph Nordholz [Tue, 24 Nov 2009 00:00:49 +0000 (11:00 +1100)]
pgrep: distinguish between invalid commandline parameters and '-?'

A patch from Debian.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=413383
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agopgrep: fix compiler warning saved_start_time might be used uninitialized
Craig Small [Tue, 24 Nov 2009 00:00:41 +0000 (11:00 +1100)]
pgrep: fix compiler warning saved_start_time might be used uninitialized

A patch from Debian.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=197342
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agopgrep: add -c option for counting number of matched proceesses
Craig Small [Tue, 24 Nov 2009 10:00:45 +0000 (11:00 +0100)]
pgrep: add -c option for counting number of matched proceesses

A patch from Debian.

Bug-Debian: http://bugs.debian.org/375791
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agopwdx & libprocps-ng: Hurd does not have MAX_PATH defined
Daniel Novotny [Wed, 18 Feb 2009 12:05:22 +0000 (13:05 +0100)]
pwdx & libprocps-ng: Hurd does not have MAX_PATH defined

A patch from Debian.

Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=485243
Bug-Debian: http://bugs.debian.org/588677
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agops: --sort does not work with time argument
Alfredo Esteban [Tue, 24 Nov 2009 10:00:30 +0000 (11:00 +0100)]
ps: --sort does not work with time argument

A patch from Debian.

Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508435
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508435
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agoskill: add CR to warning line
Craig Small [Tue, 24 Nov 2009 00:00:37 +0000 (11:00 +1100)]
skill: add CR to warning line

A patch from Debian.

Bug-Debian: http://bugs.debian.org/331419
Bug-Debian: http://bugs.debian.org/331419
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agocontrib: minimal ps: define mips PAGE_SIZE
Ciaran McCreesh [Fri, 20 Aug 2004 06:01:35 +0000 (08:01 +0200)]
contrib: minimal ps: define mips PAGE_SIZE

A patch from Gentoo.

Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-mips-define-pagesize.patch?revision=1.1&view=markup
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agolibproc-ng: prettyfy proc mount messages
Armin van Buuren [Tue, 27 Jun 2006 03:07:09 +0000 (03:07 +0000)]
libproc-ng: prettyfy proc mount messages

A patch from Gentoo.

Bug-Gentoo: https://bugs.gentoo.org/138029?id=138029
Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-3.2.7-proc-mount.patch?revision=1.1&view=markup
Bug-Gentoo: http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-process/procps/files/procps-3.2.7-proc-mount.patch?revision=1.1&view=markup
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agops: add build option to disable ps option warning
unknown [Mon, 5 Dec 2011 15:35:35 +0000 (16:35 +0100)]
ps: add build option to disable ps option warning

Slackware seems to have this patch, while it is not in use(?) Well,
the upstream procps-ng allows one to disable warnings if that is
wanted. After all having this sort of 'feature' does not cost much,
while lacking it might annoy someone.

A patch from Slackware.

Reference: http://www.ftp.be/packages/slackware/slackware_source/a/procps/procps.nowarning.diff.gz
Backported-by: Sami Kerola <kerolasa@iki.fi>
Conflicts:

proc/ksym.c

6 years agolibproc-ng: support building without WCHAR support
Hamish Moffatt [Tue, 9 Sep 2008 02:06:52 +0000 (02:06 +0000)]
libproc-ng: support building without WCHAR support

The uClibc might not have wchar.

A patch from Buildroot.

Reference: http://git.buildroot.net/buildroot/tree/package/procps/procps-wchar.patch?id=fc333e7d083d144e0f8d1c4bac061b8de2ee7510
Backported-by: Sami Kerola <kerolasa@iki.fi>
6 years agosysctl: remove index() for buildroot
Steven J. Hill [Tue, 5 Dec 2006 02:16:03 +0000 (02:16 +0000)]
sysctl: remove index() for buildroot

The uClibc does not support index() function.

A patch from Buildroot.

Reference: http://git.buildroot.net/buildroot/patch/?id=f460603f02092b4f514d108dd8b4167a7a056213
Backported-by: Sami Kerola <kerolasa@iki.fi>