MFC r240403 (obrien):
  Not all Pmake derivatives silently handle empty shell output, so ensure
  there is something for make(1) to consume.  Bmake gives output such as:
  "warning: Couldn't read shell's output for "/bin/sh -c true"

Approved by:	kib (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@251653 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250617

etc/rc.d/syslogd
	Add netif as a requirement of syslogd to get lo0 up.  Currently, this
	doesn't affect the rc order, because mountcritremote already depends on
	netif.

Reviewed by:	eadler
Approved by:	ken (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@251663 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: 236567

Integrate a fix for a very odd signal delivery problem found
by Bryan Cantril and others in the Solaris/Illumos version of DTrace.

Obtained from: https://www.illumos.org/issues/789


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@251666 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250662

sbin/camcontrol/camcontrol.c
	If an expander returns 0x00 (no device attached) in the ATTACHED DEVICE
	field of the SMP DISCOVER response, ignore the value of ATTACHED SAS
	ADDRESS, because it is invalid.  Some expanders zero out the address
	when the attached device is removed, but others do not.  Section
	9.4.3.10 of the SAS Protocol Layer 2 revision 04b does not require them
	to do so.

Approved by:	ken (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@251669 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r251396

sys/dev/mps/mps.c
sys/dev/mps/mps_user.c
        Fix uninitialized memory reference in mps_read_config_page.  It was
        referencing a field (params->hdr.Ext.ExtPageType) that would only be
        set when reading an Extended config page.  The symptom was that
        MPSIO_READ_CFG_PAGE ioctls would randomly fail with
        MPI2_IOCSTATUS_CONFIG_INVALID_PAGE errors.  The solution is to
        determine whether an extended or an ordinary config page is requested
        by looking at the PageType field, which should be available regardless.

        Similarly, mps_user_read_extcfg_header and mps_user_read_extcfg_page,
        which call mps_read_config_page, had to be fixed to always set the
        PageType field.  They were implicitly assuming that
        mps_read_config_page always operated on Extended pages.

Reviewed by:	ken
Approved by:	ken (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@251670 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC: r251089
Add a patch analygous to r248567, r248581, r251079 to the
old NFS client to avoid the panic reported in the PR by
doing the vnode_pager_setsize() call after unlocking the mutex.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@251671 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://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+ssh://svn.freebsd.org/base/stable/9@251731 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge a missing part of 235613 to add the new dirs to mtree.


git-svn-id: svn+ssh://svn.freebsd.org/base/stable/9@251747 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f