package unix-errno
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=044d962f1169a9357c7913966b58a07f095a670676b6fae0b85cdb6b11c03584
sha512=2c6c8d76bafe169b7921c53a3e734bc4fd0c91af13a2670d0ea1eda3f9f6d3237795b1d16b0a1c812209834f2f868ff13adfcc50afc0eb59ea3ea640547121cb
Description
unix-errno can be used with or without ctypes and OCaml's Unix module. Without ctypes and Unix, the basic types and functions are provided as well as Errno_host containing errno maps for popular operating systems. The errno-srcgen tool for generating OCaml source representing Errno.Host.t values will also be built. With ctypes and Unix, you'll also receive the errno-map tool for outputting the current host's errno map and the Errno_unix module containing an errno global variable checking function and Unix.error type converters.
README
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
.
Dependencies (6)
Dev Dependencies (1)
-
alcotest
with-test
Used by (15)
-
dlm
>= "0.3.3"
- osx-acl
-
osx-attr
>= "0.3.0"
- osx-membership
- osx-mount
- osx-xattr
-
posix-getopt
>= "2.0.0"
- posix-signal
- posix-socket-unix
- posix-time2
- posix-uname
- sys-socket-unix
-
unix-fcntl
= "0.3.2" | >= "0.3.4"
-
unix-sys-resource
= "0.1.1"
-
unix-sys-stat
>= "0.3.1" & < "0.5.0"
Conflicts
None