package uwt

  1. Overview
  2. Docs
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.0.2.tar.gz
sha256=1c4a49f4cffc017fff8a47563653f5a9ed4007bbd6705fd9737a211ff3d864e2
md5=25fbbf9b39c072f9667e6fdfba108556

doc/uwt.async/Uwt/Sys_info/index.html

Module Uwt.Sys_info

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.