1 /*
2  * Target definitions of RLIMIT_* constants. These may be overridden by an
3  * architecture specific header if needed.
4  */
5 
6 #ifndef GENERIC_TARGET_RESOURCE_H
7 #define GENERIC_TARGET_RESOURCE_H
8 
9 struct target_rlimit {
10     abi_ulong rlim_cur;
11     abi_ulong rlim_max;
12 };
13 
14 struct target_rlimit64 {
15     abi_ullong rlim_cur;
16     abi_ullong rlim_max;
17 };
18 
19 #define TARGET_RLIM_INFINITY    ((abi_ulong)-1)
20 
21 #define TARGET_RLIMIT_CPU               0
22 #define TARGET_RLIMIT_FSIZE             1
23 #define TARGET_RLIMIT_DATA              2
24 #define TARGET_RLIMIT_STACK             3
25 #define TARGET_RLIMIT_CORE              4
26 #define TARGET_RLIMIT_RSS               5
27 #define TARGET_RLIMIT_NPROC             6
28 #define TARGET_RLIMIT_NOFILE            7
29 #define TARGET_RLIMIT_MEMLOCK           8
30 #define TARGET_RLIMIT_AS                9
31 #define TARGET_RLIMIT_LOCKS             10
32 #define TARGET_RLIMIT_SIGPENDING        11
33 #define TARGET_RLIMIT_MSGQUEUE          12
34 #define TARGET_RLIMIT_NICE              13
35 #define TARGET_RLIMIT_RTPRIO            14
36 #define TARGET_RLIMIT_RTTIME            15
37 
38 #endif
39