[BACK]Return to uipc_socket.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / kern

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/kern/uipc_socket.c between version 1.132.2.3 and 1.132.2.4

version 1.132.2.3, 2007/03/24 14:56:06 version 1.132.2.4, 2007/04/15 16:03:52
Line 495  socreate(int dom, struct socket **aso, i
Line 495  socreate(int dom, struct socket **aso, i
         so->so_snd.sb_mowner = &prp->pr_domain->dom_mowner;          so->so_snd.sb_mowner = &prp->pr_domain->dom_mowner;
         so->so_mowner = &prp->pr_domain->dom_mowner;          so->so_mowner = &prp->pr_domain->dom_mowner;
 #endif  #endif
         if (l != NULL) {          uid = kauth_cred_geteuid(l->l_cred);
                 uid = kauth_cred_geteuid(l->l_cred);  
         } else {  
                 uid = 0;  
         }  
         so->so_uidinfo = uid_find(uid);          so->so_uidinfo = uid_find(uid);
         error = (*prp->pr_usrreq)(so, PRU_ATTACH, (struct mbuf *)0,          error = (*prp->pr_usrreq)(so, PRU_ATTACH, (struct mbuf *)0,
             (struct mbuf *)(long)proto, (struct mbuf *)0, l);              (struct mbuf *)(long)proto, (struct mbuf *)0, l);
Line 640  soclose(struct socket *so)
Line 636  soclose(struct socket *so)
 int  int
 soabort(struct socket *so)  soabort(struct socket *so)
 {  {
           int error;
   
         return (*so->so_proto->pr_usrreq)(so, PRU_ABORT, (struct mbuf *)0,          KASSERT(so->so_head == NULL);
           error = (*so->so_proto->pr_usrreq)(so, PRU_ABORT, (struct mbuf *)0,
             (struct mbuf *)0, (struct mbuf *)0, (struct lwp *)0);              (struct mbuf *)0, (struct mbuf *)0, (struct lwp *)0);
           if (error) {
                   sofree(so);
           }
           return error;
 }  }
   
 int  int

Legend:
Removed from v.1.132.2.3  
changed lines
  Added in v.1.132.2.4

CVSweb <webmaster@jp.NetBSD.org>