Lines Matching defs:Pr
55 struct ps_prochandle *Pr;
113 if ((pctx->Pr = Pcreate(filename, argv, &err, 0, 0)) == NULL) {
144 if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) {
147 Prelease(pctx->Pr, PRELEASE_KILL);
156 (void) Psetflags(pctx->Pr, PR_KLC);
177 if ((pctx->Pr = Pgrab(pid, 0, &err)) == NULL) {
217 if (Psysentry(pctx->Pr, SYS_exit, 1) == -1) {
220 Prelease(pctx->Pr, PRELEASE_CLEAR);
232 (void) Psetflags(pctx->Pr, PR_RLC);
319 (void) Psysexit(pctx->Pr, SYS_vfork, 1);
320 (void) Psysexit(pctx->Pr, SYS_forksys, 1);
321 if (Psetflags(pctx->Pr, PR_FORK) == -1)
324 (void) Psysexit(pctx->Pr, SYS_vfork, 0);
325 (void) Psysexit(pctx->Pr, SYS_forksys, 0);
326 if (Punsetflags(pctx->Pr, PR_FORK) == -1)
337 (void) Psysexit(pctx->Pr, SYS_execve, 1);
338 (void) Psysentry(pctx->Pr, SYS_execve, 1);
340 (void) Psysexit(pctx->Pr, SYS_execve, 0);
341 (void) Psysentry(pctx->Pr, SYS_execve, 0);
344 (void) Psysexit(pctx->Pr, SYS_lwp_create,
348 (void) Psysentry(pctx->Pr, SYS_lwp_exit,
376 if (pctx->Pr == NULL)
380 (void) Pcreate_agent(pctx->Pr);
387 if (pctx->Pr == NULL)
390 (void) Pdestroy_agent(pctx->Pr);
413 pstatus = Pstatus(pctx->Pr);
465 if (pctx->Pr) {
466 Pfree(pctx->Pr);
467 pctx->Pr = NULL;
478 if (pctx->Pr) {
479 Prelease(pctx->Pr, PRELEASE_CLEAR);
480 pctx->Pr = NULL;
533 pid_t pid = Pstatus(pctx->Pr)->pr_pid;
575 if (Psetrun(pctx->Pr, 0, 0) != 0) {
611 (void) Pwait(pctx->Pr, mswait);
614 switch (pstate = Pstate(pctx->Pr)) {
619 if (Pstop(pctx->Pr, 5 * MILLISEC) == -1 ||
620 (pstate = Pstate(pctx->Pr)) != PS_STOP) {
633 (void) Preopen(pctx->Pr);
634 if ((pstate = Pstate(pctx->Pr)) != PS_LOST)
660 pstatus = Pstatus(pctx->Pr);
731 Ppsinfo(pctx->Pr), sizeof (psinfo));
781 pctx->Pr, PR_KLC);
974 error = Psyscall(pctx->Pr, &rval, SYS_cpc, 5, &argd[0]);