]> granicus.if.org Git - llvm/commit
[Support] Add fs::getUmask() function and change fs::setPermissions
authorAlex Brachet <alexbrachetmialot@gmail.com>
Fri, 28 Jun 2019 03:21:00 +0000 (03:21 +0000)
committerAlex Brachet <alexbrachetmialot@gmail.com>
Fri, 28 Jun 2019 03:21:00 +0000 (03:21 +0000)
commit4a8cbaa1de65e0f4ccd966ee8a5a877721ada0d1
tree61d8e3916c2f43559e960494b5e054fe1018dc3e
parent8a35ae4e3b32fc0e9465042caa270ead1c911ad4
[Support] Add fs::getUmask() function and change fs::setPermissions

Summary: This patch changes fs::setPermissions to optionally set permissions while respecting the umask. It also adds the function fs::getUmask() which returns the current umask.

Reviewers: jhenderson, rupprecht, aprantl, lhames

Reviewed By: jhenderson, rupprecht

Subscribers: sanaanajjar231288, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D63583

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364621 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/FileSystem.h
lib/Support/Unix/Path.inc
lib/Support/Windows/Path.inc
unittests/Support/Path.cpp