@(#)mktemp.3 6.1 (Berkeley) 05/15/85
MKTEMP 3 ""
.AT 3
NAME
mktemp - make a unique file name
SYNOPSIS
char *mktemp(template) char *template; mkstemp(template) char *template;
DESCRIPTION
Mktemp replaces
template by a unique file name, and returns the
address of the template.
The template should look like a file name with six trailing
X's, which will be replaced with the
current process id and a unique letter.
Mkstemp makes the same replacement to the template but returns an open file descriptor
for the template file suitable for reading or writing.
Mkstemp avoids the potential race between the creation of the unique
file name and its being opened for use.
"SEE ALSO"
getpid(2)