diff options
author | H. J. Lu <hjl@lucon.org> | 2005-09-06 18:16:49 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-09-07 19:57:21 -0400 |
commit | 36d57ac4a818cb4aa3edbdf63ad2ebc31106f925 (patch) | |
tree | 445eda00ee5974a65e21152cd240fb604c6d112d /include/linux/sched.h | |
parent | 32605a18152b246df483fadc1c23854addde8755 (diff) |
[PATCH] auxiliary vector cleanups
The size of auxiliary vector is fixed at 42 in linux/sched.h. But it isn't
very obvious when looking at linux/elf.h. This patch adds AT_VECTOR_SIZE
so that we can change it if necessary when a new vector is added.
Because of include file ordering problems, doing this necessitated the
extraction of the AT_* symbols into a standalone header file.
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 5fb31bede103..b5a22ea80045 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -35,6 +35,8 @@ | |||
35 | #include <linux/topology.h> | 35 | #include <linux/topology.h> |
36 | #include <linux/seccomp.h> | 36 | #include <linux/seccomp.h> |
37 | 37 | ||
38 | #include <linux/auxvec.h> /* For AT_VECTOR_SIZE */ | ||
39 | |||
38 | struct exec_domain; | 40 | struct exec_domain; |
39 | 41 | ||
40 | /* | 42 | /* |
@@ -261,7 +263,7 @@ struct mm_struct { | |||
261 | mm_counter_t _rss; | 263 | mm_counter_t _rss; |
262 | mm_counter_t _anon_rss; | 264 | mm_counter_t _anon_rss; |
263 | 265 | ||
264 | unsigned long saved_auxv[42]; /* for /proc/PID/auxv */ | 266 | unsigned long saved_auxv[AT_VECTOR_SIZE]; /* for /proc/PID/auxv */ |
265 | 267 | ||
266 | unsigned dumpable:2; | 268 | unsigned dumpable:2; |
267 | cpumask_t cpu_vm_mask; | 269 | cpumask_t cpu_vm_mask; |