less-458
remove unneeded files
Tell glob() to do tilde and brace expansion too.

less uses the "lessecho" command to do globbing on systems that
don't have libc glob routines.  We have glob(3) but for some reason,
less only uses this on DOS w/ djgppc.  I have pared down lglob.h
to just have the glob(3) bits and to include glob.h itself.  This
removes the need for lessecho on OpenBSD.
Spell precede correctly.
add GNU_OPTIONS
replace strcpy,strcat,sprintf on strlcpy,strlcat,snprintf
use STDOUT_FILENO and STDERR_FILENO
add SMALL
using a help file instead of embedding it in the binary
Remove extra `.' from -m prompt string. From Daniel Malament danielm
at bluetiger dot net, PR 6234.
add more -d
Fix removing of trailing space in file name completion list.
Fix off-by-one when moving a line to the end of the buffer.  Instead
of doing our own memmove() (incorrectly) just use memmove().
Bug found by Matthias Scheler <tron@zhadum.de>.
OK deraadt@ henning@ krw@
When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@
Fix recovery of realloc failure, which causes a segv on files with
very lone lines, as reported by Steffen Wendzel.  ok deraadt@

When reallocating the line buffer, double the existing buffer
size instead of just incrementing it by LINEBUF_SIZE and use realloc()
+ memset() instead of calloc() + memcpy().  Prevents excessive resource
usage when displaying very long lines.  OK deraadt@, krw@ and otto@
Use interruptible syscalls instead of setjmp/longjmp. This make
less's signal handlers safe. No one has reported problems so far...
Incorporate less modifications for more
It turns out that POSIX specifies more should prompt with the file name,
not --More-- like the old UCB more did.  Back out a hack I did to
make the prompt look like the old UCB more.
Call fsync() _after_ tcsetattr() and pass tcsetattr the TCSASOFT
flag. Seems to help the occasional problem with messed up terminal
input after suspending less.
remove unneed SMALL