aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/resource.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-03-24 12:06:58 -0400
committerJiri Slaby <jirislaby@gmail.com>2010-07-16 03:48:47 -0400
commit6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c (patch)
treee8c4324d61b7ce6eab3779f0058dae221be0ea42 /include/linux/resource.h
parent86f162f4c75ceb6daf43165469eeeca1bc3d4639 (diff)
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>
Diffstat (limited to 'include/linux/resource.h')
-rw-r--r--include/linux/resource.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/resource.h b/include/linux/resource.h
index cf8dc96653ee..037aa7e6335d 100644
--- a/include/linux/resource.h
+++ b/include/linux/resource.h
@@ -43,6 +43,13 @@ struct rlimit {
43 unsigned long rlim_max; 43 unsigned long rlim_max;
44}; 44};
45 45
46#define RLIM64_INFINITY (~0ULL)
47
48struct rlimit64 {
49 __u64 rlim_cur;
50 __u64 rlim_max;
51};
52
46#define PRIO_MIN (-20) 53#define PRIO_MIN (-20)
47#define PRIO_MAX 20 54#define PRIO_MAX 20
48 55