The open flags param to mkostemps() should be "flags" not "oflags"
for consistency with the rest of the manual.