Class NetBsdSysctlUtil
java.lang.Object
oshi.util.common.platform.unix.netbsd.NetBsdSysctlUtil
Provides access to sysctl calls on NetBSD via command-line execution. This implementation does not require JNA native
library support.
-
Method Summary
-
Method Details
-
sysctl
Executes a sysctl call with an int result- Parameters:
name- name of the sysctldef- default int value- Returns:
- The int result of the call if successful; the default otherwise
-
sysctl
Executes a sysctl call with a long result- Parameters:
name- name of the sysctldef- default long value- Returns:
- The long result of the call if successful; the default otherwise
-
sysctl
-