lslogins(1): skeleton and argparsing for a new utility

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: move to login-utils

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
login: extract get_hushlogin_status

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add functionality

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: store users in a tree

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: use thread-safe functions

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: make it work

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add readtump.h header
lslogins: also add readutmp.c
lslogins: pretty printing and extended -l,-g
lslogins: add support for multiple time formats

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add option --iso

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: comment-in an expensive realloc

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: add option --time-format

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: fix option exclusivity

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: mention --time-format in usage

Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
lslogins: cleanup fill_table()

 * check xasprintf() return code is unnecessary
 * just check all scols_line_set_data() return codes on one place

Signed-off-by: Karel Zak <kzak@redhat.com>
lslogins: cleanup status[] usage

Signed-off-by: Karel Zak <kzak@redhat.com>
lslogins: align to right 0|1 columns

Signed-off-by: Karel Zak <kzak@redhat.com>
lslogins: improve supplementary groups code, add SUPP-GIDS

 * don't build list, but directly create a string
 * don't mix IDs and group names on output
 * add SUPP-GIDS to print only IDs

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