[BACK]Return to uipc_syscalls.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_syscalls.c between version 1.173.2.3 and 1.173.2.4

version 1.173.2.3, 2015/09/22 12:06:07 version 1.173.2.4, 2015/12/27 12:10:05
Line 560  do_sys_sendmsg_so(struct lwp *l, int s, 
Line 560  do_sys_sendmsg_so(struct lwp *l, int s, 
                         if (error)                          if (error)
                                 goto bad;                                  goto bad;
                 }                  }
                 mp->msg_iov = iov;                  auio.uio_iov = iov;
         }          } else
                   auio.uio_iov = mp->msg_iov;
   
         auio.uio_iov = mp->msg_iov;  
         auio.uio_iovcnt = mp->msg_iovlen;          auio.uio_iovcnt = mp->msg_iovlen;
         auio.uio_rw = UIO_WRITE;          auio.uio_rw = UIO_WRITE;
         auio.uio_offset = 0;                    /* XXX */          auio.uio_offset = 0;                    /* XXX */
Line 571  do_sys_sendmsg_so(struct lwp *l, int s, 
Line 571  do_sys_sendmsg_so(struct lwp *l, int s, 
         KASSERT(l == curlwp);          KASSERT(l == curlwp);
         auio.uio_vmspace = l->l_proc->p_vmspace;          auio.uio_vmspace = l->l_proc->p_vmspace;
   
         for (i = 0, tiov = mp->msg_iov; i < mp->msg_iovlen; i++, tiov++) {          tiov = auio.uio_iov;
           for (i = 0; i < auio.uio_iovcnt; i++, tiov++) {
                 /*                  /*
                  * Writes return ssize_t because -1 is returned on error.                   * Writes return ssize_t because -1 is returned on error.
                  * Therefore, we must restrict the length to SSIZE_MAX to                   * Therefore, we must restrict the length to SSIZE_MAX to
Line 951  do_sys_recvmsg_so(struct lwp *l, int s, 
Line 952  do_sys_recvmsg_so(struct lwp *l, int s, 
         auio.uio_vmspace = l->l_proc->p_vmspace;          auio.uio_vmspace = l->l_proc->p_vmspace;
   
         tiov = auio.uio_iov;          tiov = auio.uio_iov;
         for (i = 0; i < mp->msg_iovlen; i++, tiov++) {          for (i = 0; i < auio.uio_iovcnt; i++, tiov++) {
                 /*                  /*
                  * Reads return ssize_t because -1 is returned on error.                   * Reads return ssize_t because -1 is returned on error.
                  * Therefore we must restrict the length to SSIZE_MAX to                   * Therefore we must restrict the length to SSIZE_MAX to

Legend:
Removed from v.1.173.2.3  
changed lines
  Added in v.1.173.2.4

CVSweb <webmaster@jp.NetBSD.org>