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
- Host: GitHub
- URL: https://github.com/dsheets/ocaml-unix-sys-resource
- Owner: dsheets
- License: isc
- Created: 2016-04-22T16:13:28.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-04-29T12:49:25.000Z (about 7 years ago)
- Last Synced: 2025-04-05T22:32:20.507Z (about 1 year ago)
- Language: OCaml
- Size: 12.7 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES
- License: LICENSE
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/