int OEFileTempDescriptor(std::string &fname)
Returns a file descriptor to a temporary file opened exclusive
access for both reading and writing. The name of the file is
returned in the
fname argument string. The file name is
guaranteed not to race and collide with any other thread or process
on the system. It is the caller’s responsibility to close the file
descriptor and delete the file.