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