1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using System; 6 7 internal static partial class Interop 8 { 9 internal static partial class Sys 10 { 11 [Flags] 12 internal enum Permissions 13 { 14 Mask = S_IRWXU | S_IRWXG | S_IRWXO, 15 16 S_IRWXU = S_IRUSR | S_IWUSR | S_IXUSR, 17 S_IRUSR = 0x100, 18 S_IWUSR = 0x80, 19 S_IXUSR = 0x40, 20 21 S_IRWXG = S_IRGRP | S_IWGRP | S_IXGRP, 22 S_IRGRP = 0x20, 23 S_IWGRP = 0x10, 24 S_IXGRP = 0x8, 25 26 S_IRWXO = S_IROTH | S_IWOTH | S_IXOTH, 27 S_IROTH = 0x4, 28 S_IWOTH = 0x2, 29 S_IXOTH = 0x1, 30 } 31 } 32 } 33