summaryrefslogtreecommitdiffstats
path: root/text-utils
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos in comments and wall's man pageBernhard Voelker2012-06-051-1/+1
| | | | | | | | | | | Culprits identified again by (newer) misspellings: $ git ls-files | misspellings -f - | grep -v '^po/' * wall: Fix typo in man page. * Fix typos in source code comments. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* text-utils/hexsyntax.c: fix for missing program_invocation_short_nameAndreas Bießmann2012-06-051-0/+1
| | | | | | | | | | | | | | | Some libc do not expose program_invocation_short_name. Therefore util-linux comes with helpers in 'c.h'. Use the 'c.h' in hexsyntax.c where it was missed. This patch fixes following error for me: ---8<--- hexsyntax.c: In function 'newsyntax': hexsyntax.c:115: error: 'program_invocation_short_name' undeclared (first use in this function) hexsyntax.c:115: error: (Each undeclared identifier is reported only once hexsyntax.c:115: error: for each function it appears in.) --->8--- Signed-off-by: Andreas Bießmann <biessmann@corscience.de>
* more: fix regex error messages printingKarel Zak2012-06-051-2/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* more: remove a meaningless testJeremy Huntwork2012-06-051-2/+1Star
| | | | | | | regexec only returns 0 or REG_NOMATCH so remove a meaningless test Signed-off-by: Jeremy Huntwork <jhuntwork@lightcubesolutions.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: fix comparison of distinct pointer typesKarel Zak2012-05-233-4/+3Star
| | | | | | | | display.c: In function ‘get’: display.c:262:117: warning: comparison of distinct pointer types lacks a cast [enabled by default] Signed-off-by: Karel Zak <kzak@redhat.com>
* text-utils: use min() from c.hPetr Uzel2012-05-231-5/+2Star
| | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* Merge branch 'master' of https://github.com/jhuntwork/util-linuxKarel Zak2012-05-231-6/+7
|\
| * Use POSIX regcomp and regexec over obsolete BSD re_comp and re_execJeremy Huntwork2012-05-131-6/+7
| |
* | text-utils: cleanup strtoxx_or_err()Karel Zak2012-05-152-24/+11Star
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | include: rename writeall.h to all-io.hPetr Uzel2012-05-151-1/+1
| | | | | | | | Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* | rev: mention tac(1) in 'SEE ALSO' man page sectionPetr Uzel2012-05-151-0/+2
|/ | | | | | | Cc: James R. Van Zandt <jrv@debian.org> From: James R. Van Zandt <jrv@debian.org> Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=568709 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* Fix typos found by misspellingsBernhard Voelker2012-04-232-3/+3
| | | | | | | | | | | | | | | The tool misspellings (https://github.com/lyda/misspell-check) detected several typos. Command used: $ git ls-files | grep -v ^po/ | misspellings -f - * isosize: Fix typo in usage string. * configure.ac: Fix typo in help string of --enable-most-builds option. * fdisk: Fix typo in man page. * libblkid, blkid, mount: Likewise. * Fix various typos in docs and in source code comments. Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* text-utils: verify writing to streams was successfulSami Kerola2012-04-0410-20/+29
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* pg: align with howto-usage-function.txtSami Kerola2012-03-301-8/+24
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* pg: correct version printing in help screenSami Kerola2012-03-301-4/+9
| | | | | | Commit also adds -V option. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* hexdump: use strtosize_or_err()Karel Zak2012-03-301-9/+2Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: clarify KiB vs. KB in man pagesBernhard Voelker2012-03-301-3/+4
| | | | | | | | | Update the man pages of blkid, wipefs, fallocate, fstrim, losetup and hexdump to clarify the suffixes for the numerical values of the offset and size/length arguments regarding KiB=1024 vs KB=1000. Also mention the ZiB/YiB and ZB/YB suffixes supported by strtosize(). Signed-off-by: Bernhard Voelker <mail@bernhard-voelker.de>
* hexdump: update man page for -n and -sKarel Zak2012-03-231-23/+4Star
| | | | | Reported-by: Bernhard Voelker <mail@bernhard-voelker.de> Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: use strtosize() for -n and -sKarel Zak2012-03-213-17/+12Star
| | | | | | | | strtosize() is based on uintmax_t and supports all possible suffixes (B,M,G,T ...) Reported-by: Simon de Vlieger <simon@ikanobori.jp> Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: add deprecation commentsSami Kerola2012-03-181-0/+9
| | | | | | | Markup deprecation to command header to avoid people wasting time in fixing these utilities. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: enhance readability of the autotools filesSami Kerola2012-02-281-4/+24
| | | | | | | | Several horizontal lists are turned to vertical, and sorted to alphabetical order. Additionally spaces are converted to tabs where ever possible. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* more: fix typosDavidlohr Bueso2012-02-241-1/+1
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* hexdump: make code more robustKarel Zak2012-02-021-3/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* more: add commentKarel Zak2012-01-311-0/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* line: fix compiler warnings [-Wunused-parameter]Karel Zak2012-01-171-1/+1
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* column: don't check result from xmalloc()Karel Zak2012-01-041-2/+0Star
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* column: use xalloc libsDave Reisner2012-01-041-1/+1
| | | | Signed-off-by: Dave Reisner <dreisner@archlinux.org>
* column: avoid memory overrun and/or use of uninitialized bufferJim Meyering2011-11-161-2/+2
| | | | | * text-utils/column.c (maketbl): Use the right starting point and the right length when zeroing new memory after xrealloc.
* docs: align hexdump.1 with howto-man-page.txtSami Kerola2011-10-031-266/+259Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align ul.1 with howto-man-page.txtSami Kerola2011-10-031-69/+68Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align rev.1 with howto-man-page.txtSami Kerola2011-10-031-21/+19Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align more.1 with howto-man-page.txtSami Kerola2011-10-031-122/+163
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align colrm.1 with howto-man-page.txtSami Kerola2011-10-031-34/+35
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align colcrt.1 with howto-man-page.txtSami Kerola2011-10-031-66/+53Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: align col.1 with howto-man-page.txtSami Kerola2011-10-031-83/+97
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* column: fix error reported by smatchSami Kerola2011-09-101-1/+2
| | | | | | column.c:201:2: error: 'for' loop initial declarations are only allowed in C99 mode Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* Merge branch 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetitKarel Zak2011-08-315-110/+0Star
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 'docs-dir' of https://github.com/kerolasa/lelux-utiliteetit: docs: remove duplicated text docs: require kernel support before accepting use of it docs: note about independent super block structs docs: add libmount & libblkid debug instructions Documentation: add debugging doc arch: start using arch as a usage() example docs: new file Documentation/release-schedule.txt docs: move setuid information from reame to hwclock.8 docs: clean up old readme files docs: copy contributors from legacy files to AUTHORS docs: new file Documentation/howto-man-page.txt docs: new file Documentation/source-code-management.txt docs: new file Documentation/howto-contribute.txt docs: new file Documentation/howto-compilation.txt docs: tell what the Documentation/ is about docs: add usage() howto for contributors docs: Documentation directory added docs: remove README.clear
| * docs: Documentation directory addedSami Kerola2011-08-124-103/+0Star
| | | | | | | | | | | | | | | | Move readme, licence, change log, relese notes and other supplementary files to a Documentation directory. This commit does not change contents of any other but few Makefile.am files. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * docs: remove README.clearSami Kerola2011-08-122-8/+1Star
| | | | | | | | | | | | | | The clear command has not been part of util-linux since 2.13-pre4 which is Sep 2005 in human format. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | docs: tweak the formatting and wording of some text-utils man pagesBenno Schulenberg2011-08-297-34/+42
| | | | | | | | | | | | | | Highlight the program name, use proper lowercase, remove unneeded commas and articles, and add helpful hyphenation. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | docs: also uniformize headers and footers of troff-formatted man pagesBenno Schulenberg2011-08-297-14/+14
| | | | | | | | | | | | | | | | | | Add two spaces as the required third argument of the date line to make the specified date get used instead of today's date. Incorporate the section number into the page title, then use an empty section number, so that specifying an explicit section/volume name will work. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | pg: normalize formatting of the man page, and tweak some of its wordingBenno Schulenberg2011-08-221-39/+34Star
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-2211-23/+25
| | | | | | | | | | | | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | pg: fix write_all() usageKarel Zak2011-08-171-1/+1
| | | | | | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* | hexdump: fix "beginnin" typo in usage messageBenno Schulenberg2011-08-151-1/+1
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | tailf: harmonize option argument and explanation in usage messageBenno Schulenberg2011-08-151-2/+2
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | ul: remove superfluous return as usage() does not returnBenno Schulenberg2011-08-151-2/+1Star
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | ul: add -h and -V to the man page; use "file" and lowercaseBenno Schulenberg2011-08-151-3/+7
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | ul: make usage() say that more than one input file is allowedBenno Schulenberg2011-08-151-1/+1
| | | | | | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* | ul: in usage() not overwriting but overriding is meantBenno Schulenberg2011-08-151-2/+2
| | | | | | | | | | | | Also always use lowercase. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>