Allow passing flags without arguments for special variables.

initial request and patch from Patrik Lundin
simpler patch from and ok schwartze@
Explicitly handle -l and -u combinations. From Fritjof Bornebusch; ok daniel@
Zap some stored values never read; From Fritjof Bornebusch; ok nicm@
fix compilation without DIAGNOSTIC

ok dlg@
replace select with equiv poll usage.

looks good deraadt@
tweaks and ok millert@
r1.45 of macppc install.md eliminated the verbiage exhorting users
to create an HFS partition with type AND name 'OpenBSD'. Worse, it
added checks to make sure the partition type and name were correct.

Sevan Janiyan pointed out that the example in INSTALL.macppc did
not show the 'n' command required to set the name of the OpenBSD
partition to 'OpenBSD'. Thus leaving HFS users possibly puzzled
over partitioning prerequisites.

Add required command to example.
Partial eqn(7) rewrite by kristaps@ in order to get operator precedence right.
Use printf(1) to prevent '-e' in daemon_flags from being fed as an
argument to the built-in echo.
Actually use built-in print like rc.subr already does.
s/lenght/length/ in comments
Add UTC support to %Z conversion in strptime().

Patch from jmates at ee dot washington dot edu.

ok otto@, millert@
Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@
Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@ (had same diff in tree)
Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@
Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@
obvious reallocarray
slightly more complicated reallocarray conversion.  always realloc* rather
than the silly test which realloc* does itself, and massage the inode
sizes more carefully
ok doug
convert to use of reallocarray()
ok doug
Userland reallocarray() audit.

Avoid potential integer overflow in the size argument of malloc() and
realloc() by using reallocarray() to avoid unchecked multiplication.

ok deraadt@
use reallocarray, and avoid this << 1 ugliness.
ok doug