Beispiel #1
0
        public long GetConfigurationValue(PathconfName name)
        {
            long num = Syscall.pathconf(this.FullPath, name);

            if (num == (long)-1 && (int)Stdlib.GetLastError() != 0)
            {
                UnixMarshal.ThrowExceptionForLastError();
            }
            return(num);
        }
        public static Int32 FromPathconfName(PathconfName value)
        {
            Int32 rval;

            if (FromPathconfName(value, out rval) == -1)
            {
                ThrowArgumentException(value);
            }
            return(rval);
        }
Beispiel #3
0
        public long GetConfigurationValue(PathconfName name)
        {
            this.AssertNotDisposed();
            long num = Syscall.fpathconf(this.fileDescriptor, name);

            if (num == (long)-1 && (int)Stdlib.GetLastError() != 0)
            {
                UnixMarshal.ThrowExceptionForLastError();
            }
            return(num);
        }
		private static extern int ToPathconfName (Int32 value, out PathconfName rval);
		public static Int32 FromPathconfName (PathconfName value)
		{
			Int32 rval;
			if (FromPathconfName (value, out rval) == -1)
				ThrowArgumentException (value);
			return rval;
		}
		public static bool TryFromPathconfName (PathconfName value, out Int32 rval)
		{
			return FromPathconfName (value, out rval) == 0;
		}
		private static extern int FromPathconfName (PathconfName value, out Int32 rval);
 public static bool TryToPathconfName(Int32 value, out PathconfName rval)
 {
     return(ToPathconfName(value, out rval) == 0);
 }
 private static extern int ToPathconfName(Int32 value, out PathconfName rval);
Beispiel #10
0
 public static long pathconf(
     string path, PathconfName name, Errno defaultError)
 {
     throw new System.NotImplementedException();
 }
Beispiel #11
0
 private static int FromPathconfName(PathconfName value, out Int32 rval)
 {
     throw new System.NotImplementedException();
 }
 private static extern int FromPathconfName(PathconfName value, out Int32 rval);
		private static int ToPathconfName (Int32 value, out PathconfName rval)
		{
			throw new System.NotImplementedException();
		}
		private static int FromPathconfName (PathconfName value, out Int32 rval)
		{
			throw new System.NotImplementedException();
		}
		public static long pathconf (
		string path, PathconfName name, Errno defaultError)
		{
			throw new System.NotImplementedException();
		}
		public static long fpathconf (int filedes, PathconfName name, Errno defaultError)
		{
			throw new System.NotImplementedException();
		}
		public static bool TryToPathconfName (Int32 value, out PathconfName rval)
		{
			return ToPathconfName (value, out rval) == 0;
		}
Beispiel #18
0
		public static extern long pathconf (
		[MarshalAs (UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(FileNameMarshaler))]
		string path, PathconfName name, Errno defaultError);
 public static bool TryFromPathconfName(PathconfName value, out Int32 rval)
 {
     return(FromPathconfName(value, out rval) == 0);
 }
Beispiel #20
0
 public static long fpathconf(int filedes, PathconfName name, Errno defaultError)
 {
     throw new System.NotImplementedException();
 }
Beispiel #21
0
 private static int ToPathconfName(Int32 value, out PathconfName rval)
 {
     throw new System.NotImplementedException();
 }
Beispiel #22
0
		public static extern long fpathconf (int filedes, PathconfName name, Errno defaultError);