package core_unix

  1. Overview
  2. Docs
On This Page
  1. Resource limits
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Core_unix.RLimitSource

Resource limits

Sourcemodule Limit : sig ... end
Sourcetype limit = Limit.t =
  1. | Limit of int64
  2. | Infinity
Sourceval sexp_of_limit : limit -> Sexplib0.Sexp.t
Sourceval limit_of_sexp : Sexplib0.Sexp.t -> limit
Sourcetype t = {
  1. cur : limit;
    (*

    soft limit

    *)
  2. max : limit;
    (*

    hard limit (ceiling for soft limit)

    *)
}
include Sexplib0.Sexpable.S with type t := t
Sourceval t_of_sexp : Sexplib0.Sexp.t -> t
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourcetype resource
Sourceval sexp_of_resource : resource -> Sexplib0.Sexp.t
Sourceval resource_of_sexp : Sexplib0.Sexp.t -> resource
Sourceval core_file_size : resource
Sourceval cpu_seconds : resource
Sourceval data_segment : resource
Sourceval file_size : resource
Sourceval num_file_descriptors : resource
Sourceval stack : resource
Sourceval virtual_memory : resource Core.Or_error.t

See man pages for "getrlimit" and "setrlimit" for details.

Sourceval get : resource -> t
Sourceval set : resource -> t -> unit
OCaml

Innovation. Community. Security.