]> git.proxmox.com Git - mirror_qemu.git/blame - linux-user/generic/target_resource.h
Merge tag 'for-upstream' of https://gitlab.com/bonzini/qemu into staging
[mirror_qemu.git] / linux-user / generic / target_resource.h
CommitLineData
b13e49bc
SB
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
9struct target_rlimit {
10 abi_ulong rlim_cur;
11 abi_ulong rlim_max;
12};
13
14struct target_rlimit64 {
15 uint64_t rlim_cur;
16 uint64_t 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
244fd083 36#define TARGET_RLIMIT_RTTIME 15
b13e49bc
SB
37
38#endif