From cd9a4ea692ba87aa03a80489bf03736e713722c7 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 24 Feb 2015 08:54:03 +0200 Subject: Sort out diagnostics for mkdir --- build/mkdir | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 build/mkdir (limited to 'build/mkdir') diff --git a/build/mkdir b/build/mkdir new file mode 100644 index 0000000..62e824b --- /dev/null +++ b/build/mkdir @@ -0,0 +1,22 @@ +// file : build/mkdir -*- C++ -*- +// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC +// license : MIT; see accompanying LICENSE file + +#ifndef BUILD_MKDIR +#define BUILD_MKDIR + +#include // mode_t + +#include + +namespace build +{ + // Note that you should probably use the default mode 0777 and let + // the umask mechanism adjust it to the user's preferences. Errors + // are reported by throwing std::system_error. + // + void + mkdir (const path&, mode_t = 0777); +} + +#endif // BUILD_MKDIR -- cgit v1.1