• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/

Lines Matching refs:bprm

121 	struct linux_binprm * bprm)
126 int argc = bprm->argc;
127 int envc = bprm->envc;
180 struct linux_binprm *bprm,
208 ret = bprm->file->f_op->read(bprm->file, buf, LBUFSIZE, &fpos);
278 ret = bprm->file->f_op->read(bprm->file, buf, LBUFSIZE, &fpos);
422 static int load_flat_file(struct linux_binprm * bprm,
438 hdr = ((struct flat_hdr *) bprm->buf); /* exec-header */
439 inode = bprm->file->f_path.dentry->d_inode;
466 printk("BINFMT_FLAT: Loading file: %s\n", bprm->filename);
514 result = flush_old_exec(bprm);
522 setup_new_exec(bprm);
544 textpos = do_mmap(bprm->file, 0, text_len, PROT_READ|PROT_EXEC,
581 result = decompress_exec(bprm, fpos, (char *) datapos,
586 result = bprm->file->f_op->read(bprm->file, (char *) datapos,
632 result = decompress_exec(bprm, sizeof (struct flat_hdr),
641 result = bprm->file->f_op->read(bprm->file,
644 result = decompress_exec(bprm, text_len, (char *) datapos,
651 result = bprm->file->f_op->read(bprm->file,
655 result = bprm->file->f_op->read(bprm->file, (char *) datapos,
694 id ? "Lib" : "Load", bprm->filename,
816 struct linux_binprm bprm;
824 bprm.filename = buf;
825 bprm.file = open_exec(bprm.filename);
826 res = PTR_ERR(bprm.file);
827 if (IS_ERR(bprm.file))
830 bprm.cred = prepare_exec_creds();
832 if (!bprm.cred)
835 res = prepare_binprm(&bprm);
838 res = load_flat_file(&bprm, libs, id, NULL);
840 abort_creds(bprm.cred);
843 allow_write_access(bprm.file);
844 fput(bprm.file);
857 static int load_flat_binary(struct linux_binprm * bprm, struct pt_regs * regs)
860 unsigned long p = bprm->p;
876 stack_len = TOP_OF_ARGS - bprm->p; /* the strings */
877 stack_len += (bprm->argc + 1) * sizeof(char *); /* the argv array */
878 stack_len += (bprm->envc + 1) * sizeof(char *); /* the envp array */
881 res = load_flat_file(bprm, &libinfo, 0, &stack_len);
893 install_exec_creds(bprm);
902 for (i = TOP_OF_ARGS - 1; i >= bprm->p; i--)
904 ((char *) page_address(bprm->page[i/PAGE_SIZE]))[i % PAGE_SIZE];
906 sp = (unsigned long *) create_flat_tables(p, bprm);