summaryrefslogtreecommitdiffstats
path: root/text-utils
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* | hexdump: fix segfault due to uninitialized memoryPetr Uzel2011-08-152-5/+5
|/ | | | | | | | | | | | util-linux commit 85bf44b714ab184907eb448eba389218956d6a51 replaced all calls to emalloc() with xmalloc(), whose semantics is however different - it does not zero allocated memory. This made hexdump segfault if MALLOC_PERTURB_ was set. Reported-by: Kyrill Detinov <lazy.kent@opensuse.org> Addresses: https://bugzilla.novell.com/show_bug.cgi?id=710877 Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
* pg: fix compiler warnings [-Wunused-result]Karel Zak2011-08-021-21/+22
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* fdisk, display, hexdump.h: Use standard C types instead of u_int, u_char, ↵Josiah Worcester2011-06-142-18/+18
| | | | | | u_long, etc. Signed-off-by: Josiah Worcester <josiahw@gmail.com>
* colrm: manual updateSami Kerola2011-06-081-0/+8
| | | | | | Inform about long, help & version and options. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* colrm: gotos, long options and argument checkingSami Kerola2011-06-082-46/+101
| | | | | | | | Unnecessary goto jumps where replaced by a simple function, and two loops. Long options support help and version, and the two arguments this command has are now validated with strtoul_or_err. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* col: check with strtol_or_err option argumentSami Kerola2011-06-082-7/+14
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: colcrt manual updateSami Kerola2011-06-011-2/+6
| | | | | | Inform about long, help & version and options. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* colctr: use long options and clean coding styleSami Kerola2011-06-011-26/+64
| | | | | | This commit introduces help & version options. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* col: coding style changesSami Kerola2011-06-011-13/+11Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* docs: col manual updateSami Kerola2011-06-011-6/+12
| | | | | | | | Long options, with help & version, added. The commint also has previously undocumented switch `-h convert spaces to tabs' as a part of col.1 man page. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* col: use long optionsSami Kerola2011-06-011-7/+44
| | | | | | This commit introduces help & version options. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* pg: return value warning fixSami Kerola2011-06-011-2/+4
| | | | | | void function 'makeprint' should not return void expression Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* rev: mark signo unused in sig_handlerSami Kerola2011-06-011-1/+1
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* pg: use size_t for wcstombs() return codeSami Kerola2011-06-011-2/+2
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* build-sys: stop building line(1) by defaultSami Kerola2011-05-261-2/+7
| | | | | | Align build system behaviour with DEPRECATED file. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* column: fix problems with uninitialized variablesKarel Zak2011-05-261-8/+9
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'column' of git://github.com/kerolasa/lelux-utiliteetit into columnKarel Zak2011-05-262-96/+120
|\ | | | | | | | | | | | | | | | | | | | | | | * 'column' of git://github.com/kerolasa/lelux-utiliteetit: tests: add column tests column.c: global variables removed column.c: validate numeric user inputs column.c: free memory before exit column.c: make table function clarification column.c: coding style fixes column.c: add version printing column.c: replace emalloc with xcalloc
| * column.c: global variables removedSami Kerola2011-05-191-50/+63
| | | | | | | | | | | | | | Variables from global scope are moved to main, and passed as function arguments where ever they are needed. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * column.c: validate numeric user inputsSami Kerola2011-05-192-3/+11
| | | | | | | | | | | | | | Use strtol_or_err from strutils.h to check numeric user input is sane. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * column.c: free memory before exitSami Kerola2011-05-191-0/+13
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * column.c: make table function clarificationSami Kerola2011-05-191-14/+17
| | | | | | | | | | | | | | Readability enchancement, and few variable type changes to be more proper. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * column.c: coding style fixesSami Kerola2011-05-011-23/+17Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * column.c: add version printingSami Kerola2011-05-011-2/+7
| | | | | | | | | | | | | | The patch makes return value to be non-zero when command line short option is unknown. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
| * column.c: replace emalloc with xcallocSami Kerola2011-05-011-20/+8Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ul.c: warn user when command chooses term typeSami Kerola2011-05-171-2/+5
| | | | | | | | | | | | | | Happens usually when user specifies garbage as -t argument. Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* | ul.c: escape handling refactoredSami Kerola2011-05-171-34/+42
| | | | | | | | | | | | | | Separate function for escape handling to make switch statement more readable. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ul.c: close files and free memory after usageSami Kerola2011-05-171-0/+2
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ul.c: code style and comment fixesSami Kerola2011-05-171-72/+94
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ul.c: fix compier warningsSami Kerola2011-05-171-2/+2
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ul.c: magic constant removalSami Kerola2011-05-171-8/+7Star
| | | | | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ul.c: use long optionsSami Kerola2011-05-171-5/+35
| | | | | | | | | | | | This commit introduces help & version options. Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* | ul.c: convert definition to functionSami Kerola2011-05-171-16/+22
|/ | | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi> Signed-off-by: Karel Zak <kzak@redhat.com>
* hexdump: don't include err.h directlyKarel Zak2011-04-121-1/+2
|
* column: use xalloc libSami Kerola2011-04-061-10/+6Star
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* rev: mention long options in man pageSami Kerola2011-04-061-0/+7
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>