* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
if (uap->name && (error = copyin((caddr_t)uap->anamelen,
(caddr_t)&namelen, sizeof (namelen))))
if (uap->name && (error = copyin((caddr_t)uap->anamelen,
(caddr_t)&namelen, sizeof (namelen))))
}
{ struct socket *aso = so->so_q;
if (soqremque(aso, 1) == 0)
}
{ struct socket *aso = so->so_q;
if (soqremque(aso, 1) == 0)
#ifdef KTRACE
if (ktriov != NULL) {
if (error == 0)
ktrgenio(u.u_procp->p_tracep, s, UIO_WRITE,
#ifdef KTRACE
if (ktriov != NULL) {
if (error == 0)
ktrgenio(u.u_procp->p_tracep, s, UIO_WRITE,
if (uap->fromlenaddr) {
if (error = copyin((caddr_t)uap->fromlenaddr,
(caddr_t)&msg.msg_namelen, sizeof (msg.msg_namelen)))
if (uap->fromlenaddr) {
if (error = copyin((caddr_t)uap->fromlenaddr,
(caddr_t)&msg.msg_namelen, sizeof (msg.msg_namelen)))
- return (recvit(uap->s, &msg, (caddr_t)uap->fromlenaddr));
+ RETURN (recvit(uap->s, &msg, (caddr_t)uap->fromlenaddr, retval));
* overlays the new one, missing only the flags, and with the (old) access
* rights where the control fields are now.
*/
* overlays the new one, missing only the flags, and with the (old) access
* rights where the control fields are now.
*/
- error = recvit(uap->s, &msg, (caddr_t)&uap->msg->msg_namelen);
+ error = recvit(uap->s, &msg, (caddr_t)&uap->msg->msg_namelen, retval);
if (msg.msg_controllen && error == 0)
error = copyout((caddr_t)&msg.msg_controllen,
if (msg.msg_controllen && error == 0)
error = copyout((caddr_t)&msg.msg_controllen,
if (error = copyin((caddr_t)uiov, (caddr_t)iov,
(unsigned)(msg.msg_iovlen * sizeof (struct iovec))))
goto done;
if (error = copyin((caddr_t)uiov, (caddr_t)iov,
(unsigned)(msg.msg_iovlen * sizeof (struct iovec))))
goto done;
- if ((error = recvit(uap->s, &msg, (caddr_t)0)) == 0) {
+ if ((error = recvit(uap->s, &msg, (caddr_t)0, retval)) == 0) {
so = (struct socket *)fp->f_data;
m = m_getclr(M_WAIT, MT_SONAME);
if (m == NULL)
so = (struct socket *)fp->f_data;
m = m_getclr(M_WAIT, MT_SONAME);
if (m == NULL)
if (error = (*so->so_proto->pr_usrreq)(so, PRU_SOCKADDR, 0, m, 0))
goto bad;
if (len > m->m_len)
if (error = (*so->so_proto->pr_usrreq)(so, PRU_SOCKADDR, 0, m, 0))
goto bad;
if (len > m->m_len)
if (error = (*so->so_proto->pr_usrreq)(so, PRU_PEERADDR, 0, m, 0))
goto bad;
if (len > m->m_len)
if (error = (*so->so_proto->pr_usrreq)(so, PRU_PEERADDR, 0, m, 0))
goto bad;
if (len > m->m_len)
}
sockargs(mp, buf, buflen, type)
}
sockargs(mp, buf, buflen, type)