[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.83 and 1.90

version 1.83, 2003/06/29 22:31:30 version 1.90, 2003/09/22 12:59:58
Line 48 
Line 48 
  * 2. Redistributions in binary form must reproduce the above copyright   * 2. Redistributions in binary form must reproduce the above copyright
  *    notice, this list of conditions and the following disclaimer in the   *    notice, this list of conditions and the following disclaimer in the
  *    documentation and/or other materials provided with the distribution.   *    documentation and/or other materials provided with the distribution.
  * 3. All advertising materials mentioning features or use of this software   * 3. Neither the name of the University nor the names of its contributors
  *    must display the following acknowledgement:  
  *      This product includes software developed by the University of  
  *      California, Berkeley and its contributors.  
  * 4. Neither the name of the University nor the names of its contributors  
  *    may be used to endorse or promote products derived from this software   *    may be used to endorse or promote products derived from this software
  *    without specific prior written permission.   *    without specific prior written permission.
  *   *
Line 77  __KERNEL_RCSID(0, "$NetBSD$");
Line 73  __KERNEL_RCSID(0, "$NetBSD$");
 #include "opt_sock_counters.h"  #include "opt_sock_counters.h"
 #include "opt_sosend_loan.h"  #include "opt_sosend_loan.h"
 #include "opt_mbuftrace.h"  #include "opt_mbuftrace.h"
   #include "opt_somaxkva.h"
   
 #include <sys/param.h>  #include <sys/param.h>
 #include <sys/systm.h>  #include <sys/systm.h>
Line 93  __KERNEL_RCSID(0, "$NetBSD$");
Line 90  __KERNEL_RCSID(0, "$NetBSD$");
 #include <sys/resourcevar.h>  #include <sys/resourcevar.h>
 #include <sys/pool.h>  #include <sys/pool.h>
 #include <sys/event.h>  #include <sys/event.h>
   #include <sys/poll.h>
   
 #include <uvm/uvm.h>  #include <uvm/uvm.h>
   
Line 147  int use_sosend_loan = 1;
Line 145  int use_sosend_loan = 1;
   
 struct mbuf *so_pendfree;  struct mbuf *so_pendfree;
   
 int somaxkva = 16 * 1024 * 1024;  #ifndef SOMAXKVA
   #define SOMAXKVA (16 * 1024 * 1024)
   #endif
   int somaxkva = SOMAXKVA;
 int socurkva;  int socurkva;
 int sokvawaiters;  int sokvawaiters;
   
Line 1266  sorflush(struct socket *so)
Line 1267  sorflush(struct socket *so)
         socantrcvmore(so);          socantrcvmore(so);
         sbunlock(sb);          sbunlock(sb);
         asb = *sb;          asb = *sb;
         memset((caddr_t)sb, 0, sizeof(*sb));          /*
            * Clear most of the sockbuf structure, but leave some of the
            * fields valid.
            */
           memset(&sb->sb_startzero, 0,
               sizeof(*sb) - offsetof(struct sockbuf, sb_startzero));
         splx(s);          splx(s);
         if (pr->pr_flags & PR_RIGHTS && pr->pr_domain->dom_dispose)          if (pr->pr_flags & PR_RIGHTS && pr->pr_domain->dom_dispose)
                 (*pr->pr_domain->dom_dispose)(asb.sb_mb);                  (*pr->pr_domain->dom_dispose)(asb.sb_mb);
Line 1501  sogetopt(struct socket *so, int level, i
Line 1507  sogetopt(struct socket *so, int level, i
 void  void
 sohasoutofband(struct socket *so)  sohasoutofband(struct socket *so)
 {  {
         struct proc *p;          fownsignal(so->so_pgid, SIGURG, POLL_PRI, POLLPRI|POLLRDBAND, so);
   
         if (so->so_pgid < 0)  
                 gsignal(-so->so_pgid, SIGURG);  
         else if (so->so_pgid > 0 && (p = pfind(so->so_pgid)) != 0)  
                 psignal(p, SIGURG);  
         selwakeup(&so->so_rcv.sb_sel);          selwakeup(&so->so_rcv.sb_sel);
 }  }
   

Legend:
Removed from v.1.83  
changed lines
  Added in v.1.90

CVSweb <webmaster@jp.NetBSD.org>