Functions
vul_temp_filename.h File Reference

Generates a temporary filename. More...

#include <string>

Go to the source code of this file.

Functions

std::string vul_temp_filename ()
 Generates a temporary filename. More...
 

Detailed Description

Generates a temporary filename.

Author
Amitha Perera perer.nosp@m.a@cs.nosp@m..rpi..nosp@m.edu

This is to avoid (GNU) linker warnings (and errors!) about calls to tmpnam being unsafe.

Definition in file vul_temp_filename.h.

Function Documentation

◆ vul_temp_filename()

std::string vul_temp_filename ( )

Generates a temporary filename.

There is a possible race condition, in that some other process may open a the temporary file between the time tmpnam creates (and tests) it, and the time the calling program opens it.

Definition at line 69 of file vul_temp_filename.cxx.