summaryrefslogtreecommitdiff
path: root/text-utils
AgeCommit message (Collapse)AuthorFilesLines
2008-12-12pg: add gettext call for the help stringKarel Zak1-2/+6
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-11-26tailf: unistd.h is included more than onceKarel Zak1-1/+0
Signed-off-by: Karel Zak <kzak@redhat.com>
2008-10-03pg: several strings without gettext callsPedro Ribeiro1-5/+5
Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-07-28remove CVS keywordsmaximilian attems1-1/+0
this patch removes old CVS keywords from comments. mount(8) works for newer Linux then 0.99 ;) Signed-off-by: maximilian attems <max@stro.at>
2008-06-16more: dont use a.out.hMike Frysinger1-4/+3
The a.out.h header is not friendly to portable systems (iow, those that lack a.out support), and since the defines are only used in a cheesy magic, just use the magic constants. It's not like they're ever going to change. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2008-06-16more: minor fixes to magic()James Youngman1-5/+5
Read the magic bytes into signed chars instead of vanilla chars in order to ensure consistent results even on systems whose char type has no sign. Eliminate spurious parentheses in return statements. Correct grammatical errors in comments. Signed-off-by: James Youngman <jay@gnu.org>
2008-04-16more: use HAVE_WIDECHAR instead ENABLE_WIDECHARKarel Zak1-2/+2
This problem has been detected by tools/codecheck-config. Signed-off-by: Karel Zak <kzak@redhat.com>
2008-04-14build-sys: ignore a bunch of generated files, mostly binariesJames Youngman1-0/+11
Signed-off-by: James Youngman <jay@gnu.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-03-20build-sys: use ncursesw (wide version) when possibeKarel Zak1-4/+4
Detect ncursesw and use it in place of ncurses when possible (default). Allow people to use classic (non-wide) version by --with-ncurses or disable all ncurses/ncursesw support by --without-ncurses. Co-Author: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Karel Zak <kzak@redhat.com>
2008-01-03more: replace CBAUD with cfgetispeed()Samuel Thibault1-1/+1
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-12-18tailf: non-linux supportSamuel Thibault1-0/+2
Include <sys/inotify.h> only when inotify_init() was detected Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
2007-12-17build-sys: use dist_man_MANS instead of man_MANSStepan Kasal1-3/+3
Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-12-17tailf: inotify based reimplementationKarel Zak2-84/+160
This patch: - clean up tailf(1) code - remove stupid "for() { malloc() }" array allocation in the tailf() function - add inotify(7) support Signed-off-by: Karel Zak <kzak@redhat.com>
2007-11-08more: non-linux supportSamuel Thibault1-4/+0
Signed-Off-By: Samuel Thibault <samuel.thibault@ens-lyon.org>
2007-11-05more: cleanup gcc warningsRandy Dunlap1-8/+8
Fix strict gcc warnings that come from using: ("-Wall -Wp,-D_FORTIFY_SOURCE=2") more.c:185: warning: passing argument 1 of 'setupterm' discards qualifiers from pointer target type more.c:205: warning: passing argument 1 of 'tparm' discards qualifiers from pointer target type more.c:812: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness more.c:931: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness more.c:1285: warning: pointer targets in passing argument 1 of 'ttyin' differ in signedness more.c:1486: warning: pointer targets in passing argument 1 of 'ttyin' differ in signedness more.c:1879: warning: pointer targets in passing argument 2 of 'mbrtowc' differ in signedness Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
2007-10-26tailf: opened file leaving unclosedlizf1-0/+2
Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
2007-10-25rev: use warn() in errs.hLi Zefan1-21/+8
The function warn() in rev.c is actually duplicate code, so here we remove it. Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-18tailf: replace errs.h with libc err.hKarel Zak1-21/+13
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-16column: replace errs.h with libc err.hKarel Zak1-4/+4
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-11tailf: add option -n to specifying output linesLi Zefan2-10/+36
It will be useful if we can print out the last n lines instead of the last 10, just like tail. There are examples: tailf -n 5 file1 tailf --lines 10 file2 tailf -20 file3 Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-11tailf: clean up gcc warnings & fix use of errnoKarel Zak1-7/+13
Fix strict gcc warnings in tailf that come from using: ("-Wall -Wp,-D_FORTIFY_SOURCE=2") tailf.c:111: warning: ignoring return value of 'fwrite', declared with attribute warn_unused_result Also, tailf uses perror() for error reporting, but it inserts an fprintf call first, so perror() is actually reporting the result of the fprintf() call, not the failing call; change the code to print the message by using strerror() instead. Builds cleanly on x86_32 and x86_64. Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-10-03pg: fix segfault on searchRajeev V. Pillai1-1/+1
Run pg(1) and type '/<CR>' which is supposed to forward search for the previously remembered search string. pg(1) will segfault after printing "No remembered search string:". Signed-off-by: Rajeev V. Pillai <rajeevvp@gmail.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-09-19build-sys: nls/locale handling in util-linux-ng generalMike Frysinger3-4/+1
On Monday 03 September 2007, Karel Zak wrote: > http://thread.gmane.org/gmane.linux.utilities.util-linux-ng/590/focus=592 > > I agree that we need a better support for compilation without > locales, but from my point of view NLS != all locales stuff. The NLS > support is subset only. thinking about the input from everyone, i'd propose the attached ... Only pull in locale.h as needed and move it to the common nls.h. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2007-08-14more: fix underlining for multibyte charsKarel Zak1-0/+16
Try: $ printf "aaa _\bŽ_\bŽ_\bŽ bbb\n" | more aaa ŽŽŽ bbb (ŽŽŽ has to be three underlined chars on terminal). Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-24manpage typosLaMont Jones1-2/+2
Signed-off-by: LaMont Jones <lamont@mmjgroup.com>
2007-07-03man pages: add "AVAILABILITY" sectionKarel Zak12-1/+37
Signed-off-by: Karel Zak <kzak@redhat.com>
2007-07-02build-sys: fix linking when ncurses is built with --with-termlib=tinfoArkadiusz Miskiewicz1-0/+6
When system ncurses is built with --with-termlib=tinfo option then there are two libraries - libtinfo (which contains terminal related functions) and libncurses (rest). Correctly link against libtinfo in such case. Signed-off-by: Arkadiusz Miskiewicz <arekm@maven.pl>
2007-06-05text-utils: fix the more command compilation against termcapKarel Zak1-3/+44
The build-sys (text-utils/Makefile.am) allows to compile against ncurses and termcap. The termcap version is broken in more.c. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-05-16build-sys: do not use wildcards in EXTRA_DISTStepan Kasal1-1/+3
Wildcards in EXTRA_DIST break "make dist" for vpath build. But plain directory names are ok. Signed-off-by: Stepan Kasal <skasal@redhat.com>
2007-02-08build-sys: fix README filenames and add missing files to EXTRA_DISTsKarel Zak3-32/+1
Also, the patch makes "make mrproper" more robust. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-30col: getwchar() errors shouldn't be hiddenKarel Zak1-3/+12
The col truncates output when multibyte errors is detected, but the problem is not reported to stderr and return code is still same like for successful exit. This stupid behaviour is fixed by this patch. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-30build-sys: fix ifdef ENABLE_WIDECHAR usageKarel Zak4-15/+15
There has been unexpected mix of HAVE_WIDECHAR and ENABLE_WIDECHAR macros. The ENABLE_WIDECHAR is old version and has to be replaced everywhere otherwise we will see bugs with multibyte stuff. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-17hexdump: don't use memset with zero lenghtKarel Zak1-1/+2
gcc 4.1.0: "warning: memset used with constant zero length parameter...." Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04more: fix file descriptor leakKarel Zak1-0/+2
When you view a file with the more command and run a shell, the file descriptor for reading the file is leaked to that process. To test, more any file. Then do !/bin/sh. At the prompt do "ls -l /proc/$$/fd" and you'll see the leaked fd. From: Steve Grubb <sgrubb@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-04build-sys: add missing filesKarel Zak1-1/+4
This patch add all missing headers, man pages and README files to automake stuff and "make dist-gzip" produces useful tarball now. Signed-off-by: Karel Zak <kzak@redhat.com>
2007-01-03build-sys: remove generated autotools stuff from gitKarel Zak1-657/+0
The generated autotools stuff shouldn't be maintained by SCM. After check out from git use ./autogen.sh. For more details see README.devel. Signed-off-by: Karel Zak <kzak@redhat.com>
2006-12-07Imported from util-linux-2.13-pre6 tarball.Karel Zak1-1/+1
2006-12-07Imported from util-linux-2.13-pre4 tarball.Karel Zak3-33/+2
2006-12-07Imported from util-linux-2.13-pre3 tarball.Karel Zak1-2/+2
2006-12-07Imported from util-linux-2.13-pre2 tarball.Karel Zak2-126/+45
2006-12-07Imported from util-linux-2.13-pre1 tarball.Karel Zak7-193/+795
2006-12-07Imported from util-linux-2.12p tarball.Karel Zak1-4/+3
2006-12-07Imported from util-linux-2.12j tarball.Karel Zak1-202/+74
2006-12-07Imported from util-linux-2.12a tarball.Karel Zak1-9/+9
2006-12-07Imported from util-linux-2.12 tarball.Karel Zak8-124/+245
2006-12-07Imported from util-linux-2.11y tarball.Karel Zak3-36/+37
2006-12-07Imported from util-linux-2.11w tarball.Karel Zak1-9/+8
2006-12-07Imported from util-linux-2.11v tarball.Karel Zak2-4/+10
2006-12-07Imported from util-linux-2.11u tarball.Karel Zak1-4/+4
2006-12-07Imported from util-linux-2.11t tarball.Karel Zak10-76/+2154