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 OpenFlags 13 { 14 // Access modes (mutually exclusive) 15 O_RDONLY = 0x0000, 16 O_WRONLY = 0x0001, 17 O_RDWR = 0x0002, 18 19 // Flags (combinable) 20 O_CLOEXEC = 0x0010, 21 O_CREAT = 0x0020, 22 O_EXCL = 0x0040, 23 O_TRUNC = 0x0080, 24 O_SYNC = 0x0100, 25 } 26 } 27 } 28