core
vul
vul_temp_filename.h
Go to the documentation of this file.
1
// This is core/vul/vul_temp_filename.h
2
#ifndef vul_temp_filename_h_
3
#define vul_temp_filename_h_
4
//:
5
// \file
6
// \brief Generates a temporary filename.
7
// \author Amitha Perera <perera@cs.rpi.edu>
8
//
9
// This is to avoid (GNU) linker warnings (and errors!) about calls to
10
// tmpnam being unsafe.
11
12
#include <string>
13
#ifdef _MSC_VER
14
# include <vcl_msvc_warnings.h>
15
#endif
16
17
//: Generates a temporary filename.
18
// There is a possible race condition, in that some other process may
19
// open a the temporary file between the time tmpnam creates (and
20
// tests) it, and the time the calling program opens it.
21
std::string
vul_temp_filename
( );
22
23
#endif // vul_temp_filename_h_
vul_temp_filename
std::string vul_temp_filename()
Generates a temporary filename.
Definition:
vul_temp_filename.cxx:69
Generated by
1.8.15