(originally on a different OS without mkstemp()), albeit somewhat
bashed and hacked into something that doesn't look too much like
the original any more. It should be upwardly compatable with
OpenBSD's mktemp(1) but does a couple of extra things.
I've taken OpenBSD's mktemp.1 man page and adapted it to suit.