diff options
author | Jiri Slaby <jslaby@suse.cz> | 2010-03-24 17:06:58 +0100 |
---|---|---|
committer | Jiri Slaby <jirislaby@gmail.com> | 2010-07-16 09:48:47 +0200 |
commit | 6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c (patch) | |
tree | e8c4324d61b7ce6eab3779f0058dae221be0ea42 /include/linux | |
parent | 86f162f4c75ceb6daf43165469eeeca1bc3d4639 (diff) | |
download | blackbird-obmc-linux-6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c.tar.gz blackbird-obmc-linux-6a1d5e2c85d06da35cdfd93f1a27675bfdc3ad8c.zip |
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')
-rw-r--r-- | include/linux/resource.h | 7 |
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 |