Lines Matching defs:ub
244 soo_stat(struct file *fp, struct stat *ub, struct ucred *active_cred,
252 bzero((caddr_t)ub, sizeof (*ub));
253 ub->st_mode = S_IFSOCK;
266 ub->st_mode |= S_IRUSR | S_IRGRP | S_IROTH;
267 ub->st_size = so->so_rcv.sb_cc - so->so_rcv.sb_ctl;
271 ub->st_mode |= S_IWUSR | S_IWGRP | S_IWOTH;
272 ub->st_uid = so->so_cred->cr_uid;
273 ub->st_gid = so->so_cred->cr_gid;
274 return (*so->so_proto->pr_usrreqs->pru_sense)(so, ub);