summaryrefslogtreecommitdiffstats
path: root/misc-utils
Commit message (Collapse)AuthorAgeFilesLines
* wipefs: unused parameter [-Wunused-parameter]Karel Zak2017-01-051-2/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: use errtryhelp()Karel Zak2016-12-191-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Use --help suggestion on invalid optionKarel Zak2016-12-1913-22/+16Star
| | | | | | | | The current default is to print all usage() output. This is overkill in many case. Addresses: https://github.com/karelzak/util-linux/issues/338 Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-1917-17/+17
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: namei(1): SEE ALSO: add symlink(7)Michael Kerrisk2016-12-091-1/+2
| | | | Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: kill(1): Wording fixMichael Kerrisk2016-12-091-1/+1
| | | | | | Fix a wording error introduced in one of my recent commits. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: various pages: Use 'UID" and "GID", not "uid" and "gid" in man pagesMichael Kerrisk2016-12-091-1/+1
| | | | Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* docs: various pages: Use "PID" not "pid" in man-pagesMichael Kerrisk2016-12-091-6/+6
| | | | Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* docs: various pages: Use "ID" not "id" in man pagesMichael Kerrisk2016-12-091-1/+1
| | | | | | | The correct abbreviation of identifier is is "ID" (as used in many pages), not "id" (as used in a few pages). Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* docs: various pages: Format pathnames as italic (.I)Michael Kerrisk2016-12-093-6/+6
| | | | | | | | | In the majority of pages, pathnames are formatted as Italic, which is the norm. However, there are several cases where they are formatted as bold. This patch fixes a number of those exceptions. Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* findmnt: add --tree to allow to enable tree output for --mtabKarel Zak2016-12-082-3/+18
| | | | | | | | | | | | The --mtab output is merge from kernel and utab on all modern systems (without classic /etc/mtab). It means we have all necessary information to generate tree output. For the backward compatibility --mtab is the list by default, the new option --tree allows to override the default and enable tree always when the table contains child-parent relations. Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add note about mount optionsKarel Zak2016-12-082-3/+6
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: kill(1): Wording fixMichael Kerrisk2016-12-051-1/+1
| | | | Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: kill(1): Formatting fixesMichael Kerrisk2016-12-051-2/+7
| | | | | | | Formatting fixes for constants and structure/field names, as per man-pages(7). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: kill(1): Rework notes on thread groupsMichael Kerrisk2016-12-051-18/+15Star
| | | | | | | | | | The points in the NOTES can be expressed more compactly (there is some redundancy in the two existing paragraphs). Also, add a reference to signal(7), since this provides much more detail on the topic. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: kill(1): Add more detail on use of SIGTERM vs SIGKILLMichael Kerrisk2016-12-051-3/+11
| | | | | | | It's worth adding a recommendation here to use SIGTERM rather than SIGKILL, and explain why. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* docs: kill(1): Fix section reference for sigqueue(3) and add to SEE ALSOMichael Kerrisk2016-12-051-1/+2
| | | | Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* docs: various pages: Use "system call" not "syscall"Michael Kerrisk2016-12-051-2/+2
| | | | | | A minor wording fix... Signed-off-by: Michael Kerrisk <mtk.man-pages@gmail.com>
* misc: fix typos using codespellRuediger Meier2016-12-011-1/+1
| | | | | | | | | | | | | # command used was: $ ~/src/codespell/codespell \ -w -D /home/rudi/src/codespell/build/lib/codespell_lib/data/dictionary.txt \ $(git ls-files | grep -v "^po/\|\.xz$\|\.gz$\|\.bz2$\|\.img$\|^Documentation/releases/") BTW some manually grammer fixes: s/uses/used/ s/begin/beginning/ Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* misc: spelling, always use "cannot" instead of "can not"Ruediger Meier2016-11-301-1/+1
| | | | | | Just to be consistent ... Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
* Replace reference to sigvec(2) with sigaction(2)Michael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | | | The sigvec(3) (not sigvec(2)) page documents ancient BSD APIs. The right page to cross reference here is sigaction(2), which documents the modern POSIX APIs. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Fix formatting errors in page cross referencesMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | | | | | | | These pages had errors such as .BR page (x) . which should be .BR page (x). Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Fix section number in lockf() page xrefMichael Kerrisk (man-pages)2016-11-291-1/+1
| | | | | | lockf() is in section 3, not 2. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* Place SEE ALSO entries in orderMichael Kerrisk (man-pages)2016-11-297-10/+10
| | | | | | | | | | | | This patch does only the following: * Order SEE ALSO entries first by section name, then alphabetically within section * Adds one or two missing commas in SEE ALSO lists * Removes one or two periods that were (inconsistently) used at the end of SEE ALSO lists. Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
* lsblk: add note about --sort and --list relationKarel Zak2016-11-021-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lsblk: sort by MAJ:MIN by defaultKarel Zak2016-11-021-0/+5
| | | | | | | Since Linux kernel 4.8 /sys entries are no more sorted and all is in the native order. It makes lsblk output messy. Signed-off-by: Karel Zak <kzak@redhat.com>
* misc: fix unsigned int usage for ctype.h functionsKarel Zak2016-10-261-1/+1
| | | | | Reported-by: "Yuriy M. Kaminskiy" <yumkam@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'master' of https://github.com/yurchor/util-linuxKarel Zak2016-10-242-3/+3
|\ | | | | | | | | * 'master' of https://github.com/yurchor/util-linux: Fix minor typos
| * Fix minor typosYuri Chornoivan2016-10-202-3/+3
| |
* | getopt: be sure that options array is terminatedKarel Zak2016-10-211-8/+11
|/ | | | | Reported-by: Anders Kaseorg <andersk@mit.edu> Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: support abbreviated month namesKarel Zak2016-10-072-4/+21
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: support alone month name parameterKarel Zak2016-10-072-7/+16
| | | | | | For example 'cal August' to print August for the current year. Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: cleanup man pageKarel Zak2016-10-071-20/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* cal: remove err message from monthname_to_number()Karel Zak2016-10-071-3/+7
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) fix mem leak [coverity scan]Karel Zak2016-10-051-5/+6
|
* findmnt: remove duplicate includeKarel Zak2016-09-301-1/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add docsKarel Zak2016-09-232-1/+11
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) minor changes in stringsKarel Zak2016-09-231-3/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) check filesystem typeKarel Zak2016-09-231-0/+198
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add swaparea verificationKarel Zak2016-09-231-2/+30
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add options verificationKarel Zak2016-09-231-1/+23
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: (verify) add source verificationKarel Zak2016-09-232-8/+85
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* findmnt: add --verify and --verboseKarel Zak2016-09-234-42/+283
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* libsmartcols: support LIBSMARTCOLS_DEBUG_PADDING=onKarel Zak2016-09-072-0/+4
| | | | | | | | | | | | This env.variable forces libsmartcols to use visible padding chars. The standard debug has to be enabled (to minimize overhead for non-debug execution). For example: $ LIBSMARTCOLS_DEBUG=all LIBSMARTCOLS_DEBUG_PADDING=on findmnt 2> ~/log Signed-off-by: Karel Zak <kzak@redhat.com>
* include/closestream: define exit codesKarel Zak2016-08-162-1/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* kill: remove pid command-name to option aliasSami Kerola2016-08-142-9/+0Star
| | | | | | | | | Removal was promised to happen in March 2016 and the time has come to get rid of this unexpected feature. Reference: c5b057b3422504a671ee588fa66574ae876521f1 Reviewed-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* uuidd: remove unnecessary pidpile path variableSami Kerola2016-08-081-5/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'getopt' of git://github.com/kerolasa/lelux-utiliteetitKarel Zak2016-08-022-32/+60
|\ | | | | | | | | * 'getopt' of git://github.com/kerolasa/lelux-utiliteetit: getops: improve getopt-parse.bash example
| * getops: improve getopt-parse.bash exampleSami Kerola2016-07-272-32/+60
| | | | | | | | | | | | | | | | | | | | Use correct names of example scripts in the script. Remove use of backticks, they require quoting that makes the example harder to follow. Split one-liners to one-command-at-a-time expressions. Add continue keyword to avoid additional case statement matching. Be strict with quoting. Reported-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | misc: fix declarations shadowing variables in the global scope [oclint]Sami Kerola2016-07-211-7/+7
| | | | | | | | | | | | Fixes multiple occurences of 'optarg' overwrites. Signed-off-by: Sami Kerola <kerolasa@iki.fi>