Karel Zak
e0d4675789
kill: fix bug in --all semantic
...
Introduces by 2ab6683f59
.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:29:09 +02:00
Karel Zak
10ab72e7a1
kill: make kill-by-name more obvious in man page
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:22:12 +02:00
Karel Zak
6853d664a0
kill: add copyrights, etc.
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:12:14 +02:00
Karel Zak
a01f4d4323
kill: return 64 on partial success
...
Return 64 (aka SOME_OK) when more than process specified and the
operation success only for subset of the processes.
# kill -s 0 firefox mutt xxx; echo $?
kill: cannot find process "xxx"
64
We already use this concept for chcpu(8) or mount(8).
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 11:07:00 +02:00
Karel Zak
d1f7edbe82
kill: tiny change in man page
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:35:30 +02:00
Karel Zak
e497557f58
kill: coding style, simplify code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:17:23 +02:00
Karel Zak
6ca933136f
kill: rename printsig() to print_signal_name()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:10:43 +02:00
Karel Zak
dba96eedb8
docs: add pid alis to deprecated.txt
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:05:14 +02:00
Karel Zak
abc7d9bfdf
kill: rename printsignals() to print_all_signalsprint_all_signals()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 10:03:50 +02:00
Karel Zak
dff74debed
kill: reorder functions to make it more readable
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-07 09:59:51 +02:00
Karel Zak
f9de39eebd
Merge branch 'kill' of git://github.com/kerolasa/lelux-utiliteetit
...
* 'kill' of git://github.com/kerolasa/lelux-utiliteetit:
kill: move sigqueue inputs to control struct
kill: add parse_arguments() function
kill: tell what is wrong rather than output usage()
kill: use control structure to pass user input to functions
kill: deprecat invocation as 'pid' command name
kill: make usage() not to return
kill: move magic numbers in beginning of the file
kill: flip all comparions to be in smaller - greater order
kill: fix coding style
2014-04-07 09:37:34 +02:00
Karel Zak
9c7955dabe
libfdisk: make qsort_r() optional
...
The function is no critical for fdisk functionality. The SUN label
verification will check for less issues. All the verification code is
optional ('v' fdisk command).
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 16:02:35 +02:00
Dave Reisner
c7832fb8f1
switch_root: verify initramfs by f_type, not devno
...
As of linux 3.14, the initramfs device will have both major and
minor 0, causing our paranoia check to fail. Make this version agnostic
by checking the filesystem type, rather than a device number.
Signed-off-by: Dave Reisner <dreisner@archlinux.org>
2014-04-04 14:55:13 +02:00
Karel Zak
c830206931
libsmartcols: add missing COPYING file
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 13:53:50 +02:00
Karel Zak
71dbc865f8
libsmartcols: fix test
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 13:51:47 +02:00
Karel Zak
2a49c0165d
build-sys: small fixes to libsmartcols
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-04 11:25:08 +02:00
Karel Zak
0925a9dd6c
libsmartcols: clean up flags usage
...
* rename flags functions to scols_table_enable_*
* rename *_no_foo() functions to _nofoo()
* output formats are mutually exclusive, so don't use flags there
* don't assume symbols in scols_new_table(), use scols_table_set_symbols()
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 16:09:57 +02:00
Karel Zak
7fa74cb098
fdisk: print table header as bold
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:43:36 +02:00
Karel Zak
5fd7160e83
libfdisk: fix freesapce detection for nested partitions
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak
c743bf744a
cfdisk: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak
7bae0563b8
libfdisk: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak
98f87c507d
wdctl: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:21 +02:00
Karel Zak
e516634844
swapon: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
05186e79ff
prlimit: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
e7213e34f3
lscpu: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
145766440a
losetup: tiny change to usage()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
48f1f38b73
losetup: clean up scols usage
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
1424fe8c86
libsmartcols: init symbols when necessary
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
5c5941df74
lsblk: remove unnecessary code
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
dc36586085
libsmartcols: clean up flags
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
bb6e822ad2
lsblk: clean up data preparation
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:20 +02:00
Karel Zak
85c9ca5adf
findmnt: cleanup flags
...
Let's use one flags variable for everything.
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:19 +02:00
Karel Zak
3b80b37035
partx: cleanup libsmartcols usage
...
* more carefully set data
* care about return codes
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:19 +02:00
Karel Zak
92e0d69c73
libsmartcols: always deallocate in scols_reset_cell()
...
Signed-off-by: Karel Zak <kzak@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
10a628c8b3
lib/tt.c: Goodbye!
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
fe7af530a9
wdctl: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
248a7f70dd
swapon: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
226d76e667
prlimit: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
83db4eb2c2
lscpu: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
7e86cd5470
losetup: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
ba1bf7164f
lslocks: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:19 +02:00
Ondrej Oprala
9bd4e5c0bd
lsblk: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
218a3a9463
findmnt: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
016aa0ac94
partx: use libsmartcols
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
baa3b270ec
Use libsmartcols in libfdisk and cfdisk
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
ce44112b10
libsmartcols: include stdio
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
c0070f8187
libsmartcols: add scols_table_is_empty()
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
6e792bb6c0
libsmartcols: fix a usage example
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
1d90bcb1a8
libsmartcols: documentation
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00
Ondrej Oprala
b72b824d06
libsmartcols: move some code around
...
Signed-off-by: Ondrej Oprala <ooprala@redhat.com>
2014-04-03 12:29:18 +02:00