From 9513f841dc8a714cb3b8418cc7c57f5c6e2d2c36 Mon Sep 17 00:00:00 2001 From: Christian Herdtweck Date: Tue, 15 Nov 2016 13:17:13 +0100 Subject: [PATCH] Add comments for mkstemp in filefunc so I do not try to re-create tmpfstream again --- src/filefunc.cpp | 2 ++ src/filefunc.hxx | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/src/filefunc.cpp b/src/filefunc.cpp index e95d853..a760d3d 100644 --- a/src/filefunc.cpp +++ b/src/filefunc.cpp @@ -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) { diff --git a/src/filefunc.hxx b/src/filefunc.hxx index 5fe6ccc..a122ff5 100644 --- a/src/filefunc.hxx +++ b/src/filefunc.hxx @@ -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); -- 1.7.1