[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.147.2.2 and 1.153

version 1.147.2.2, 2007/12/26 21:39:47 version 1.153, 2008/03/01 14:16:51
Line 280  sodoloanfree(struct vm_page **pgs, void 
Line 280  sodoloanfree(struct vm_page **pgs, void 
 }  }
   
 static size_t  static size_t
 sodopendfree()  sodopendfree(void)
 {  {
         size_t rv;          size_t rv;
   
Line 299  sodopendfree()
Line 299  sodopendfree()
  */   */
   
 static size_t  static size_t
 sodopendfreel()  sodopendfreel(void)
 {  {
         struct mbuf *m, *next;          struct mbuf *m, *next;
         size_t rv = 0;          size_t rv = 0;
Line 660  soclose(struct socket *so)
Line 660  soclose(struct socket *so)
                                 goto drop;                                  goto drop;
                 }                  }
                 if (so->so_options & SO_LINGER) {                  if (so->so_options & SO_LINGER) {
                         if ((so->so_state & SS_ISDISCONNECTING) &&                          if ((so->so_state & SS_ISDISCONNECTING) && so->so_nbio)
                             (so->so_state & SS_NBIO))  
                                 goto drop;                                  goto drop;
                         while (so->so_state & SS_ISCONNECTED) {                          while (so->so_state & SS_ISCONNECTED) {
                                 error = tsleep((void *)&so->so_timeo,                                  error = tsleep((void *)&so->so_timeo,
Line 870  sosend(struct socket *so, struct mbuf *a
Line 869  sosend(struct socket *so, struct mbuf *a
                         snderr(EMSGSIZE);                          snderr(EMSGSIZE);
                 if (space < resid + clen &&                  if (space < resid + clen &&
                     (atomic || space < so->so_snd.sb_lowat || space < clen)) {                      (atomic || space < so->so_snd.sb_lowat || space < clen)) {
                         if (so->so_state & SS_NBIO)                          if (so->so_nbio)
                                 snderr(EWOULDBLOCK);                                  snderr(EWOULDBLOCK);
                         sbunlock(&so->so_snd);                          sbunlock(&so->so_snd);
                         error = sbwait(&so->so_snd);                          error = sbwait(&so->so_snd);
Line 1110  soreceive(struct socket *so, struct mbuf
Line 1109  soreceive(struct socket *so, struct mbuf
                 }                  }
                 if (uio->uio_resid == 0)                  if (uio->uio_resid == 0)
                         goto release;                          goto release;
                 if ((so->so_state & SS_NBIO) || (flags & MSG_DONTWAIT)) {                  if (so->so_nbio || (flags & MSG_DONTWAIT)) {
                         error = EWOULDBLOCK;                          error = EWOULDBLOCK;
                         goto release;                          goto release;
                 }                  }
Line 1683  sogetopt(struct socket *so, int level, i
Line 1682  sogetopt(struct socket *so, int level, i
 void  void
 sohasoutofband(struct socket *so)  sohasoutofband(struct socket *so)
 {  {
   
         fownsignal(so->so_pgid, SIGURG, POLL_PRI, POLLPRI|POLLRDBAND, so);          fownsignal(so->so_pgid, SIGURG, POLL_PRI, POLLPRI|POLLRDBAND, so);
         selwakeup(&so->so_rcv.sb_sel);          selnotify(&so->so_rcv.sb_sel, POLLPRI | POLLRDBAND, 0);
 }  }
   
 static void  static void

Legend:
Removed from v.1.147.2.2  
changed lines
  Added in v.1.153

CVSweb <webmaster@jp.NetBSD.org>