fix bug introduced by work-around: sets with nothing to do must be marked
uptodate as well. Restores ntogo to working order
tweak the size_and support to be able to do stuff out of order
tweak extraction for out-of-order archives: do a first pass
where we register every actual file in the plist by its path relative
to cwd.  Note every meta info as extracted (for partial packages to make
sense), then do a newer extract loop, where each archive member must match
by path.

That way, we can close archives early as soon as we've extracted every
new file.  To be used shortly by pkg_create. Note that new packages *won't*
be extractible by the old tools.
Merge NetBSD commit:
Move to 2 clause license, approved by Wolfgang Solfrank.

ok deraadt@, krw@
Allow autoinstall to fetch/install sets from multiple locations.

Noted by and OK sebastia@
OK halex@
Revert "Always create a local route for every configured IPv4 address",
it introduces a regression with default routes & p2p interfaces.

Problem reported by naddy@
Enable PCI power management on Lemote.

Remaining battery test results on Lemote after 30m in suspend:

pci_dopm = 0: 82%, 68min
pci_dopm = 1: 86%, 81min


Suggested by deraadt@
Okay miod@, deraadt@
Fix format string under MP_LOCKDEBUG
Use MAP_INHERIT_ZERO in arc4random(3)

Now instead of calling getpid() each time a user invokes arc4random(),
we're able to rely on the kernel zero'ing out the RNG state if the
process forks.

ok deraadt, djm
The io clock on Octeon II (CN6xxx) runs at a different rate to the cpu clock.
Program the uarts based on the io clock rate on these platforms.

ok jasper@ pirofti@ yasuoka@
ssl_session_cmp is not a sort function, can use CRYPTO_memcmp here too.
ansi function declarations.

ok gcc sha256
Convert malloc/memset to calloc, and remove pointless casts while here.

From Benjamin Baier.
Revise previous: if a user calls STRIOCGETCWD two or more times in a row
without an intervening STRIOCRESCWD, release the current values instead
of the saved values, so as to effectively emulate a STRIOCRESCWD.

While here, make sure the fdc->fd_[cr]dir members are updated before
vrele()ing their old values, so that they can't be caught as dangling refs.

ok matthew@
whitespace fix.

im sick of fixing this by hand on all my boxes while hacking on
other stuff and having it pollute my diffs.

no functional change.