6 signature MLTON_RLIMIT =
10 val castFromSysWord: SysWord.word -> t
11 val castToSysWord: t -> SysWord.word
18 val coreFileSize: t (* CORE max core file size *)
19 val cpuTime: t (* CPU CPU time in seconds *)
20 val dataSize: t (* DATA max data size *)
21 val fileSize: t (* FSIZE Maximum filesize *)
22 val numFiles: t (* NOFILE max number of open files *)
23 val lockedInMemorySize: t (* MEMLOCK max locked address space *)
24 val numProcesses: t (* NPROC max number of processes *)
25 val residentSetSize: t (* RSS max resident set size *)
26 val stackSize: t (* STACK max stack size *)
27 val virtualMemorySize: t (* AS virtual memory limit *)
29 val get: t -> {hard: rlim, soft: rlim}
30 val set: t * {hard: rlim, soft: rlim} -> unit
34 `MLton.Rlimit` provides a wrapper around the C `getrlimit` and
35 `setrlimit` functions.
39 the type of resource limits.
43 indicates that a resource is unlimited.
47 the types of resources that can be inspected and modified.
51 returns the current hard and soft limits for resource `r`. May raise
54 * `set (r, {hard, soft})`
56 sets the hard and soft limits for resource `r`. May raise