summaryrefslogtreecommitdiffstats
path: root/usr.bin/less/lsystem.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* adjust a variable name in a comment after the reorg in signal.c rev. 1.18schwarze2019-09-041-1/+1
|
* When system calls indicate an error they return -1, not some arbitraryderaadt2019-06-281-1/+1
| | | | | | value < 0. errno is only updated in this case. Change all (most?) callers of syscalls to follow this better, and let's see if this strictness helps us in the future.
* style(9) includesmmcc2016-03-161-1/+2
| | | | ok nicm@
* Add a flag argument to flush() to stop it calling quit() on error, thennicm2015-11-131-3/+3
| | | | | | 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
* NULL_IFILE has no weird use patterns. NULL is sufficient.deraadt2015-11-091-1/+1
|
* error() is not a stdarg function, so there is no reason for NULL_PARGderaadt2015-11-091-2/+2
| | | | to be special. Simply use NULL.
* do not need wrappers around O_RDONLY and suchderaadt2015-11-091-1/+1
|
* replace save() with estrdup() and make estrdup() exit like all the othertedu2015-11-071-3/+3
| | | | | ecalloc, etc. functions do. ok mmcc nicm
* Garrett D'Amore has agreed to moving his copyright line up above thenicm2015-11-061-4/+2
| | | | | terms with the existing copyright, so it is clear it applies the same terms.
* Remove LSIGNAL which is just the same as lsignal() now.nicm2015-11-061-2/+2
|
* Replace less with the cleaned-up fork of less 458 maintained by Garrettnicm2015-11-051-179/+56
| | | | | | | | | | | | | 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
* Merge Less 458 plus local patchesshadchin2014-04-251-3/+2
| | | | ok guenther@, ok jmc@ for man bits
* Merge in less 444 plus local changesshadchin2011-09-161-5/+9
| | | | ok nicm@
* Update to less version 382. This removes some code that is licensed undermbalmer2007-04-191-140/+0
| | | | | | a non-BSD license and which was not used on OpenBSD. No functional changes. From Daniel Dickmann <didickman@gmail.com>, ok itojun, millert, ray, matthieu
* use strchr instead of indexderaadt2004-12-191-1/+1
|
* Merge in less-381 w/ local changes and remove obsolete files.millert2003-04-131-53/+261
|
* more strlcpy/strlcat/snprintf, less strcpy/strcat/sprintfderaadt2003-04-061-4/+4
| | | | | reviewed by tdeval, millert, dhartmei and others. more bits coming here from some of them i think
* kill more registersmpech2001-11-191-7/+7
| | | | millert@ ok
* $OpenBSD$niklas2001-01-291-0/+2
|
* Import of unmolested less-290.etheisen1996-09-211-0/+300