Lines Matching defs:bprm
44 static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs);
410 static int verify_binary(struct elfhdr *ehp, struct linux_binprm *bprm)
417 !bprm->file->f_op->mmap) {
436 struct linux_binprm *bprm, int pnum)
456 retval = kernel_read(bprm->file, epp->p_offset, (*name + 16),
466 retval = kernel_read(file, 0, bprm->buf, 128);
470 *interp_elf_ex = *(struct elfhdr *) bprm->buf;
597 static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs)
612 elf_ex = *((struct elfhdr *) bprm->buf);
615 if (verify_binary(&elf_ex, bprm))
649 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *)elf_phdata, size);
687 &interp_elf_ex, elf_phdata, bprm,
704 if (!bprm->sh_bang && !bprm->p)
708 retval = flush_old_exec(bprm);
722 setup_arg_pages(bprm, STACK_TOP, EXSTACK_DEFAULT);
723 current->mm->start_stack = bprm->p;
731 map_executable(bprm->file, elf_phdata, elf_ex.e_phnum, &elf_stack,
754 compute_creds(bprm);
756 bprm->p = (unsigned long)
757 create_irix_tables((char *)bprm->p, bprm->argc, bprm->envc,
764 current->mm->start_stack = bprm->p;
787 start_thread(regs, elf_entry, bprm->p);