mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-06 06:37:59 +00:00
rlimits: add rlimit64 structure
Add a platform independent structure for resource limits to use with a new prlimit64 syscall. This structure is the same which uses glibc for 64-bit limits. Also add corresponding infinity which is a 64-bit full of bit-ones. Signed-off-by: Jiri Slaby <jslaby@suse.cz>
This commit is contained in:
parent
86f162f4c7
commit
6a1d5e2c85
1 changed files with 7 additions and 0 deletions
|
@ -43,6 +43,13 @@ struct rlimit {
|
||||||
unsigned long rlim_max;
|
unsigned long rlim_max;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#define RLIM64_INFINITY (~0ULL)
|
||||||
|
|
||||||
|
struct rlimit64 {
|
||||||
|
__u64 rlim_cur;
|
||||||
|
__u64 rlim_max;
|
||||||
|
};
|
||||||
|
|
||||||
#define PRIO_MIN (-20)
|
#define PRIO_MIN (-20)
|
||||||
#define PRIO_MAX 20
|
#define PRIO_MAX 20
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue