libvhost-user: Declare uffdio_register early to make it C90 compliant
[qemu/ar7.git] / linux-user / generic / target_resource.h
blob539d8c46772e8ce04950e7788f4466e8cd83b568
1 /*
2 * Target definitions of RLIMIT_* constants. These may be overridden by an
3 * architecture specific header if needed.
4 */
6 #ifndef GENERIC_TARGET_RESOURCE_H
7 #define GENERIC_TARGET_RESOURCE_H
9 struct target_rlimit {
10 abi_ulong rlim_cur;
11 abi_ulong rlim_max;
14 struct target_rlimit64 {
15 uint64_t rlim_cur;
16 uint64_t rlim_max;
19 #define TARGET_RLIM_INFINITY ((abi_ulong)-1)
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
38 #endif