1
2
3
4
5
6
7
8
9
10
private string tmp_unique = sprintf("%d.%d", time(), getpid());
private int tmp_sequence = 0; // This variable must be process global.
constant contenttypes = ({ });
string tmp_filename()
{
return sprintf("../var/search/search.tmp.%s.%d", tmp_unique, tmp_sequence++);
}