package openbsd
All checked builds passInstall
dune-project
Dependency
Authors
Maintainers
Sources
md5=7964ca160a505cee20415d69ccfe17b2
sha512=7cfe1bdb6d026d42876d01725474a9832da34f00da4b3bdfe74858f2e7cd5f9473db89d96dbf259166c55eb1d084a188d227be4c93b3b33aef62a38a5fba6784
Description
Provides bindings around pledge(2) and unveil(2) syscalls.
README
Openbsd package for OCaml
The Openbsd package provides Pledge and Unveil modules which wraps pledge(2) and unveil(2) syscalls to ocaml.
The interface is fully documented in the interface file lib/openbsd.mli.
Usage
On portable project, it is recommanded to use Pledge.supported and Unveil.supported constants to conditionally calls the wrappers.
Calling them on unsupported system will raise an Failure exception.
Examples
let open Openbsd in
if Pledge.supported then
Pledge.promises "stdio rpath"let open Openbsd in
if Unveil.supported then (
Unveil.add "./lib" "r";
Unveil.add "./logs" "rwc";
Unveil.lock ())
Dev Dependencies (1)
-
odoc
with-doc
Optional Dependencies
None
Used by
None
Conflicts
None
Build status
Results of building openbsd with each compiler on check.ci.ocaml.org, run of against opam-repository 8a77e58. All results for this package.
Each result links to its build log. To keep crawlers from overloading the site, build logs require a GitHub sign-in (see ocurrent/opam-health-check). On your first log, GitHub asks you to “Authorize opam-health-check”, the OCurrent app that runs these checks; it sees only your public profile, not your repositories. The sign-in lasts 30 days.
| Version | OCaml 4.11 | OCaml 4.14 | OCaml 5.2 | OCaml 5.4 | OCaml 5.5 |
|---|---|---|---|---|---|
| 1.0 (this version) | good | good | good | good | good |
- good Package successfully built
- partial One of the dependencies failed to build
- bad Package failed to build
- n/a Package is not available in this environment
- internal Internal failure