summaryrefslogtreecommitdiffstats
path: root/include/linux/binfmts.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/binfmts.h')
-rw-r--r--include/linux/binfmts.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/linux/binfmts.h b/include/linux/binfmts.h
index 0d34d35ba..dd4ef3603 100644
--- a/include/linux/binfmts.h
+++ b/include/linux/binfmts.h
@@ -19,7 +19,7 @@
struct linux_binprm{
char buf[128];
unsigned long page[MAX_ARG_PAGES];
- unsigned long p;
+ unsigned long p; /* current top of mem */
int sh_bang;
int java; /* Java binary, prevent recursive invocation */
struct dentry * dentry;
@@ -64,14 +64,16 @@ extern int prepare_binprm(struct linux_binprm *);
extern void remove_arg_zero(struct linux_binprm *);
extern int search_binary_handler(struct linux_binprm *,struct pt_regs *);
extern int flush_old_exec(struct linux_binprm * bprm);
-extern unsigned long setup_arg_pages(unsigned long p, struct linux_binprm * bprm);
-extern unsigned long copy_strings(int argc,char ** argv,unsigned long *page,
- unsigned long p, int from_kmem);
-
+extern int setup_arg_pages(struct linux_binprm * bprm);
+extern int copy_strings(int argc,char ** argv,struct linux_binprm *bprm);
+extern int copy_strings_kernel(int argc,char ** argv,struct linux_binprm *bprm);
extern void compute_creds(struct linux_binprm *binprm);
-/* this eventually goes away */
+
+#if 0
+/* this went away now */
#define change_ldt(a,b) setup_arg_pages(a,b)
+#endif
#endif /* __KERNEL__ */
#endif /* _LINUX_BINFMTS_H */