public static long GetConfigurationValue (string path, PathConf name) { Syscall.SetLastError ((Error) 0); long r = Syscall.pathconf (path, name); if (r == -1 && Syscall.GetLastError() != (Error) 0) UnixMarshal.ThrowExceptionForLastError (); return r; }
public long GetConfigurationValue (PathConf name) { AssertNotDisposed (); Syscall.SetLastError ((Error) 0); long r = Syscall.fpathconf (fileDescriptor, name); if (r == -1 && Syscall.GetLastError() != (Error) 0) UnixMarshal.ThrowExceptionForLastError (); return r; }
public static extern long fpathconf (int filedes, PathConf name);
public static extern long pathconf (string path, PathConf name);
public static bool TryToPathConf (Int32 value, out PathConf rval) { return ToPathConf (value, out rval) == 0; }
private static extern int ToPathConf (Int32 value, out PathConf rval);
public static Int32 FromPathConf (PathConf value) { Int32 rval; if (FromPathConf (value, out rval) == -1) ThrowArgumentException (value); return rval; }
public static bool TryFromPathConf (PathConf value, out Int32 rval) { return FromPathConf (value, out rval) == 0; }
private static extern int FromPathConf (PathConf value, out Int32 rval);