From a1d00de1408b36b6b68d18d1c1e1fba7df1add49 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Mon, 2 Nov 2020 16:56:35 +0300 Subject: Set executable bit for ad hoc buildscript rule executable target on POSIX --- libbuild2/filesystem.hxx | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'libbuild2/filesystem.hxx') 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_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 -- cgit v1.1