lslogins: use bit-array, cleanup SELinux code

Signed-off-by: Karel Zak <kzak@redhat.com>
lslogins: add --noheadings

That's fatal mistake that this option which is required for script
is missing.

Signed-off-by: Karel Zak <kzak@redhat.com>
lslogins: make --notruncate more robust

 - keep coldescs[] read-only
 - don't expect that only COL_GECOS uses truncate flag

Signed-off-by: Karel Zak <kzak@redhat.com>
docs: bring several man pages closer to standard formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
docs: bring a few more man pages closer to standard formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
docs: bring some more man pages closer to standard formatting

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Add missing paragraph mark before -f

the sections on -P and -f where glued together.
cfdisk: fix possible memory leak [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
cfdisk: make code more readable for analyzers [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
docs: improve the formatting and wording of two man pages

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
docs: improve the wording and conventions in the man-page howto

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
build-sys: harmonize some indentation

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
lib/colors: remove memory leak

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
fallocate: avoid unnecessary computation

Where POSIX_FADV_SEQUENTIAL and HAVE_POSIX_FADVISE are not available it
is waste of resources to have variables that are meaningful only for
posix_fadvise().  Also initialize the variables immediately to correct
values, and since cachesz is never changed mark it read only.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
fstrim: avoid TOCTOU race

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
docs: bring four more man pages closer to standard formatting

In the IPC man pages strictly adhere to the memory, queue, semaphore
order, to reduce disorientation.  And for 'ipcmk', the arguments for
-M and -S and -p are not optional.  Add --version for 'mountpoint'.

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
lib/loopdev: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/procutils: check fgets() return value [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
libblkid: comparing an array to null is not useful [coverity scan]

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount: add missing assert()

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