getsock_cap
error = getsock_cap(td, s, &cap_setsockopt_rights, &fp,
error = getsock_cap(td, s, &cap_getsockopt_rights, &fp, &fcaps);
error = getsock_cap(td, s, &cap_accept_rights,
error = getsock_cap(td, uap->sd,
int getsock_cap(struct thread *td, int fd, const cap_rights_t *rightsp,