Also add some missing $FreeBSD$ to keep svn happy.
particular implementation is based on the Solaris logins(1) man page.