Skip to content

Commit

Permalink
rlimits: add rlimit64 structure
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Jiri Slaby committed Jul 16, 2010
1 parent 86f162f commit 6a1d5e2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions include/linux/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 6a1d5e2

Please sign in to comment.