In his continuing quest to improve our documentation, jmc@ noticed that
we didn't support the -L option required by POSIX, and didn't
document the -P option that we did support.  Fix that with code and
doc bits from NetBSD, but correcting a minor noncompliance in the
-L support and applying the jmc@ and sobrado@ magic to the manpage.
This commit does not change the default behavior.

ok jmc@ millert@ sobrado@
On delete-window, remember the position of dot and mark in the buffer
so that an revisiting the buffer the correct line number is
displayed.
Found by jasper@
OK lum@
a void function should not be returning anything.

ok florian@
remove an errant semicolon.

ok gilles@
Apart from the early exploration done to find a console keyboard during
the boot process, USB devices must be attached or detached from the usb
task thread in order to avoid races with periodical explorations issued
by uhub(4) interrupts.

Respect this rule when detaching root hubs during a suspend/resume cycle
and avoid some hangs due to the aforementioned race.

Tested by Mattieu Baptiste, thanks!
When invoked as more, make the -i option behave the same as less's
-I to match POSIX.  OK and man bits from jmc@
missing space in error message
More KNF.
There is no point in checking if a pointer is non-NULL before calling free,
since free already does this for us. Also remove some pointless NULL
assignments, where the result from malloc(3) is immediately assigned to the
same variable.

ok miod@
EVP_MD_CTX_create() calls malloc and can return NULL. However, only one of
the calls in libssl actually checks the return value before using it. Add
NULL checks for the remaining three calls.

ok miod@
Refactor tls1_change_cipher_state() and split the compression handling out
from the cipher and message digest handling, allowing for upcoming changes.

Based on Adam Langley's chromium diffs.

ok miod@
More KNF.
in the compat with more section, document:

- 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
document that posix defaults to -L if no options are given, and tweak previous;
Fixed chap_input() and chap_authenticate() not to be used as if they
return a value.  Since they are void function.

pointed out daniel, ok daniel
finally enable writing per-commit commitid tokens to rcs ,v files

ok deraadt@ millert@
onocr suppresses the cr, not outputs it;
confirmed by/ok millert guenther
Remove additional files generated during ld.so build on make clean.

From drahn Bitrig

ok miod@ guenther@
prio is meaningless when bandwidth shaping is in use, fix example
noticed by Marko CupaÄ <marko.cupac at mimar dot rs>
tweak previous;