pr_fstat
extern int pr_fstat(struct ps_prochandle *, int, struct stat *);
if (pr_fstat(P, PRT_NULL_FD, &targ) != 0) {
if (pr_fstat(P, PRT_ZERO_FD, &targ) == 0) {