File: src\libraries\Common\src\Interop\Unix\System.Native\Interop.OpenFlags.cs
Web Access
Project: src\src\coreclr\System.Private.CoreLib\System.Private.CoreLib.csproj (System.Private.CoreLib)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
 
using System;
 
internal static partial class Interop
{
    internal static partial class Sys
    {
        [Flags]
        internal enum OpenFlags
        {
            // Access modes (mutually exclusive)
            O_RDONLY  = 0x0000,
            O_WRONLY  = 0x0001,
            O_RDWR    = 0x0002,
 
            // Flags (combinable)
            O_CLOEXEC  = 0x0010,
            O_CREAT    = 0x0020,
            O_EXCL     = 0x0040,
            O_TRUNC    = 0x0080,
            O_SYNC     = 0x0100,
            O_NOFOLLOW = 0x0200,
        }
    }
}