Fix off-by-one.

MFC after:	1 day
Check buffer length more strictly.

MFC after:	1 day
Add ${name}_env and ${name}_prepend.  ${name}_env is an argument list which
will be passed to env(1).  ${name}_prepend is simply prepended to the command
line for $command.
Add env and prepend to _rc_namevarlist.
Merge remote-tracking branch 'freebsd/master' into hardened/current/master
Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/userlandenhanced
Improve and document `ctladm portlist` subcommand.

Make this subcommand less FC-specific, reporting target and port addresses
in more generic way.  Also make it report list of connected initiators in
unified way, working for both FC and iSCSI, and potentially others.

MFC after:	1 week
Only #include <sys/tls.h> on NetBSD

Sponsored by: EMC / Isilon Storage Division
Merge remote-tracking branch 'freebsd/master' into hardened/current/master
#include libutil.h for fparseln on FreeBSD

Sponsored by: EMC / Isilon Storage Division
Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/userlandenhanced
sh: Fix break/continue/return in multiline eval.

Example:
  eval $'return\necho bad'
When deciding whether to call m_pullup() even though there is adequate
data in an mbuf, use M_WRITABLE() instead of a direct test of M_EXT;
the latter both unnecessarily exposes mbuf-allocator internals in the
protocol stack and is also insufficient to catch all cases of
non-writability.

(NB: m_pullup() does not actually guarantee that a writable mbuf is
returned, so further refinement of all of these code paths continues to
be required.)

Reviewed by:	bz
MFC after:	3 days
Sponsored by:	EMC / Isilon Storage Division
Differential Revision: https://reviews.freebsd.org/D900
Merge remote-tracking branch 'freebsd/master' into hardened/current/master
Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/userlandenhanced
Centralize determination of boot firmware (UEFI vs. BIOS/CSM) into a
function x86_bootmethod() and fix deviations from style(9).
Use the FIFOs in the imx5/imx6 uart hardware instead of interrupting on
each byte sent or received.
Only allow ZFS boot on GPT; the MBR ZFS bootblocks cannot be installed using
gpart bootcode as /boot/zfsboot needs to be split into multiple pieces by
hand and copied to different areas of the partition.
ddb: ANSI-fy function declarations.

MFC after:	5 days
Remove stale comments.