libfdisk: (dos) improve logical partition reorder command

 - use qsort to sort by EBR offsets
 - sort by EBR data partition start sectors

Signed-off-by: Karel Zak <kzak@redhat.com>
tests: add fdisk 'f' command MBR test

Signed-off-by: Karel Zak <kzak@redhat.com>
Revert "dmesg: don't use brow/yellow in output"

It will be better to support colors customization than use
ugly blue color. BTW, for example git-log uses brow/yellow too
by default.

This reverts commit 0b6fbc25990d9498956e06bfcf699fca094e24a9.
tests: update fdisk sun test

Signed-off-by: Karel Zak <kzak@redhat.com>
tests: rely on ts_init_py only

Signed-off-by: Karel Zak <kzak@redhat.com>
tests: update Py parse mountinfo test

Signed-off-by: Karel Zak <kzak@redhat.com>
docs: update TODO

Signed-off-by: Karel Zak <kzak@redhat.com>
kill: make options --pid and --queue mutually exclusive

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
kill: remove unnecessary indirection

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests: add signal receiver program

Target to kill with a check that will be written later.

CC: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests: check kill is converting signals names correctly

CC: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests: check various ways to specify kill signal

CC: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests: check kill print pid option

CC: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
tests: check kill all user processes

CC: Bernhard Voelker <mail@bernhard-voelker.de>
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
kill: add --verbose option to display what is killed

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/procutils: reset errno before strtol() call

When going through /proc the last entry made readdir() to alter errno,
which made the strtol() to think something went wrong, resulting kill(1)
tests to fail when running in --parallel mode.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
lib/procutils: notice setuid() process ownership changes

Earlier the owner of a process was determined by owner of the
/proc/<pid>/stat file.  When changes user ID privileges with setuid() the
stat file ownership is not updated, that resulted kill(1) to consider
such processes where running using same uid as the present process.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>