OpamSysPollThis module polls various aspects of the host, to define the arch, os, etc. variables
val arch : OpamStateTypes.gt_variables -> string optionFunctions to get host specification. It checks if variables value is defined in the environment map before polling.
val os : OpamStateTypes.gt_variables -> string optionval os_distribution : OpamStateTypes.gt_variables -> string optionval os_version : OpamStateTypes.gt_variables -> string optionval os_family : OpamStateTypes.gt_variables -> string optionval variables :
(OpamVariable.t * OpamTypes.variable_contents option Stdlib.Lazy.t) listThe function used internally to get our canonical names for architectures (returns its input lowercased if not a recognised arch). This is typically called on the output of uname -m
The function used internally to get our canonical names for OSes (returns its input lowercased if not a recognised OS). This is typically called on the output of uname -s
val to_string : OpamStateTypes.gt_variables -> stringReturns a string containing arch, os, os-distribution & os-version values, unknown if they are not available. env is used to determine host specification.