Lines Matching refs:Proc

215 	if ((Lwp = Lgrab(Proc, who, &gcode)) == NULL) {  in grab_lwp()
220 command, who, (int)Pstatus(Proc)->pr_pid, in grab_lwp()
239 if (lwptrace(Pstatus(Proc)->pr_pid, Lsp->pr_lwpid)) in create_thread()
469 Proc = Pcreate(argv[0], &argv[0], &err, path, sizeof (path)); in main()
470 if (Proc == NULL) { in main()
504 (void) Psetflags(Proc, PR_FORK); in main()
506 (void) Punsetflags(Proc, PR_FORK); in main()
507 Psp = Pstatus(Proc); in main()
615 Psp = Pstatus(Proc); in main()
640 Pfree(Proc); in main()
643 Psp = Pstatus(Proc); in main()
671 if (created && Pstate(Proc) != PS_STOP) /* assertion */ in main()
711 Psetsysentry(Proc, &traceeven); in main()
713 Psetsysexit(Proc, &traceeven); in main()
717 (void) Psysentry(Proc, SYS_context, TRUE); in main()
718 (void) Psysexit(Proc, SYS_context, FALSE); in main()
723 (void) Psysentry(Proc, SYS_execve, TRUE); in main()
726 (void) Psysentry(Proc, SYS_exit, TRUE); in main()
727 (void) Psysentry(Proc, SYS_lwp_exit, TRUE); in main()
728 (void) Psysentry(Proc, SYS_upanic, TRUE); in main()
729 (void) Psysexit(Proc, SYS_exit, FALSE); in main()
730 (void) Psysexit(Proc, SYS_lwp_exit, FALSE); in main()
731 (void) Psysexit(Proc, SYS_upanic, FALSE); in main()
733 Psetsignal(Proc, &signals); /* trace these signals */ in main()
734 Psetfault(Proc, &faults); /* trace these faults */ in main()
739 (void) Pfault(Proc, FLTBPT, TRUE); in main()
740 (void) Pfault(Proc, FLTTRACE, TRUE); in main()
743 (void) Psetflags(Proc, PR_BPTADJ); in main()
761 (void) Psetflags(Proc, PR_ASYNC); in main()
764 Psync(Proc); in main()
775 ((Pstate(Proc) == PS_STOP && Lsp->pr_why == PR_REQUESTED) || in main()
806 primary_lwp = (first && Pstate(Proc) == PS_STOP)? in main_thread()
807 Pstatus(Proc)->pr_lwp.pr_lwpid : 0; in main_thread()
817 (void) Plwp_iter(Proc, create_thread, &count); in main_thread()
841 (void) Punsetflags(Proc, PR_ASYNC); in main_thread()
842 Psync(Proc); in main_thread()
848 Prelease(Proc, flags); in main_thread()
871 const pstatus_t *Psp = Pstatus(Proc); in worker_thread()
959 if (Preopen(Proc) == 0) { /* we got control back */ in worker_thread()
971 Lgrab(Proc, who, &gcode); in worker_thread()
1028 (void) Pstop(Proc, 0); in worker_thread()
1088 Psetsysentry(Proc, &running_set); in worker_thread()
1106 (Pstatus(Proc))->pr_sysentry; in worker_thread()
1107 Psetsysentry(Proc, &full_set); in worker_thread()
1117 (Pstatus(Proc))->pr_sysentry; in worker_thread()
1118 Psetsysentry(Proc, &full_set); in worker_thread()
1228 (void) Pstopstatus(Proc, PCNULL, 0); in worker_thread()
1276 Lgrab(Proc, who, &gcode); in worker_thread()
1299 (void) Pstop(Proc, 0); in worker_thread()
1312 Prelease(Proc, PRELEASE_CLEAR); in worker_thread()
1437 Psetsysentry(Proc, &running_set); in worker_thread()
1488 (void) Pdstop(Proc); in worker_thread()
1519 (void) Pstop(Proc, MILLISEC); in worker_thread()
1521 (void) Psysexit(Proc, SYS_vfork, FALSE); in worker_thread()
1522 (void) Psysexit(Proc, SYS_forksys, FALSE); in worker_thread()
1523 (void) Punsetflags(Proc, PR_FORK); in worker_thread()
1524 Psync(Proc); in worker_thread()
1545 const pstatus_t *Psp = Pstatus(Proc); in setup_basetime()
1855 pid_t pid = Pstatus(Proc)->pr_pid; in make_pname()
2270 pid_t pid = Pstatus(Proc)->pr_pid; in psargs()
2297 if ((nbyte = Pread(Proc, string, 40, addr)) <= 0) in fetchstring()
2330 if (proc_get_cred(Pstatus(Proc)->pr_pid, &cred, 0) < 0) { in show_cred()
2335 if ((privs = proc_get_priv(Pstatus(Proc)->pr_pid)) == NULL) { in show_cred()
2431 Pfree(Proc); /* forget old process */ in control()
2442 if ((Proc = Pgrab(pid, PGRAB_RETAIN, &rc)) == NULL) { in control()
2466 (void) Pwait(Proc, MILLISEC); in control()
2468 Rdb_agent = Prd_agent(Proc); in control()
2470 Psp = Pstatus(Proc); in control()
2483 (void) Psetflags(Proc, flags); in control()
2501 if ((Proc = Pgrab(set->pid, Fflag, &gcode)) == NULL) { in grabit()
2507 Psp = Pstatus(Proc); in grabit()
2518 (void) Psetflags(Proc, PR_FORK); in grabit()
2520 (void) Punsetflags(Proc, PR_FORK); in grabit()
2607 if (Proc) { in abend()
2611 (void) Punsetflags(Proc, PR_ASYNC); in abend()
2612 Prelease(Proc, created? PRELEASE_KILL : PRELEASE_CLEAR); in abend()