diff options
| author | Chris Wright <chrisw@osdl.org> | 2004-06-17 17:56:56 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-17 17:56:56 -0700 |
| commit | faaa0febefc3de14da204284d79dd60c59a140b2 (patch) | |
| tree | 6b9152ba97b51af26908b75bf0c652fa3b57af89 /include/asm-v850 | |
| parent | db49b0f961a5704409acb5145ec7cb134be1b450 (diff) | |
[PATCH] RLIM: add rlimit entry for POSIX mqueue allocation
Add an rlimit entry to control the maximum number of bytes a user can allocate
to a POSIX mqueue.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-v850')
| -rw-r--r-- | include/asm-v850/resource.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-v850/resource.h b/include/asm-v850/resource.h index 43aac5597d46..9f4ca4ae638f 100644 --- a/include/asm-v850/resource.h +++ b/include/asm-v850/resource.h @@ -17,8 +17,9 @@ #define RLIMIT_AS 9 /* address space limit */ #define RLIMIT_LOCKS 10 /* maximum file locks held */ #define RLIMIT_SIGPENDING 11 /* max number of pending signals */ +#define RLIMIT_MSGQUEUE 12 /* maximum bytes in POSIX mqueues */ -#define RLIM_NLIMITS 12 +#define RLIM_NLIMITS 13 /* * SuS says limits have to be unsigned. @@ -42,6 +43,7 @@ { RLIM_INFINITY, RLIM_INFINITY }, \ { RLIM_INFINITY, RLIM_INFINITY }, \ { MAX_SIGPENDING, MAX_SIGPENDING }, \ + { MQ_BYTES_MAX, MQ_BYTES_MAX }, \ } #endif /* __KERNEL__ */ |
