Check for BIOS version 3.0 as well as 3.1.

Submitted by: Coverity Prevent analysis tool
- Remove dead code.
- Protect against negative values as array indexes.

Submitted by: Coverity Prevent analysis tool
Minor style(9)isms.
Fix a bug in handling archive members: when a member was not found
when looking into an already hashed archive, the code tried to use
the name shortened to the maximum length allowed for the archive.
Unfortunately it passed a buffer of junk to the hashing routine when
the name actually wasn't too long. Theoretically this could lead to
a false positive.
Forgot to set *freePtr to FALSE in another place.

Submitted by:	Max Okumoto <okumoto@ucsd.edu>
Document the terabyte "-s" parameter in the usage string.
Split the usage line to not exceed 80 chars.
Style: fix indendation to be 8 and use tabulators. Fix lines longer than
80 characters and slightly reorder functions to get rid of static
prototypes.
When aborting a UNIX domain socket bind() because VOP_CREATE() failed,
make sure to call vn_finished_write(mp) before returning.

MFC after:	3 days
Fix an overflow when calculating the number of kilobytes from the
number of pages.

Obtained from:	Yahoo!
Remove the i387 versions of atan(), atan2(), and atan2f().
They are slower than the MI routines on modern hardware,
except for degenerate cases such as the Pentium 4.

PR:		67469
New release notes:
	prompt parameter support in autoboot loader command,
	uplcom(4) CTS support,
	dc(4) ALTQ support,
	IPv6 MTU feedback disabled,
	ipfw(8) ALTQ classification and tagging, and
	newsyslog -d option.

Update release notes:
	F/pc98 still uses OLDCARD[1], and
	fix some typos:
		s/compatability/compatibility
		s/behaviour/behavior/.

Spotted by:	nyan[1]
Don't use the static CALLOUT_INITIALIZER for __FreeBSD_version >= 600000. It
was a bad idea, but since it is done like this in the vendor source we keep
it around for older versions. As a safe guard against future misuse we don't
even define CALLOUT_INITIALIZER anymore.

This fixes ALTQ after callout_init_mtx() and takes altq_var.h off the vendor
branch.

Submitted by:	Divacky Roman <xdivac02NOstud.fit.vutbrSPAMcz> (w/ changes)
Fix a terrible braino in pfi_maybe_destroy() and unbreak "$pfctl -Fall" with
renamed interfaces.

PR:		kern/77645
Reported by:	Harald Schmalzbauer <harryNOschmalzbauerSPAMde>
Reviewed by:	yongari
MFC after:	3 days
Only send packet to bpf if we are committed to send it.  Previously it was
possible that the same packet would show up multiple times.  This poses some
constraints on the TBD locking for snc(4) (see comment).

Obtained from:	DragonFlyBSD
Submitted by:	Joerg Sonnenberger
Reviewed by:	rwatson
Use double arithmetic instead of simulating it with two floats.  This
results in a performance gain on the order of 10% for amd64 (sledge),
ia64 (pluto1), i386+SSE (Pentium 4), and sparc64 (panther), and a
negligible improvement for i386 without SSE.  (The i386 port still
uses the hardware instruction, though.)
Use hardware instructions for sqrt() and sqrtf().
Fix EOVERFLOW detection in vswprintf(3)

Reviewed by:	tjr
MFC after:	2 weeks
Bump __FreeBSD_version for vswprintf(3) fix. Some ports depend on it.
New release notes:  MemGuard, psm(4) improved Synaptics Touchpad
support, hme(4) MPSAFE (+MFC), random port number allocation fix,
IPX/SPX locking, gshsec(8), dump(8) -n, some ipfw(8) abbreviated
options deprecated, libarchive ISO and ZIP support, rpmatch(3),
telnet(1)/telnetd(8) -S, manpage cleanup.

MFCs noted:  cd9660 less chatty,

Modified release notes: Fix typo (s/icss/ichss/) [1], add missing
"driver" in a couple of notes.

Submitted by:	njl [1]
MFR4_11:  SA-04:16.fetch (+MFC), SA-04:17.procfs (+MFC).

New release notes:  EN-05:01.nfs (+MFC), EN-05:02.sk (+MFC),
EN-05:03.ipi (+MFC).

To be consistent with other documentation, the release documentation
will henceforth include the one-word keyword (e.g. "fetch", "procfs"
above) in the names of advisories and errata.