pr_getpeerucred
if (pr_getpeerucred(Pr, info->pr_fd, &peercred) == 0) {
extern int pr_getpeerucred(struct ps_prochandle *, int, ucred_t **);