Module Uwt_base.Sys_info

module Sys_info: sig .. end

Information about your operating system.

The module was introduced in order to skip certain unit tests on some platforms. But it might be useful for other purpose, too.

type os = 
| Windows
| Android
| Linux
| Mac
| Freebsd
| Openbsd
| Cygwin
| Netbsd
| Sun
| Hp
| Dragonfly
| Aix
| Minix
| KFreebsd
| Bsd
| Unknown
val os : os

Uwt_base.Sys_info.os is determined at compile time (by the c compiler) and might differ from the later OS

type win_version = {
   major_version : int;
   minor_version : int;
   build_number : int;
   platform_id : int;
   csd_version : string;
}
val win_version : unit -> win_version Uwt_base.uv_result

Wrapper around RtlGetVersion. It will always return Error ENOSYS on non windows systems.