projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86f162f
)
rlimits: add rlimit64 structure
author
Jiri Slaby
<jslaby@suse.cz>
Wed, 24 Mar 2010 16:06:58 +0000
(17:06 +0100)
committer
Jiri Slaby
<jirislaby@gmail.com>
Fri, 16 Jul 2010 07:48:47 +0000
(09:48 +0200)
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>
include/linux/resource.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/resource.h
b/include/linux/resource.h
index cf8dc96653eeda36d3a4fc8d8b89e473acb3dde1..037aa7e6335da2bb820dff8f4e58a4ba723d62fa 100644
(file)
--- 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