Initial import from FreeBSD RELENG_4: