pr_access
if (pr_access(P, nout, R_OK | W_OK) != 0) {
extern int pr_access(struct ps_prochandle *, const char *, int);