package openbsd

  1. Overview
  2. Docs

Module Openbsd.PledgeSource

Wrapper around pledge(2) syscall on OpenBSD.

see https://man.openbsd.org/pledge.2 for details.

Sourceval supported : bool

boolean indicating if pledge(2) is supported.

Sourceval promises : string -> unit

promises calls pledge(value, NULL).

  • raises Failure

    on others errors, with errno in string.

Sourceval execpromises : string -> unit

execpromises calls pledge(NULL, value).

  • raises Failure

    on others errors, with errno in string.

OCaml

Innovation. Community. Security.