summaryrefslogtreecommitdiffstats
path: root/usr.bin/more/ch.c
Commit message (Collapse)AuthorAgeFilesLines
* Nuke more from the repository.ps2000-05-291-465/+0
|
* Rather than use an LRU-ordered circular list to store buffered data,hoek1999-12-281-35/+65
| | | | | | | | | | | | | | | simply keep an index into the last access on the circular list and begin searches at that point. An LRU list is inappropriate here since the vast majority of accesses will occur in the same order that the list is created in. The only case where an LRU is remotely useful here is when reading from a file and the user is jumping to randomish positions and constantly returning to some central position. Even for this case it is such a small optimization as not to be noticed in an interactive program such as more(1). This change results in a _tremendously_ noticable speed-up when reading long files through a pipe (where long = ~200k, machine = ~2.5h single-disk worldstone).
* Delete dead code and clean comments a little.hoek1999-12-281-8/+8
|
* Remove documentation of CRLF bug from more.1. Sync code with manpage.hoek1999-04-291-23/+4
| | | | | PR: bin/961 bin/7296 (fix) Submitted by: Garance Alistair Drosehn <gad@eclipse.acs.rpi.edu>
* sprintf -> snprintf to avoid potential buffer overflow.steve1998-06-141-2/+2
| | | | | PR: 6907 Submitted by: Archie Cobbs <archie@whistle.com>
* Remove trailing whitespace.rgrimes1995-05-301-1/+1
|
* Back out part of ctype fixes, unneded with new ctypoeache1994-10-091-3/+3
|
* 1) Make ctype-aware expect chars in range 0200-0204 treatedache1994-09-221-6/+6
| | | | | | | as controls in any case. 2) Fix bug with incorrect column position when standouts occurse 3) Fix bug when last standouted char cause clearing next line in standout
* BSD 4.4 Lite Usr.bin Sourcesrgrimes1994-05-271-0/+454
OpenPOWER on IntegriCloud