ad_tmpnam (public)

 ad_tmpnam [ template ]

Defined in packages/acs-tcl/tcl/utilities-procs.tcl

A stub function to replace the deprecated "ns_tmpnam", which uses the deprecated C-library function "tmpnam()". However, also ns_mktemp is not recommended any more due to a potential race condidtion between the name creation and the file open command.

Parameters:
template (optional)

Testcases:
No testcase defined.
Source code:
    if {$template eq ""} {
        set template [ns_config ns/parameters tmpdir]/oacs-XXXXXX
    }
    ns_mktemp $template
XQL Not present:
PostgreSQL, Oracle
Generic XQL file:
packages/acs-tcl/tcl/utilities-procs.xql

[ hide source ] | [ make this the default ]
Show another procedure: