aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/filesystem.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2020-11-02 16:56:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2020-11-02 20:38:57 +0300
commita1d00de1408b36b6b68d18d1c1e1fba7df1add49 (patch)
treec6add78f6380f9325648be5698da10c311ed2e9b /libbuild2/filesystem.hxx
parent809123f03100ee9ed90d31424304c22ba28e842c (diff)
Set executable bit for ad hoc buildscript rule executable target on POSIX
Diffstat (limited to 'libbuild2/filesystem.hxx')
-rw-r--r--libbuild2/filesystem.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbuild2/filesystem.hxx b/libbuild2/filesystem.hxx
index 5169964..26544bc 100644
--- a/libbuild2/filesystem.hxx
+++ b/libbuild2/filesystem.hxx
@@ -179,6 +179,16 @@ namespace build2
LIBBUILD2_SYMEXPORT fs_status<rmdir_status>
rmdir_buildignore (context&,
const dir_path&, const path&, uint16_t verbosity = 1);
+
+ // Get/set a path permissions.
+ //
+ using permissions = butl::permissions;
+
+ LIBBUILD2_SYMEXPORT permissions
+ path_perms (const path&);
+
+ LIBBUILD2_SYMEXPORT void
+ path_perms (const path&, permissions);
}
#include <libbuild2/filesystem.ixx>