Module Unix.RLimit

module RLimit: sig .. end

Resource limits



type limit = 
| Limit of int64
| Infinity
type t = {
   cur : limit;
   max : limit;
}
type 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
val nice : resource Core_kernel.Std.Or_error.t
val get : resource -> t
val set : resource -> t -> unit
val limit_of_sexp : Sexplib.Sexp.t -> limit
val sexp_of_limit : limit -> Sexplib.Sexp.t
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val resource_of_sexp : Sexplib.Sexp.t -> resource
val sexp_of_resource : resource -> Sexplib.Sexp.t