An open API service indexing awesome lists of open source software.

https://github.com/dsheets/ocaml-unix-sys-resource

Host-dependent UNIX sys/resource.h access
https://github.com/dsheets/ocaml-unix-sys-resource

Last synced: 9 months ago
JSON representation

Host-dependent UNIX sys/resource.h access

Awesome Lists containing this project

README

          

ocaml-unix-sys-resource
=======================

[ocaml-unix-sys-resource](https://github.com/dsheets/ocaml-unix-sys-resource)
provides access to the features exposed in
[`sys/resource.h`][sys_resource.h] in a way that is not tied to the
implementation on the host system.

Two findlib packages are provided, `unix-sys-resource` and
`unix-sys-resource.unix`. The base package provides types but the
`unix-sys-resource.unix` package is necessary to access the bindings.

### unix-sys-resource
The [`Sys_resource`][sys_resource] module provides types and functions
for describing and working with rlimit resources and limits.

### unix-sys-resource.unix
The [`Sys_resource_unix`][sys_resource_unix] module provides bindings to
functions that use the types in `Sys_resource`.

Currently, `getrlimit` and `setrlimit` and their corresponding flags are
bound.

[sys_resource.h]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_resource.h.html
[sys_resource]: https://github.com/dsheets/ocaml-unix-sys-resource/blob/master/lib/sys_resource.mli
[sys_resource_host]: https://github.com/dsheets/ocaml-unix-sys-resource/blob/master/lib/sys_resource_host.mli
[sys_resource_unix]: https://github.com/dsheets/ocaml-unix-sys-resource/blob/master/unix/sys_resource_unix.mli
[lwt]: http://ocsigen.org/lwt/