Implement filesystem::perm_options specified in NB comments.

The NB comments for filesystem changed permissions and added
a new enum `perm_options` which control how the permissions
are applied.

This implements than NB resolution

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@328476 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Fiselier
2018-03-26 06:23:55 +00:00
parent f1471a367b
commit f2c93738b8
6 changed files with 119 additions and 60 deletions

View File

@@ -59,9 +59,6 @@ int main() {
E::set_gid == ME(02000) &&
E::sticky_bit == ME(01000) &&
E::mask == ME(07777) &&
E::unknown == ME(0xFFFF) &&
E::add_perms == ME(0x10000) &&
E::remove_perms == ME(0x20000) &&
E::symlink_nofollow == ME(0x40000),
E::unknown == ME(0xFFFF),
"Expected enumeration values do not match");
}