getsock
error = getsock(td, args->s, &cap_connect_rights, &fp);
error1 = getsock(td, s, &cap_accept_rights, &fp1);
error = getsock(td, args->s, &cap_send_rights, &fp);
error = getsock(td, args->s, &cap_send_connect_rights, &fp);
error = getsock(td, s, &cap_send_rights, &fp);
error = getsock(td, args->s, &cap_recv_rights, &fp);
error = getsock(td, s, &cap_recv_rights, &fp);
error = getsock(td, s, &cap_send_rights, sock_fp);
error = getsock(sopt->sopt_td, splice.sp_fd,
error = getsock(td, s, &cap_shutdown_rights, &fp);
error = getsock(td, fd, &cap_getsockname_rights, &fp);
error = getsock(td, fd, &cap_getpeername_rights, &fp);
error = getsock(td, fd, &cap_bind_rights, &fp);
error = getsock(td, s, &cap_listen_rights, &fp);
error = getsock(td, fd, &cap_connect_rights, &fp);
error = getsock(td, s, rights, &fp);
error = getsock(td, s, &cap_recv_rights, &fp);
ret = getsock(td, fd, &cap_connect_rights, &fp);
error = getsock(td, uap->sd, &rights, &fp);
error = getsock(td, uap->sd, &rights, &fp);
error = getsock(td, uap->sd, cap_rights_init_one(&rights, CAP_RECV),
int getsock(struct thread *td, int fd, const cap_rights_t *rightsp,