Lines Matching refs:Pr

76 	struct ps_prochandle *Pr;  in main()  local
138 if ((Pr = proc_arg_xgrab(arg, NULL, PR_ARG_CORES, in main()
152 Prelease(Pr, 0); in main()
158 show_files(Pr); in main()
159 Prelease(Pr, 0); in main()
161 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
162 if (Pcreate_agent(Pr) == 0) { in main()
166 show_files(Pr); in main()
167 Pdestroy_agent(Pr); in main()
174 Prelease(Pr, 0); in main()
175 Pr = NULL; in main()
220 struct ps_prochandle *Pr = data; in show_file() local
270 dofcntl(Pr, info, in show_file()
274 if (Pstate(Pr) != PS_DEAD) { in show_file()
277 dosocket(Pr, info); in show_file()
280 dofifo(Pr, info); in show_file()
288 dosocknames(Pr, info); in show_file()
305 show_files(struct ps_prochandle *Pr) in show_files() argument
309 if (pr_getrlimit(Pr, RLIMIT_NOFILE, &rlim) == 0) { in show_files()
319 (void) Pfdinfo_iter(Pr, show_file, Pr); in show_files()
344 dofcntl(struct ps_prochandle *Pr, const prfdinfo_t *info, int mandatory, in dofcntl() argument
359 if (isdoor && (Pstate(Pr) != PS_DEAD)) in dofcntl()
360 show_door(Pr, info); in dofcntl()
362 } else if (isdoor && (Pstate(Pr) != PS_DEAD)) { in dofcntl()
364 show_door(Pr, info); in dofcntl()
368 if (Pstate(Pr) != PS_DEAD) { in dofcntl()
462 show_door(struct ps_prochandle *Pr, const prfdinfo_t *info) in show_door() argument
466 if (pr_door_info(Pr, info->pr_fd, &door_info) != 0) in show_door()
584 show_sockopts(struct ps_prochandle *Pr, const prfdinfo_t *info) in show_sockopts() argument
661 show_sockfilters(struct ps_prochandle *Pr, const prfdinfo_t *info) in show_sockfilters() argument
675 if (pr_getsockopt(Pr, fd, SOL_FILTER, FIL_LIST, fi, &len) != 0) in show_sockfilters()
726 dopeerucred(struct ps_prochandle *Pr, const prfdinfo_t *info) in dopeerucred() argument
730 if (pr_getpeerucred(Pr, info->pr_fd, &peercred) == 0) { in dopeerucred()
737 dosocknames(struct ps_prochandle *Pr, const prfdinfo_t *info) in dosocknames() argument
753 dosocket(struct ps_prochandle *Pr, const prfdinfo_t *info) in dosocket() argument
761 show_sockopts(Pr, info); in dosocket()
762 show_sockfilters(Pr, info); in dosocket()
763 dosocknames(Pr, info); in dosocket()
764 dopeerucred(Pr, info); in dosocket()
769 dofifo(struct ps_prochandle *Pr, const prfdinfo_t *info) in dofifo() argument
771 dopeerucred(Pr, info); in dofifo()