Import Upstream version 20180207
[hcoop/debian/mlton.git] / runtime / basis / MLton / Rlimit / rlimit-consts.c
1 #include "platform.h"
2
3 #if (defined (RLIMIT_AS))
4 const C_Int_t MLton_Rlimit_AS = RLIMIT_AS;
5 #elif (defined (RLIMIT_DATA))
6 const C_Int_t MLton_Rlimit_AS = RLIMIT_DATA;
7 #else
8 #error MLton_Rlimit_AS not defined
9 #endif
10 const C_Int_t MLton_Rlimit_CORE = RLIMIT_CORE;
11 const C_Int_t MLton_Rlimit_CPU = RLIMIT_CPU;
12 const C_Int_t MLton_Rlimit_DATA = RLIMIT_DATA;
13 const C_Int_t MLton_Rlimit_FSIZE = RLIMIT_FSIZE;
14 /* NOT STANDARD */
15 #if (defined (RLIMIT_MEMLOCK))
16 const C_Int_t MLton_Rlimit_MEMLOCK = RLIMIT_MEMLOCK;
17 #else
18 const C_Int_t MLton_Rlimit_MEMLOCK = -1;
19 #endif
20 /* */
21 const C_Int_t MLton_Rlimit_NOFILE = RLIMIT_NOFILE;
22 /* NOT STANDARD */
23 #if (defined (RLIMIT_NPROC))
24 const C_Int_t MLton_Rlimit_NPROC = RLIMIT_NPROC;
25 #else
26 const C_Int_t MLton_Rlimit_NPROC = -1;
27 #endif
28 #if (defined (RLIMIT_RSS))
29 const C_Int_t MLton_Rlimit_RSS = RLIMIT_RSS;
30 #else
31 const C_Int_t MLton_Rlimit_RSS = -1;
32 #endif
33 /* */
34 const C_Int_t MLton_Rlimit_STACK = RLIMIT_STACK;
35 const C_RLim_t MLton_Rlimit_INFINITY = RLIM_INFINITY;