Oberon || Library || Module Index || Search Engine || Definition || Module
(* type of resource *)
CONST cpu = 0; (* maximum amount of cpu time *)
CONST fsize = 1; (* largest size of a single file that may be created*)
CONST data = 2; (* maximum size of the data segment *)
CONST stack = 3; (* maximum size of the stack segment *)
CONST core = 4; (* maximal core file size *)
CONST nofile = 5; (* maximal number of open file descriptors *)
CONST vmem = 6; (* maximum mapped memory *)
TYPE Resource = INTEGER; (* cpu..vmem *)
TYPE Limit =
RECORD
current: INTEGER; (* current soft limit *)
max: INTEGER; (* hard limit *)
END;
CONST infinity = MAX(INTEGER);
PROCEDURE GetLimit(resource: Resource; VAR limit: Limit);
PROCEDURE SetLimit(resource: Resource; limit: Limit;
errors: RelatedEvents.Object) : BOOLEAN;
Oberon || Library || Module Index || Search Engine || Definition || Module