Lines Matching refs:bprm
63 static u32 __user *create_aout_tables(char __user *p, struct linux_binprm *bprm) in create_aout_tables() argument
66 int argc = bprm->argc, envc = bprm->envc; in create_aout_tables()
104 static int load_aout_binary(struct linux_binprm *bprm) in load_aout_binary() argument
111 ex = *((struct exec *) bprm->buf); /* exec-header */ in load_aout_binary()
115 i_size_read(file_inode(bprm->file)) < in load_aout_binary()
133 retval = begin_new_exec(bprm); in load_aout_binary()
141 setup_new_exec(bprm); in load_aout_binary()
154 retval = setup_arg_pages(bprm, IA32_STACK_TOP, EXSTACK_DEFAULT); in load_aout_binary()
169 error = read_code(bprm->file, text_addr, 32, in load_aout_binary()
188 bprm->file); in load_aout_binary()
193 if (!bprm->file->f_op->mmap || (fd_offset & ~PAGE_MASK) != 0) { in load_aout_binary()
198 read_code(bprm->file, N_TXTADDR(ex), fd_offset, in load_aout_binary()
203 error = vm_mmap(bprm->file, N_TXTADDR(ex), ex.a_text, in load_aout_binary()
212 error = vm_mmap(bprm->file, N_DATADDR(ex), ex.a_data, in load_aout_binary()
229 (unsigned long)create_aout_tables((char __user *)bprm->p, bprm); in load_aout_binary()