* Whitespace.
Being able to access a path do not necessarily mean we have access
to a directory. So instead of doing this, we just call mkdir(2)
directly and test if the returned value is 0 or errno is EISDIR.

Reported by:	Coverity
CID:		1238925
MFC after:	1 week
Plug a file descriptor leak.

Reported by:	Coverity
CID:		1238916
MFC after:	1 week
Refactor the code a little bit to avoid NULL deference when
allocation was failed.

Reported by:	Coverity
CID:		1238915
MFC after:	1 week
Use strlcpy(). I don't believe these are real problems but it's better
to use a safe idiom.

Reported by:	Coverity
CID:		1238914
MFC after:	1 week
Use a char * as iterator over a bounded string.

MFC after:	1 week
The strtol(3) family of functions would set errno when it hits one.
Check errno and handle it as invalid input.

Obtained from:	HardenedBSD
Submitted by:	David CARLIER <devnexen@gmail.com>
MFC after:	2 weeks
Explicitly set errno to 0 before calling strto*.

Suggested by:	mjg
MFC after:	2 weeks
Revert r272122

The patch still needs to be more robust and it broke the
build on MIPS so revert it for now while all the issues
are fixed.

Reported by:	ache, davide
PR:		137307
Fix description of mutex acquisition.

Reviewed by:	kib
X-MFC with:	r272070
Sponsored by:	Nginx, Inc.
Refactor the code a little bit to reduce duplicated code.

Reviewed by:	mjg
MFC after:	2 weeks
Fix the description of the -h option.

Reported by:	swills
MFC after:	3 days
Make lagg protocols detach methods returning void.

Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.
Make lagg protos a enum.
Add new (untested) device IDs to smsc(4)

MFC after:	1 week
- When reconfiguring protocol on a lagg, first set it to LAGG_PROTO_NONE,
  then drop lock, run the attach routines, and then set it to specific
  proto. This removes tons of WITNESS warnings.
- Make lagg protocol attach handlers not failing and allocate memory
  with M_WAITOK.

Sponsored by:	Netflix
Sponsored by:	Nginx, Inc.
xen: add proper copyright attribution

Noted by:	jmallett
Fix typos.
Fix the size of AT91SAM9260_PIT_SIZE.
Add very basic outline man page for smsc(4).

MFC after:	6 days