[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.33 and 1.34

version 1.33, 1998/04/25 17:35:18 version 1.34, 1998/04/27 13:31:45
Line 809  release:
Line 809  release:
   
 int  int
 soshutdown(so, how)  soshutdown(so, how)
         register struct socket *so;          struct socket *so;
         register int how;          int how;
 {  {
         register struct protosw *pr = so->so_proto;          struct protosw *pr = so->so_proto;
   
           if (!(how == SHUT_RD || how == SHUT_WR || how == SHUT_RDWR))
                   return (EINVAL);
   
         how++;          if (how == SHUT_RD || how == SHUT_RDWR)
         if (how & FREAD)  
                 sorflush(so);                  sorflush(so);
         if (how & FWRITE)          if (how == SHUT_WR || how == SHUT_RDWR)
                 return (*pr->pr_usrreq)(so, PRU_SHUTDOWN, (struct mbuf *)0,                  return (*pr->pr_usrreq)(so, PRU_SHUTDOWN, (struct mbuf *)0,
                     (struct mbuf *)0, (struct mbuf *)0, (struct proc *)0);                      (struct mbuf *)0, (struct mbuf *)0, (struct proc *)0);
         return (0);          return (0);

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34

CVSweb <webmaster@jp.NetBSD.org>