00001 // This is core/vul/vul_temp_filename.h 00002 #ifndef vul_temp_filename_h_ 00003 #define vul_temp_filename_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \brief Generates a temporary filename. 00010 // \author Amitha Perera <perera@cs.rpi.edu> 00011 // 00012 // This is to avoid (GNU) linker warnings (and errors!) about calls to 00013 // tmpnam being unsafe. 00014 00015 #include <vcl_string.h> 00016 00017 //: Generates a temporary filename. 00018 // There is a possible race condition, in that some other process may 00019 // open a the temporary file between the time tmpnam creates (and 00020 // tests) it, and the time the calling program opens it. 00021 vcl_string vul_temp_filename( ); 00022 00023 #endif // vul_temp_filename_h_