MFC r244224, r248753

  Minor refactoring prior to .symbols file changes

  - Combine .if x and .if !x using .else
  - Separate out beforelinking dependency
  - Add comments to clarify .if nesting

  Always define and use PROGNAME

  This avoids having separate cases in the install rule for PROGNAME set
  and not set.  This is a minor cleanup in advance of further support for
  standalone debug files.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251686 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bump __FreeBSD_version to bound boostrapping of ctfmerge which was fixed
in r249243.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251687 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250407:

Remove duplicated copies of various NetBSD compatibility shims used by
makefs and use libnetbsd, contrib/mtree, and contrib/mknod instead.

Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/stable/9@251688 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 235380,235454,235455,235456,235457,235613,235614,235628,236567,
     238125,238535,238660,238979,239972

Bring all changes to the DTrace Toolkit into FreeBSD 9.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251697 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 249263: Fix a potential socket leak in the NFS server.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251698 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 249315:
Proxy allocation requests for the PCI ROM BAR from child devices similar
to how the VGA bus driver currently proxies allocation requests for other
PCI BARs.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251700 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r251109:
	Add support for tethering on the iPhone 4S

PR:	usb/179078


git-svn-id: svn://svn.freebsd.org/base/stable/9@251701 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250462:
	Add option to lockf to avoid creating a file if it does not exist.

PR:	bin/170775


git-svn-id: svn://svn.freebsd.org/base/stable/9@251704 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 249766: Use a higher TTL (128) for DHCP packets.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251707 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r227183,r229905,r250432,r250451,r250882:

	- Add missing static keywords to split(1)

	- Fix warning when compiling with gcc46:
	 error: variable 'defname' set but not use

	- Implement 'split -d' which allows a numeric suffix instead of an
	alphabetic one.

	- Bump .Dd for recent content change.
	Avoid signed overflow in error handling code.

PR:		bin/116209


git-svn-id: svn://svn.freebsd.org/base/stable/9@251711 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC 228990,243232,243233:

Overhaul of route6d(8):

- Use queue(3) for linked-list.
- Use a consistent naming scheme for struct members.
- Use ANSI C style function declaration.
- Add check of RTM_VERSION mismatch.
- Increase the number of retry for NET_RT_DUMP from 5 to 15.
- Use 2001:db8:: as an example instead of deprecated 3ffe:: address block.
- Add check for connected routes.
- Add support of RTM_IFANNOUNCE for dyanmically-added/removed interfaces.
- Add support of *, ?, and [ in the interface list.
- Add -P number to specify route flag which will never expire.
- Add -Q number to specify route flag which route6d will add to routes via RIP.
- Add -p pidfile to specify the process ID file.


git-svn-id: svn://svn.freebsd.org/base/stable/9@251724 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r251561:

libstand: Reset the seek pointer in ext2fs as done in UFS.

Reset the seek pointer to 0 when a file is successfully opened,
since otherwise the initial seek offset will contain the directory
offset of the filesystem block that contained its directory entry.
This bug was mostly harmless because typically the directory is
less than one filesystem block in size so the offset would be zero.
It did however generally break loading a kernel from the (large)
kernel compile directory.

Also reset the seek pointer when a new inode is opened in read_inode(),
though this is not actually necessary now because all callers set
it afterwards.

PR:		177328
Submitted by:	Eric van Gyzen
Reviewed by:	iedowse


git-svn-id: svn://svn.freebsd.org/base/stable/9@251726 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC	r251562, r251612:

Miscellaneous cleanups for ext2fs:

- e2fs_bpg and e2fs_isize are always unsigned.

- s/file system/filesystem/g (from ffs r96755)


git-svn-id: svn://svn.freebsd.org/base/stable/9@251731 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge remote-tracking branch 'upstream/svn_stable_9' into svn_stable_9