ocaml-posix icon indicating copy to clipboard operation
ocaml-posix copied to clipboard

Bindings to the various POSIX APIs

ocaml-posix

GitHub GitHub Workflow Status GitHub release (latest by date)

Ocaml-posix provides various bindings to POSIX APIS.

Each package consists of a low-level APIs to be used with ocaml-ctypes and high-level APIs that can be used in OCaml projects.

The purpose of this repository is to aggregate all existing POSIX bindings into a single, consistent umbrella.

Currently, it contains:

  • posix-types, replacing and extending ocaml-posix-types as well as PosixTypes from ocaml-ctypes
  • posix-posix-socket and posix-socket-unix, replacing and extending sys-socket
  • posix-time2, replacing and extending posix-time and replacing unix-time and posix-clock
  • posix-getopt, replacing [posix-getopt]( https://github.com/toots/posix-getopt)
  • posix-uname
  • posix-signal

API

The API documentation can be consulted here

How to build

dune install

How to install

Via opam:

opam install .

Via dune:

dune install

TODO