package uwt

  1. Overview
  2. Docs
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.3.tar.gz
sha256=9e653a9fc7a13c5435a58780ddf02ff15c8ff92f63f6ff4406b1d312e3060807
md5=549517d3e9bcf5533097e4c83f891e2c

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.