summaryrefslogtreecommitdiff
path: root/src/mscorlib/corefx/Interop/Unix/System.Native/Interop.OpenFlags.cs
blob: f9e54c3cbcf936592ab8f795f96109e9b9504a93 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

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,
        }
    }
}