mdoc improvements


git-svn-id: svn://svn.freebsd.org/base/head@250014 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Bring copyright changes with the agreement of Thomas Skibo.

Communication on src-commiters, Sat, 27 Apr 2013 22:09:06 -0700,
Subject was: "Re: svn commit: r249997"

As I'm here, fix the style main block comments in files' headers.


git-svn-id: svn://svn.freebsd.org/base/head@250015 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Eliminate an unneeded call to vm_radix_trimkey() from vm_radix_lookup_le().
This call is clearing bits from the key that will be set again by the next
line.

Sponsored by:	EMC / Isilon Storage Division


git-svn-id: svn://svn.freebsd.org/base/head@250018 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix EXIT STATUS. biff reports its status when it was invoked.

Submitted by:	Ryan Kavanagh,
		Jason McIntyre <jmc@kerhand.co.uk>
Obtained from:	OpenBSD


git-svn-id: svn://svn.freebsd.org/base/head@250019 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Merge @228176 from Perforce to fix a bug introduced in r249553:

  Trim two now-unneeded (and likely harmful) lines from the libstand
  setjmp/longjmp for MIPS.

  Spotted by:   jmallett

MFC after:      3 days
Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/head@250020 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Its time to retire COMPAQ.  I don't think that its coming back.  :-)

Obtained from:	Yahoo! Inc.
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250021 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Let's align correctly by setting to 17.

OpenCISS states that if the value is 0, then the driver should try a value
of 31.  That's just silly.  Set to 17 so that the subtraction for maxio
becomes 16 and aligns nicely.

Reviewed by:	scottl
Obtained from:	Yahoo! Inc.
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250022 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Enable building string functions as part of libstand on mips; the Makefile
is a bit obfuscated here, as ia64 adds string source files elsewhere, so
simply exclude it here.

Reviewed by:	imp
MFC after:	3 days
Sponsored by:	DARPA, AFRL


git-svn-id: svn://svn.freebsd.org/base/head@250023 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
When the world is built WITHOUT_OPENSSH also don't
install ssh-copy-id.

PR:		misc/177590
Submitted by:	Oleg Ginzburg <olevole@olevole.ru>
Reviewed by:	imp


git-svn-id: svn://svn.freebsd.org/base/head@250024 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add some cam_freeze_devq()'s missed at r249466.
This makes number of freezes match the number of releases.

Reported by:	dim


git-svn-id: svn://svn.freebsd.org/base/head@250025 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Convert panic() into KASSERT().

Reviewed by:	alc
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250026 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Eliminate the layering violation in the kern_sendfile().  When quering
the file size, use VOP_GETATTR() instead of accessing vnode vm_object
un_pager.vnp.vnp_size.

Take the shared vnode lock earlier to cover the added VOP_GETATTR()
call and, as consequence, the whole internal sendfile loop.  Reduce vm
object lock scope to not protect the local calculations.

Note that this is the last misuse of the vnp_size in the tree, the
others were removed from the ELF image activator by r230246.

Reviewed by:	alc
Tested by:	pho, bf (previous version)
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250027 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Assert that the object type for the vnode' non-NULL v_object, passed
to vnode_pager_setsize(), is either OBJT_VNODE, or, if vnode was
already reclaimed, OBJT_DEAD.  Note that the later is only possible
due to some filesystems, in particular, nfsiods from nfs clients, call
vnode_pager_setsize() with unlocked vnode.

More, if the object is terminated, do not perform the resizing
operation.

Reviewed by:	alc
Tested by:	pho, bf
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250028 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make vm_object_page_clean() and vm_mmap_vnode() tolerate the vnode'
v_object of non OBJT_VNODE type.

For vm_object_page_clean(), simply do not assert that object type must
be OBJT_VNODE, and add a comment explaining how the check for
OBJ_MIGHTBEDIRTY prevents the rest of function from operating on such
objects.

For vm_mmap_vnode(), if the object type is not OBJT_VNODE, require it
to be for swap pager (or default), handle the bypass filesystems, and
correctly acquire the object reference in this case.

Reviewed by:	alc
Tested by:	pho, bf
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250029 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Rework the handling of the tmpfs node backing swap object and tmpfs
vnode v_object to avoid double-buffering.  Use the same object both as
the backing store for tmpfs node and as the v_object.

Besides reducing memory use up to 2x times for situation of mapping
files from tmpfs, it also makes tmpfs read and write operations copy
twice bytes less.

VM subsystem was already slightly adapted to tolerate OBJT_SWAP object
as v_object. Now the vm_object_deallocate() is modified to not
reinstantiate OBJ_ONEMAPPING flag and help the VFS to correctly handle
VV_TEXT flag on the last dereference of the tmpfs backing object.

Reviewed by:	alc
Tested by:	pho, bf
MFC after:	1 month


git-svn-id: svn://svn.freebsd.org/base/head@250030 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
The controller does not zero this data structure, ever.

Zero it out here so we do not misinterpret the data error.

Obtained from:	Yahoo! Inc.
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250031 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Silence warning from clang:

/home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: warning: for loop has empty body [-Wempty-body]
                for (order=0, size=PAGE_SIZE; size<f->size; order++, size<<=1) ;
                                                                               ^
/home/sbruno/bsd/head/sys/dev/hptrr/hptrr_osm_bsd.c:178:66: note: put the semicolon on a separate line to silence this warning

Obtained from:	Yahoo! Inc.
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250032 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Correct comment typo's
Add missing comment

Reviewed by:	pjd (mentor)
Approved by:	pjd (mentor)
MFC after:	2 weeks


git-svn-id: svn://svn.freebsd.org/base/head@250033 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Doing a cpio from /var/empty if dir was not specified or non-existent
copies its mode to the destination. This is not desirable.
Rephrase this code to be more sensible.

PR:		173483
MFC after:	1 week


git-svn-id: svn://svn.freebsd.org/base/head@250034 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove cast that was only required for K&R C.

Reviewed by:	jilles


git-svn-id: svn://svn.freebsd.org/base/head@250035 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f