Lines Matching refs:Pr

75 	struct ps_prochandle *Pr;  in main()  local
137 if ((Pr = proc_arg_xgrab(arg, NULL, PR_ARG_CORES, in main()
151 Prelease(Pr, 0); in main()
157 show_files(Pr); in main()
158 Prelease(Pr, 0); in main()
160 } else if ((Pr = Pgrab(pid, Fflag, &gret)) != NULL) { in main()
161 if (Pcreate_agent(Pr) == 0) { in main()
165 show_files(Pr); in main()
166 Pdestroy_agent(Pr); in main()
173 Prelease(Pr, 0); in main()
174 Pr = NULL; in main()
219 struct ps_prochandle *Pr = data; in show_file() local
269 dofcntl(Pr, info, in show_file()
273 if (Pstate(Pr) != PS_DEAD) { in show_file()
276 dosocket(Pr, info); in show_file()
279 dofifo(Pr, info); in show_file()
287 dosocknames(Pr, info); in show_file()
304 show_files(struct ps_prochandle *Pr) in show_files() argument
308 if (pr_getrlimit(Pr, RLIMIT_NOFILE, &rlim) == 0) { in show_files()
318 (void) Pfdinfo_iter(Pr, show_file, Pr); in show_files()
323 dofcntl(struct ps_prochandle *Pr, const prfdinfo_t *info, int mandatory, in dofcntl() argument
338 if (isdoor && (Pstate(Pr) != PS_DEAD)) in dofcntl()
339 show_door(Pr, info); in dofcntl()
341 } else if (isdoor && (Pstate(Pr) != PS_DEAD)) { in dofcntl()
343 show_door(Pr, info); in dofcntl()
347 if (Pstate(Pr) != PS_DEAD) { in dofcntl()
441 show_door(struct ps_prochandle *Pr, const prfdinfo_t *info) in show_door() argument
445 if (pr_door_info(Pr, info->pr_fd, &door_info) != 0) in show_door()
563 show_sockopts(struct ps_prochandle *Pr, const prfdinfo_t *info) in show_sockopts() argument
640 show_sockfilters(struct ps_prochandle *Pr, const prfdinfo_t *info) in show_sockfilters() argument
654 if (pr_getsockopt(Pr, fd, SOL_FILTER, FIL_LIST, fi, &len) != 0) in show_sockfilters()
705 dopeerucred(struct ps_prochandle *Pr, const prfdinfo_t *info) in dopeerucred() argument
709 if (pr_getpeerucred(Pr, info->pr_fd, &peercred) == 0) { in dopeerucred()
716 dosocknames(struct ps_prochandle *Pr, const prfdinfo_t *info) in dosocknames() argument
732 dosocket(struct ps_prochandle *Pr, const prfdinfo_t *info) in dosocket() argument
740 show_sockopts(Pr, info); in dosocket()
741 show_sockfilters(Pr, info); in dosocket()
742 dosocknames(Pr, info); in dosocket()
743 dopeerucred(Pr, info); in dosocket()
748 dofifo(struct ps_prochandle *Pr, const prfdinfo_t *info) in dofifo() argument
750 dopeerucred(Pr, info); in dofifo()