package uwt

  1. Overview
  2. Docs

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 =
  1. | Windows
  2. | Android
  3. | Linux
  4. | Mac
  5. | Freebsd
  6. | Openbsd
  7. | Cygwin
  8. | Netbsd
  9. | Sun
  10. | Hp
  11. | Dragonfly
  12. | Aix
  13. | Minix
  14. | KFreebsd
  15. | Bsd
  16. | Unknown
val os : os

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

type win_version = {
  1. major_version : int;
  2. minor_version : int;
  3. build_number : int;
  4. platform_id : int;
  5. csd_version : string;
}
val win_version : unit -> win_version uv_result

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

OCaml

Innovation. Community. Security.