Lines Matching refs:imgp
3655 freebsd32_copyout_strings(struct image_params *imgp, uintptr_t *stack_base) in freebsd32_copyout_strings() argument
3668 sysent = imgp->sysent; in freebsd32_copyout_strings()
3670 arginfo = (struct freebsd32_ps_strings *)PROC_PS_STRINGS(imgp->proc); in freebsd32_copyout_strings()
3671 imgp->ps_strings = arginfo; in freebsd32_copyout_strings()
3677 if (!PROC_HAS_SHP(imgp->proc)) { in freebsd32_copyout_strings()
3690 if (imgp->execpath != NULL && imgp->auxargs != NULL) { in freebsd32_copyout_strings()
3691 execpath_len = strlen(imgp->execpath) + 1; in freebsd32_copyout_strings()
3693 imgp->execpathp = (void *)destp; in freebsd32_copyout_strings()
3694 error = copyout(imgp->execpath, imgp->execpathp, execpath_len); in freebsd32_copyout_strings()
3704 imgp->canary = (void *)destp; in freebsd32_copyout_strings()
3705 error = copyout(canary, imgp->canary, sizeof(canary)); in freebsd32_copyout_strings()
3708 imgp->canarylen = sizeof(canary); in freebsd32_copyout_strings()
3717 imgp->pagesizes = (void *)destp; in freebsd32_copyout_strings()
3718 error = copyout(pagesizes32, imgp->pagesizes, sizeof(pagesizes32)); in freebsd32_copyout_strings()
3721 imgp->pagesizeslen = sizeof(pagesizes32); in freebsd32_copyout_strings()
3726 destp -= ARG_MAX - imgp->args->stringspace; in freebsd32_copyout_strings()
3730 if (imgp->auxargs) { in freebsd32_copyout_strings()
3745 vectp -= imgp->args->argc + 1 + imgp->args->envc + 1; in freebsd32_copyout_strings()
3752 stringp = imgp->args->begin_argv; in freebsd32_copyout_strings()
3753 argc = imgp->args->argc; in freebsd32_copyout_strings()
3754 envc = imgp->args->envc; in freebsd32_copyout_strings()
3759 ARG_MAX - imgp->args->stringspace); in freebsd32_copyout_strings()
3766 imgp->argv = vectp; in freebsd32_copyout_strings()
3786 imgp->envv = vectp; in freebsd32_copyout_strings()
3806 if (imgp->auxargs) { in freebsd32_copyout_strings()
3808 error = imgp->sysent->sv_copyout_auxargs(imgp, in freebsd32_copyout_strings()