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 using System.Runtime.InteropServices; 7 8 internal static partial class Interop 9 { 10 internal static partial class Sys 11 { 12 internal static int DEFAULT_PC_NAME_MAX = 255; 13 14 internal enum PathConfName : int 15 { 16 PC_LINK_MAX = 1, 17 PC_MAX_CANON = 2, 18 PC_MAX_INPUT = 3, 19 PC_NAME_MAX = 4, 20 PC_PATH_MAX = 5, 21 PC_PIPE_BUF = 6, 22 PC_CHOWN_RESTRICTED = 7, 23 PC_NO_TRUNC = 8, 24 PC_VDISABLE = 9, 25 } 26 27 [DllImport(Libraries.SystemNative, EntryPoint = "SystemNative_PathConf", SetLastError = true)] PathConf(string path, PathConfName name)28 private static extern int PathConf(string path, PathConfName name); 29 } 30 } 31