More generally, the POSIX specification does not say anything about file modes, so the application should make sure its umask is set appropriately before calling mkstemp(). ###>More generally, the POSIX specification does not say anything about file modes, so the application should make sure its umask is set appropriately before calling mkstemp().