summaryrefslogtreecommitdiff
path: root/usr.bin/less
AgeCommit message (Collapse)Author
2015-11-14Symbol table tells me to use pledge "stdio rpath wpath cpath"Theo de Raadt
2015-11-14Correct check flipped in earlier commit.Philip Guenther
Eliminate unnecessary isupper() tests before tolower() use ok millert@
2015-11-13Add a flag argument to flush() to stop it calling quit() on error, thenNicholas Marriott
use this from quit() to stop less blowing up the stack looping through quit()/flush() if stderr is closed (for example "less /missing 2</dev/null"). ok millert
2015-11-12Back out of is_optchar() removal. daniel@ was not a fan.mmcc
2015-11-12Inline is_optchar(), a helper function with only one usage.mmcc
ok nicm@, stsp@
2015-11-12Cast three ctype functions' arguments to unsigned char and simplify ammcc
helper function in the process. ok tedu@
2015-11-12Remove chardef[] and just use isprint/iscntrl directly, ok teduNicholas Marriott
2015-11-11exit if pledge failsTheo de Raadt
2015-11-09use perror() instead, as in lesskeyTheo de Raadt
2015-11-09stop acting like "more" if progname is "page"; ok millertTheo de Raadt
2015-11-09fsync() on a tty is meaningless; ok deraadt@Todd C. Miller
2015-11-09NULL_IFILE has no weird use patterns. NULL is sufficient.Theo de Raadt
2015-11-09define of SPACES_IN_FILENAMES is never usedTheo de Raadt
2015-11-09use (off_t)-1 rather than a BAD_LSEEK wrapperTheo de Raadt
2015-11-09error() is not a stdarg function, so there is no reason for NULL_PARGTheo de Raadt
to be special. Simply use NULL.
2015-11-093 pledge calls; 2 are for secure mode and will help track down if thisTheo de Raadt
code really meets the promise of "no writes". Some hints from nicm and semarie.
2015-11-09do not save history in secure modeTheo de Raadt
2015-11-09use open() with flags instead of creat()Theo de Raadt
2015-11-09Remove NULL-checks before free(), a needless comment, and a needlessmmcc
void* cast. ok nicm@
2015-11-09cleanup struct definitionsTheo de Raadt
2015-11-09close_getchr() is now a noopTheo de Raadt
2015-11-09use STDERR_FILENO instead of 2Theo de Raadt
2015-11-09do not need wrappers around O_RDONLY and suchTheo de Raadt
2015-11-08stop pointing people to the gnu and less sites; ok nicmJason McIntyre
2015-11-08Remove support for LESSGLOBALTAGS, we do not have global(1) (standardNicholas Marriott
ctags(1) support remains). ok tedu
2015-11-07replace save() with estrdup() and make estrdup() exit like all the otherTed Unangst
ecalloc, etc. functions do. ok mmcc nicm
2015-11-07delete custom charset tables and just use ctype. init utf_mode from LC_CTYPETed Unangst
ok nicm
2015-11-07remove some charsets we don't use. remove LESSCHARSET since setting it toTed Unangst
anything other than LC_CTYPE is likely a bug. ok nicm
2015-11-06remove rarely used LESSCHARDEF support. ok nicmTed Unangst
2015-11-06Remove support for ! to run a shell command, we have ^Z around theseNicholas Marriott
parts. ok ratchov jung millert
2015-11-06Garrett D'Amore has agreed to moving his copyright line up above theNicholas Marriott
terms with the existing copyright, so it is clear it applies the same terms.
2015-11-06time_t is not a long. remove incorrect abstraction around time().Ted Unangst
ok nicm
2015-11-06Remove LSIGNAL which is just the same as lsignal() now.Nicholas Marriott
2015-11-05deregisterTed Unangst
2015-11-05whitespaceTheo de Raadt
2015-11-05Replace less with the cleaned-up fork of less 458 maintained by GarrettNicholas Marriott
D'Amore at https://github.com/gdamore/less-fork. This has significantly less portability goop, has a tidied up code style, uses terminfo instead of termcap, and is has stricter POSIX compliance. Many of our local changes have been accepted upstream: substantial remaining local changes are code to read help files from /usr/share rather than compiling them in, man page and help improvements, and some tweaks to the default options. Review and testing by millert, ok deraadt
2011-09-16Import of Less 444Alexandr Shadchin
ok nicm@
2003-04-13Stock less-390 with some unneeded DOS/Windoze files removedTodd C. Miller
1996-09-21Import of unmolested less-290.etheisen
2014-11-23minor fixes;Jason McIntyre
2014-11-23Improve manpage markup.Anthony J. Bentley
- Mark up flags with Fl - Mark up commands with Cm or Ic - Replace some double quotes with semantic alternatives - Fix the incorrectly documented -" option - Correct broken intra-page references ok jmc@
2014-05-28in the compat with more section, document:Jason McIntyre
- the sense of -c is inverted - -GX are on by default - fold the note on -d into the stuff on -GX i deliberately left out mentioning -l being on by default, since i think the note below (all LESS vars are ignored) covers it adequately; ok millert
2014-05-28When invoked as more, make the -i option behave the same as less'sTodd C. Miller
-I to match POSIX. OK and man bits from jmc@
2014-05-23Use REG_STARTEND to permit searches to work past/across NUL bytes.Philip Guenther
ok millert@ shadchin@
2014-05-13sync some of the text of ENVIRONMENT with more(1), and cut someJason McIntyre
verbiage; ok millert
2014-05-13All callers of helpfile() are #ifdef SMALL so only define thatTodd C. Miller
function when SMALL is not defined. OK guenther@
2014-05-11zap double full stop; ok schwarzeJason McIntyre
2014-05-10remove unused variableCharles Longeau
ok shadchin@
2014-05-10Give more(1) its own help file, shorter than the one for less(1).Ingo Schwarze
The helpfile itself was prepared by jmc@, the glue by me. OK millert@ jmc@
2014-05-09zap the commented out stuff from this file: it mainly pertains to otherJason McIntyre
systems, and our page is sufficiently far away from upstream to justify it; ok millert