package openbsd

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Wrapper around pledge(2) syscall on OpenBSD.

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

val supported : bool

boolean indicating if pledge(2) is supported.

val promises : string -> unit

promises calls pledge(value, NULL).

  • raises Invalid_argument

    on EINVAL error.

  • raises Failure

    on others errors, with errno in string.

val execpromises : string -> unit

execpromises calls pledge(NULL, value).

  • raises Invalid_argument

    on EINVAL error.

  • raises Failure

    on others errors, with errno in string.

OCaml

Innovation. Community. Security.