Lines Matching refs:bprm

44 static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs);
396 static int verify_binary(struct elfhdr *ehp, struct linux_binprm *bprm) in verify_binary() argument
403 !irix_elf_check_arch(ehp) || !bprm->file->f_op->mmap) { in verify_binary()
432 struct linux_binprm *bprm, int pnum) in look_for_irix_interpreter() argument
454 retval = kernel_read(bprm->file, epp->p_offset, (*name + 16), in look_for_irix_interpreter()
464 retval = kernel_read(file, 0, bprm->buf, 128); in look_for_irix_interpreter()
468 *interp_elf_ex = *(struct elfhdr *) bprm->buf; in look_for_irix_interpreter()
595 static int load_irix_binary(struct linux_binprm * bprm, struct pt_regs * regs) in load_irix_binary() argument
610 elf_ex = *((struct elfhdr *) bprm->buf); in load_irix_binary()
613 if (verify_binary(&elf_ex, bprm)) in load_irix_binary()
630 retval = kernel_read(bprm->file, elf_ex.e_phoff, (char *)elf_phdata, size); in load_irix_binary()
666 &interp_elf_ex, elf_phdata, bprm, in load_irix_binary()
681 if (!bprm->sh_bang && !bprm->p) in load_irix_binary()
685 retval = flush_old_exec(bprm); in load_irix_binary()
700 setup_arg_pages(bprm); in load_irix_binary()
701 current->mm->start_stack = bprm->p; in load_irix_binary()
709 map_executable(bprm->file, elf_phdata, elf_ex.e_phnum, &elf_stack, in load_irix_binary()
732 compute_creds(bprm); in load_irix_binary()
734 bprm->p = (unsigned long) in load_irix_binary()
735 create_irix_tables((char *)bprm->p, bprm->argc, bprm->envc, in load_irix_binary()
742 current->mm->start_stack = bprm->p; in load_irix_binary()
778 start_thread(regs, elf_entry, bprm->p); in load_irix_binary()