MFC: r267145

Fix the keyfile being cleared prematurely after r259428 (MFCed to stable/10
in r266749).

PR:		185084
Submitted by:	fk@fabiankeil.de
Reviewed by:	pjd
MFC r267634: Fix case where fastroute or "to interface" is used with
incorrect FIB.

PR:		183065
Submitted by:	p-freebsd-bugs@ziemba.us
Approved by:	glebius (mentor)
MFC r267616, 267640:

Retooling addrconfig() to exclude addresses on loopback interfaces
when looking for configured addresses.
This change is based upon the code from the submitter, and made
following changes:
- Exclude addresses assigned on interfaces which are down, like NetBSD
  does.
- Exclude addresses assigned on interfaces which are ifdisabled.

Use SOCK_CLOEXEC.

PR:		190824
Submitted by:	Justin McOmie
MFC r267693:
  Fix a bug in bsdgrep(1) where patterns are not correctly
  detected.

  Certain criteria must be met for this bug to show up:

   * the -w flag is specified, and
   * neither -o or --color are specified, and
   * the pattern is part of another word in the line, and
   * the other word that contains the pattern occurs first

PR:		181973
Sponsored by:	The FreeBSD Foundation
MFC r267766:
Use correct names for the flags.
MFC r267629:
Tidy up code of the wrapper.
MFC r267630:
Add MAP_EXCL flag for mmap(2).
MFC r261901:

Preserve one character space for a trailing '\0'.
MFC r267196:

Add support for inspecting process flags set in p_flag2.
MFC 264277:
Handle single-byte reads from the bvmcons port (0x220) by returning
0xff.  Some guests may attempt to read from this port to identify
psuedo-PNP ISA devices.  (The ie(4) driver in FreeBSD/i386 is one
example.)
MFC r267690

Hide a harmless "QUEUE FULL EVENT" message behind bootverbose.
MFC r266479, r267153:

- Move Nx definition to a separate block.
- Add Lb string for libcuse.
MFC r261140:

Add MLINK for fdclosedir.3 to directory.3 and sort fdopendir(3) entry.
MFC r267664:
Assert that the new entry is inserted into the right location in the
map entries list, and that it does not overlap with the previous and
next entries.
MFC r265613, r267649: Handle ELF files with 65280 or more sections

  If e_shnum or e_shstrndx are at least SHN_LORESERVE (0xff00) then an
  escape value is used to indicate that the actual value is found in one
  of section 0's fields.

  Don't dump core when the ELF file has no section headers. The ELF
  core files created by gcore are among those.
MFC: 267833

Fix issues in config parser relating to lun serial numbers.

Without this fix some serial numbers needed to be quoted
to avoid the config parser bailing out.

Submitted by:	delphij
Sponsored by:	iXsystems
MFC 261781:
Don't waste a page of KVA for the boot-time memory test on x86.  For amd64,
reuse the first page of the crashdumpmap as CMAP1/CADDR1.  For i386,
remove CMAP1/CADDR1 entirely and reuse CMAP3/CADDR3 for the memory test.
MFC 266296:
Correct some minor nits in the per-thread signal format description such
as missing posessives and misordering of fields.
MFC 266293:
- Add support for dumping current resource usage for processes via a new -r
  flag to procstat.
- Add an -H flag to request information about threads rather than processes
  when dumping statistics.  Currently it is only used for -r to display
  resource usage for individual threads instead of the entire process.
MFC 267291:
Use strcasecmp() instead of strcmp() when checking user-supplied encoding
names so that encoding names are treated as case-insensitive.  This allows
the use of 'utf-8' instead of 'UTF-8' for example and matches the behavior
of iconv(1).

PR:		167977