34067: safe tempfile creation, part 1
34068: create tempfiles without forking, and safe temp directory creation
34070: fix starting position for memset() from 34005.