MFC r249650:

Include PID in the error message which is printed when the maxproc limit
is exceeded. Improve formatting of the message while here.

PR:		kern/60550


git-svn-id: svn://svn.freebsd.org/base/stable/9@250558 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249725:
Add new OHCI controller ID.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250559 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249795:
Add convenience wrapper functions to run callbacks in the context of the
USB explore thread.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250560 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249796, r249830, r249844 and r249845:
USB audio fixes and improvements.
- Fix runtime switching of sample rate
- Fix feedback endpoint algorithm


git-svn-id: svn://svn.freebsd.org/base/stable/9@250561 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249566,r249644: EINTR in POSIX sem_*.

Document that sem_wait() can fail with [EINTR].

Programs often do not expect an [EINTR] return from sem_wait() and POSIX
only allows it if the signal was installed without SA_RESTART. The timeout
in sem_timedwait() is absolute so it can be restarted normally.

The old POSIX semaphore implementation did this correctly, unlike the new
umtx one.

Specific to 9-stable: UMTX_ABSTIME does not exist and therefore
sem_timedwait() is erroneously not restarted after a SA_RESTART signal
handler.

It may be desirable to avoid [EINTR] completely, which matches the pthread
functions and is explicitly permitted by POSIX. However, the kernel must
return [EINTR] at least for signals with SA_RESTART clear, otherwise pthread
cancellation will not abort a semaphore wait. In this commit, only restore
the 8.x behaviour which is also permitted by POSIX, as far as possible with
the ABI in 9-stable.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250569 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249979: intro(2): Fix some errors in ENFILE and EMFILE descriptions.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250570 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249956: sysconf(3): Correct the description of _SC_OPEN_MAX.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250571 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249859: getdtablesize(2): Describe what this function actually does.

getdtablesize() returns the limit on new file descriptors; this says nothing
about existing descriptors.


git-svn-id: svn://svn.freebsd.org/base/stable/9@250572 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
dup(2): Remove incorrect sentence about getdtablesize().

There are no getdtablesize() bounds on the file descriptor to be duplicated;
it only has to be open. If the RLIMIT_NOFILE rlimit was decreased after
opening the file descriptor, it may be greater than or equal to
getdtablesize() but still valid.


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

Remove all the checks on curthread != NULL with the exception of some MD
trap checks (eg. printtrap()).

Generally this check is not needed anymore, as there is not a legitimate
case where curthread != NULL, after pcpu 0 area has been properly
initialized.

Reviewed by:	attilio
Approved by:	sbruno (mentor)


git-svn-id: svn://svn.freebsd.org/base/stable/9@250581 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250463:
	Permit relative paths with mergemaster -m

PR:	bin/173929


git-svn-id: svn://svn.freebsd.org/base/stable/9@250583 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r250303:
	Remove includes for old versions of FreeBSD.

Reviewed by:	stass


git-svn-id: svn://svn.freebsd.org/base/stable/9@250585 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
MFC r249949:
Take some improvements from DragonFlyBSD:
		- add const where appropriate
		- add static where appropriate
		- fix a whitespace issues


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