package unix-errno

  1. Overview
  2. Docs
Unix errno types, maps, and support

Install

Dune Dependency

Authors

Maintainers

Sources

unix-errno-0.6.1.tbz
sha256=8d9aad1f050a4df7e3b8e3f68dd28a411b443812b272585f7a23cef7a8448f87
sha512=16703e08e8be7e62eb897cbdb62e35c8df0397371dfba12ab87cf211a2925ecdb36f81bb43de77956b09d845cfd00c37043161472ed6a36f1eb77b21259d2083

README.md.html

ocaml-unix-errno

ocaml-unix-errno provides an errno variant similar to Unix.error but including POSIX 2008, Linux, OS X, and FreeBSD constructors. A macro definition type, defns is also provided in order to transport a specific errno-integer map as is the case with FUSE or 9p2000.u. The types and their functions reside in Errno and are independent of any Unix bindings. This makes the library's types usable from MirageOS on top of Xen. Errno_unix provides maps to and from Unix.error, the present host's errno map, an errno exception Error, and higher-order errno checking functions.

The executable errno-map will output a tab-delimited map from errno macro name to integer. This map can then be read back using the function Errno.defns_of_string.

OCaml

Innovation. Community. Security.