Similar to CTLFLAG_RDTUN, provide CTLFLAG_RWTUN that defines writable sysctl
that can also be modified by loader tunable.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244123 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Cleanup a few duplicate llvm libs that snuck in with the recent update.

Noticed by:	rdivacky


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244124 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
libc: Make various internal file descriptors close-on-exec.

These are obtained via fopen().


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244126 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add -R, an option to restart all enabled "local" services.

Discussed on:	-rc@ (in September)
MFC after:	2 months


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244132 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Make Tflag and Wflag filters work for more sysctl options.

To do this move the Tflag and Wflag checks earlier in show_var() so
we bail earlier for variables not matching our query.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244133 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Handle large negative block counts correctly.

MFC after:	 2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244134 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
virtio_scsi: Remove duplicated lines

These must have been accidently copied from the if statement a few
lines later. Also remove parameter name from function prototype.

Approved by:	grehan (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244136 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Implement an API to allow a hypervisor to save/restore
guest floating point state without having to know the
size of floating-point state.

Unstaticize fpurestore to allow the hypervisor to
save/restore guest state using fpusave/fpurestore
on the allocated FPU state area.

Reviewed by:	kib
Obtained from:	NetApp/bhyve
MFC after:	1 week


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244144 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add quirks for AD1984A codec and Lenovo X300 laptop.

PR:		kern/148741
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244145 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add IDs for SATA controllers on AMD Hudson-2 series chipsets.
I am not exactly sure about the naming due to lack of specs on AMD site,
but it is better to have some identification then none at all.

MFC after:	1 month


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244146 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Eliminate redundant variable.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244153 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Use kern.max_pid sysctl to obtain maximum PID number instead of using local
define.

Reviewed by:	jhb


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244154 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Renamed zfs trim stats removing duplicate zio_trim identifier from the name
Added description option to kstats.
Added descriptions for zio_trim kstats

PR:		kern/173113
Submitted by:	Steven Hartland
Reviewed by:	pjd
Approved by:	pjd
MFC after:	2 weeks


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244155 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add myself as a new src committer

Approved by:	pjd (mentor)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244156 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
  Fix a crash in tcp_input(), that happens when mbuf has a fwd_tag on it,
but later after processing and freeing the tag, we need to jump back again
to the findpcb label. Since the fwd_tag pointer wasn't NULL we tried to
process and free the tag for second time.

Reported & tested by:	Pawel Tyll <ptyll nitronet.pl>
MFC after:		3 days


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244157 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Fix a regression caused by SVN r222417.

Prior to r222417, setting `password' in loader.conf(5) did not prevent boot
but instead only prevented changes to boot options by prompting for password
if autoboot failed or the user interrupted the countdown sequence.
After r222417 the same machine with `password' set in loader.conf(5) would no
longer boot without _always_ entering the password.

This patch restores the old (8.x and older) functionality for password in
loader.conf(5) while adding a new bootlock_password feature to replace the
edge-case should anybody desire the regressed functionality (HINT: great for
PXE servers and/or private distributions).

loader.conf(5) was updated to be more clear with-respect to password setting
(previous text was misleading).

Documentation (loader.conf(5) and check-password.4th(8)) has been updated to
include notes on the new bootlock_password setting.

Special thanks to Alex Verbod for bringing this to my attention and helping to
refine the loader.conf(5) text.

PR:		conf/170110
Submitted by:	Vitaly Zakharov <ded3axap@gmail.com>
Reviewed by:	Alexander Verbod <alexander.verbod@gmail.com>


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244158 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sh: Detect and flag write errors on stdout in builtins.

If there is a write error on stdout, a message will be printed (to stderr)
and the exit status will be changed to 2 if it would have been 0 or 1.

PR:		bin/158206


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244162 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Add my ex-mentors.


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244163 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Give credit where credit is due.

Requested by:	Álvaro Castillo
Approved by:	cperciva (implicit)


git-svn-id: svn+ssh://svn.freebsd.org/base/head@244164 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Change progress indicator for downloading patches.

Use a percent style indicator instead of emitting one
long line of patch numbers.


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