package uwt

  1. Overview
  2. Docs
libuv bindings

Install

dune-project
 Dependency

Authors

Maintainers

Sources

uwt-0.3.0.tar.gz
sha256=e924c3f80906c44871c62870d9472956ff043a14a4c17e886302bf47e6ca71e1
md5=f611099ba6eae6ea3f6b46a21e30effc

doc/uwt.base/Uwt_base/Sys_info/index.html

Module Uwt_base.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.