Creates a unique file namechar *sm_tmpnam(void)
sm_tmpnamis an extension of the ANSI function
tmpnam(); it returns a name that is unique among other file names.
In Windows, the
TMPenvironment variable will be used to set the temporary file's directory. If
TMPis not set but if the environment variable
TEMPis set, it will be used. Otherwise, the
\(root directory) on the current disk will be used.
In Linux, if the
TMPDIRenvironment variable is set, it will be used as the trmporary file's directory. In UNIX and when
TMPDIRis not set in Linux,
stdio.hfile will be used. If
P_tmpdiris not defined,
/tmpwill be used.
The default report service unload handler uses this function to generate a temporary file name on the client; it then moves a server-generated metafile to that file name. See "Handling Client Output" on page 9-26 in the Reports Manual for this code.