public static long GetConfigurationValue (SysConf name)
		{
			long r = Syscall.sysconf (name);
			if (r == -1 && Syscall.GetLastError() == Error.EINVAL)
				UnixMarshal.ThrowExceptionForLastError ();
			return r;
		}
Ejemplo n.º 2
0
 public xmlDataConfig()
 {
     DebugMode             = true;
     SystemConfig          = new SysConf();
     WatchdogConfig        = new WatchDogConf();
     NetworkWatchDogConfig = new NetWatchDogCof();
     NetworkConfig         = new NetConf();
     LogServerConfig       = new LogServerConf();
 }
Ejemplo n.º 3
0
		public static extern long sysconf (SysConf name);
Ejemplo n.º 4
0
		public static bool TryToSysConf (Int32 value, out SysConf rval)
		{
			return ToSysConf (value, out rval) == 0;
		}
Ejemplo n.º 5
0
		private static extern int ToSysConf (Int32 value, out SysConf rval);
Ejemplo n.º 6
0
		public static Int32 FromSysConf (SysConf value)
		{
			Int32 rval;
			if (FromSysConf (value, out rval) == -1)
				ThrowArgumentException (value);
			return rval;
		}
Ejemplo n.º 7
0
		public static bool TryFromSysConf (SysConf value, out Int32 rval)
		{
			return FromSysConf (value, out rval) == 0;
		}
Ejemplo n.º 8
0
		private static extern int FromSysConf (SysConf value, out Int32 rval);
Ejemplo n.º 9
0
 public static extern long sysconf(SysConf parameter);