]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lsipc: fix options parsing and sync with man page
authorSami Kerola <kerolasa@iki.fi>
Wed, 12 Apr 2017 17:59:54 +0000 (18:59 +0100)
committerSami Kerola <kerolasa@iki.fi>
Tue, 2 May 2017 22:22:04 +0000 (23:22 +0100)
Option --pid was never implemented so remove it from struct options and
manual page.  Interestingly this option was not in usage().  Short option
string had 'u' that has never appear anywhere else, so it is also removed.
Finally add options --bytes and --numeric-perms to manual page.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
sys-utils/lsipc.1
sys-utils/lsipc.c

index 69f0cf1971919e0582760a703bfaa832d00d76c1..9bb1dce91851b8664accf15d38ab23e477fae068 100644 (file)
@@ -74,8 +74,8 @@ Specify which output columns to print.  Use
 .B \-\-help
 to get a list of all supported columns.
 .TP
-\fB\-p\fR, \fB\-\-pid\fR
-Show PIDs of creator and last operator.
+\fB\-b\fR, \fB\-\-bytes\fR
+Print size in bytes rather than in human readable format.
 .TP
 \fB\-r\fR, \fB\-\-raw\fR
 Raw output (no columnation).
@@ -97,6 +97,9 @@ operation on semaphores.
 \fB\-\-time\-format\fR \fItype\fP
 Display dates in short, full or iso format.  The default is short, this time
 format is designed to be space efficient and human readable.
+.TP
+\fB\-P\fR, \fB\-\-numeric\-perms\fR
+Print numeric permissions in PERMS column.
 
 .SH EXIT STATUS
 .TP
index ee203e02a1eef6aa5131546788a6836b39a8acca..239aaf5d78438c0451c803798060b97df8e5760a 100644 (file)
@@ -1094,7 +1094,6 @@ int main(int argc, char *argv[])
                { "notruncate",     no_argument,        NULL, OPT_NOTRUNC },
                { "numeric-perms",  no_argument,        NULL, 'P' },
                { "output",         required_argument,  NULL, 'o' },
-               { "pid",            no_argument,        NULL, 'p' },
                { "queues",         no_argument,        NULL, 'q' },
                { "raw",            no_argument,        NULL, 'r' },
                { "semaphores",     no_argument,        NULL, 's' },
@@ -1123,7 +1122,7 @@ int main(int argc, char *argv[])
 
        scols_init_debug(0);
 
-       while ((opt = getopt_long(argc, argv, "bceghi:Jlmno:PqrstuV", longopts, NULL)) != -1) {
+       while ((opt = getopt_long(argc, argv, "bceghi:Jlmno:PqrstV", longopts, NULL)) != -1) {
 
                err_exclusive_options(opt, longopts, excl, excl_st);