Push all test bits from head into stable/9; no cherrypicking involved
Use sys/cdefs.h instead of sys/param.h
Fill in more blanks
Add NetBSD compat here
Synch share/mk with master as of the day before yesterday