Add comments for mkstemp in filefunc so I do not try to re-create tmpfstream again
authorChristian Herdtweck <christian.herdtweck@intra2net.com>
Tue, 15 Nov 2016 12:17:13 +0000 (13:17 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Tue, 15 Nov 2016 16:06:00 +0000 (17:06 +0100)
src/filefunc.cpp
src/filefunc.hxx

index e95d853..a760d3d 100644 (file)
@@ -804,6 +804,8 @@ bool recursive_delete(const std::string &path,
     @param Path template. The last six characters must be XXXXXX.
     @param error Will contain the error if the return value is false [optional]
     @return Name of new directory or empty string on error.
+
+    @seealso: classes in tmpfstream which offers funktionality based on mkstemp
 */
 std::string mkdtemp(const std::string &path_template, std::string *error)
 {
index 5fe6ccc..a122ff5 100644 (file)
@@ -192,6 +192,8 @@ bool recursive_delete(const std::string &path,
                       std::string *error=NULL);
 
 std::string mkdtemp(const std::string &path_template, std::string *error=NULL);
+// mkstemp: see tmpfstream
+
 bool mkdir(const std::string &path, const mode_t &mode=0700, std::string *error=NULL);
 bool rmdir(const std::string &path, std::string *error=NULL);