package core_unix

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

Resource limits

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

    soft limit

    *)
  2. max : limit;
    (*

    hard limit (ceiling for soft limit)

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

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

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

Innovation. Community. Security.