Close the connection after the response is completed (no Keepalive yet).
When renewing a lease, update client->active or you end up in a
tight renew loop. Caused by recent reshuffling of code in
bind_lease().
If the only process in the pgrp is in the middle of exiting, it might
not have any threads left.  Treat that the same as an empty pgrp.

encountered by and ok deraadt@
if the freedsize isn't zero, check that's reasonable. ok beck
pass the size to free in some of the obvious cases
Update BUGS section.
fill in proper sizes in free(9)
Finish writing the output before closing the connection
(adopted from relayd).
Sync file to be identical in relayd(8) and httpd(8).
use mallocarray where arguments are multipled. ok deraadt
Stop using old n_long and n_short types.
Initial support to read GPT partition tables in the kernel, if option GPT.
Contributed by Markus Mueller; code based upon Bitrig's GPT support, with
stricter GPT structures validation and support for alternate header places.

ok deraadt@ jsing@ krw@
Fall back to smaller spacing on the mips64 machines.

Please spare some change for the mips64 memory-challenged machines..
Some change, Sir?

Fixes at least the octeon platform. Found the hardway on my DSR500.

Found by Boss tedu@ and Boss deraadt@
Okay Boss miod@
Compatibility hack for the old "manpath=OpenBSD<blank>" query parameter format;
unfortunate, more than 400 links needing this are scattered all around
the www.openbsd.org website, and CVSweb needs this as well.
Since the event(s) passed to a callback can be a mask of all events
of interest and EV_WRITE is or'ed into the interesting events, it
is more correct to check both events each time. Pointed out by
Claudio.

ok henning@ claudio@
Remove a debug message
Warn about the use of BUF_strdup.
OPENSSL_{malloc,free} -> {malloc,free}
KERNEL_ASSERT_LOCKED(9): Assertion for kernel lock (Rev. 3)

This adds a new assertion macro, KERNEL_ASSERT_LOCKED(), to assert that
kernel_lock is held.  In the long process of removing kernel_lock, there will
be a lot (hundreds or thousands) of use of this; virtually almost all functions
in !MP-safe subsystems should have this assertion.  Thus this assertion should
have a short, good name.

Not only that "KERNEL_ASSERT_LOCKED" is consistent with other KERNEL_* and
SCHED_ASSERT_LOCKED() macros.

Input from dlg@ guenther@ kettenis@.

OK dlg@ guenther@
Fix memory leak.

OK from beck@ and miod@