diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-08 16:42:01 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-08 16:42:01 +0000 |
commit | 1cce797d32aa465c054fc4a313d8c330c89bd862 (patch) | |
tree | fd5deb37366d1dbb249abe24d6bcfdcb3f777853 /include/llvm/Support/FileSystem.h | |
parent | a2030eedf1094ef8508ca90341c5a7ec8f638308 (diff) | |
download | external_llvm-1cce797d32aa465c054fc4a313d8c330c89bd862.zip external_llvm-1cce797d32aa465c054fc4a313d8c330c89bd862.tar.gz external_llvm-1cce797d32aa465c054fc4a313d8c330c89bd862.tar.bz2 |
We now always create files with the correct permissions. Simplify the interface.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 194f5f5..7f6c8f5 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -118,11 +118,7 @@ enum perms { set_uid_on_exe = 04000, set_gid_on_exe = 02000, sticky_bit = 01000, - perms_mask = all_all | set_uid_on_exe | set_gid_on_exe | sticky_bit, - perms_not_known = 0xFFFF, - add_perms = 0x1000, - remove_perms = 0x2000, - symlink_perms = 0x4000 + perms_not_known = 0xFFFF }; // Helper functions so that you can use & and | to manipulate perms bits: @@ -522,13 +518,6 @@ error_code is_symlink(const Twine &path, bool &result); /// platform specific error_code. error_code status(const Twine &path, file_status &result); -/// @brief Modifies permission bits on a file -/// -/// @param path Input path. -/// @returns errc::success if permissions have been changed, otherwise a -/// platform specific error_code. -error_code permissions(const Twine &path, perms prms); - error_code setLastModificationAndAccessTime(int FD, TimeValue Time); /// @brief Is status available? |