summaryrefslogtreecommitdiff
path: root/include/linux/resource.h
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2010-03-24 19:06:58 +0300
committerJiri Slaby <jirislaby@gmail.com>2010-07-16 11:48:47 +0400
commit6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c (patch)
treee8c4324d61b7ce6eab3779f0058dae221be0ea42 /include/linux/resource.h
parent86f162f4c75ceb6daf43165469eeeca1bc3d4639 (diff)
downloadlinux-6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c.tar.xz
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 {
unsigned long rlim_max;
};
+#define RLIM64_INFINITY (~0ULL)
+
+struct rlimit64 {
+ __u64 rlim_cur;
+ __u64 rlim_max;
+};
+
#define PRIO_MIN (-20)
#define PRIO_MAX 20