ERRORS
The tmpfile function may fail and set the global variable errno for any of the errors specified for the library functions fdopen(3) or mkstemp(3). The tmpnam function may fail and set errno for any of the errors specified for the library function mktemp(3).
The tempnam function may fail and set errno for any of the errors specified for the library functions malloc(3) or mktemp(3).
SECURITY CONSIDERATIONS
The tmpnam and tempnam functions are susceptible to a race condition occurring between the selection of the file name and the creation of the file, which allows malicious users to potentially overwrite arbitrary files in the system, depending on the level of privilege of the running program. Additionally, there is no means by which file permissions may be specified. It is strongly suggested that mkstemp(3) be used in place of these functions. (See the FSA.)
SEE ALSO
mkstemp(3), mktemp(3)
.Rs "The FreeBSD Security Architecture"
.Re (See "/usr/share/doc/{to be determined}".)
STANDARDS