public static Int32 FromConfstrName (ConfstrName value)
		{
			Int32 rval;
			if (FromConfstrName (value, out rval) == -1)
				ThrowArgumentException (value);
			return rval;
		}
        public static Int32 FromConfstrName(ConfstrName value)
        {
            Int32 rval;

            if (FromConfstrName(value, out rval) == -1)
            {
                ThrowArgumentException(value);
            }
            return(rval);
        }
예제 #3
0
        public static string GetConfigurationString(ConfstrName name)
        {
            ulong num = Syscall.confstr(name, null, (ulong)0);

            if (num == (long)-1)
            {
                UnixMarshal.ThrowExceptionForLastError();
            }
            if (num == 0)
            {
                return(string.Empty);
            }
            StringBuilder stringBuilder = new StringBuilder((int)num + 1);

            num = Syscall.confstr(name, stringBuilder, num);
            if (num == (long)-1)
            {
                UnixMarshal.ThrowExceptionForLastError();
            }
            return(stringBuilder.ToString());
        }
예제 #4
0
		public static bool TryFromConfstrName (ConfstrName value, out Int32 rval)
		{
			return FromConfstrName (value, out rval) == 0;
		}
예제 #5
0
		private static extern int FromConfstrName (ConfstrName value, out Int32 rval);
예제 #6
0
		public static bool TryToConfstrName (Int32 value, out ConfstrName rval)
		{
			return ToConfstrName (value, out rval) == 0;
		}
예제 #7
0
		private static extern int ToConfstrName (Int32 value, out ConfstrName rval);
 public static bool TryToConfstrName(Int32 value, out ConfstrName rval)
 {
     return(ToConfstrName(value, out rval) == 0);
 }
예제 #9
0
 public static ulong confstr(ConfstrName name, [Out] StringBuilder buf, ulong len)
 {
     throw new System.NotImplementedException();
 }
예제 #10
0
 public static bool TryFromConfstrName(ConfstrName value, out Int32 rval)
 {
     return(FromConfstrName(value, out rval) == 0);
 }
예제 #11
0
 private static extern int FromConfstrName(ConfstrName value, out Int32 rval);
		private static int ToConfstrName (Int32 value, out ConfstrName rval)
		{
			throw new System.NotImplementedException();
		}
		private static int FromConfstrName (ConfstrName value, out Int32 rval)
		{
			throw new System.NotImplementedException();
		}
예제 #14
0
		public static ulong confstr (ConfstrName name, [Out] StringBuilder buf, ulong len)
		{
			throw new System.NotImplementedException();
		}
예제 #15
0
 private static int FromConfstrName(ConfstrName value, out Int32 rval)
 {
     throw new System.NotImplementedException();
 }
예제 #16
0
 private static extern int ToConfstrName(Int32 value, out ConfstrName rval);
예제 #17
0
 private static int ToConfstrName(Int32 value, out ConfstrName rval)
 {
     throw new System.NotImplementedException();
 }
예제 #18
0
		public static extern ulong confstr (ConfstrName name, [Out] StringBuilder buf, ulong len);