• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/i386/linux/

Lines Matching defs:imgp

96 		    struct image_params *imgp, uintptr_t stack);
97 static int linux_copyout_strings(struct image_params *imgp,
172 linux_fixup(uintptr_t *stack_base, struct image_params *imgp)
178 envp = base + (imgp->args->argc + 1);
184 suword(base, imgp->args->argc);
190 linux_copyout_auxargs(struct image_params *imgp, uintptr_t base)
199 p = imgp->proc;
200 issetugid = imgp->proc->p_flag & P_SUGID ? 1 : 0;
203 args = (Elf32_Auxargs *)imgp->auxargs;
208 imgp->proc->p_sysent->sv_shared_page_base);
230 AUXARGS_ENTRY(pos, AT_UID, imgp->proc->p_ucred->cr_ruid);
231 AUXARGS_ENTRY(pos, AT_EUID, imgp->proc->p_ucred->cr_svuid);
232 AUXARGS_ENTRY(pos, AT_GID, imgp->proc->p_ucred->cr_rgid);
233 AUXARGS_ENTRY(pos, AT_EGID, imgp->proc->p_ucred->cr_svgid);
235 AUXARGS_ENTRY_PTR(pos, LINUX_AT_RANDOM, imgp->canary);
236 if (imgp->execpathp != 0)
237 AUXARGS_ENTRY_PTR(pos, LINUX_AT_EXECFN, imgp->execpathp);
242 free(imgp->auxargs, M_TEMP);
243 imgp->auxargs = NULL;
253 linux_fixup_elf(uintptr_t *stack_base, struct image_params *imgp)
259 if (suword(base, (register_t)imgp->args->argc) == -1)
269 linux_copyout_strings(struct image_params *imgp, uintptr_t *stack_base)
281 p = imgp->proc;
282 if (imgp->execpath != NULL && imgp->auxargs != NULL)
283 execpath_len = strlen(imgp->execpath) + 1;
299 imgp->execpathp = (void *)destp;
300 error = copyout(imgp->execpath, imgp->execpathp, execpath_len);
308 imgp->canary = (void *)destp;
309 error = copyout(canary, imgp->canary, sizeof(canary));
314 destp -= ARG_MAX - imgp->args->stringspace;
318 if (imgp->auxargs) {
333 vectp -= imgp->args->argc + 1 + imgp->args->envc + 1;
338 stringp = imgp->args->begin_argv;
339 argc = imgp->args->argc;
340 envc = imgp->args->envc;
344 ARG_MAX - imgp->args->stringspace);
383 if (imgp->auxargs) {
385 error = imgp->sysent->sv_copyout_auxargs(imgp,
808 linux_exec_setregs(struct thread *td, struct image_params *imgp,
813 exec_setregs(td, imgp, stack);