uipc_syscalls.c (43195) | uipc_syscalls.c (43301) |
---|---|
1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * sendfile(2) and related extensions: 6 * Copyright (c) 1998, David Greenman. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 | 1/* 2 * Copyright (c) 1982, 1986, 1989, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * sendfile(2) and related extensions: 6 * Copyright (c) 1998, David Greenman. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 |
37 * $Id: uipc_syscalls.c,v 1.53 1999/01/24 03:49:58 dillon Exp $ | 37 * $Id: uipc_syscalls.c,v 1.54 1999/01/25 16:53:53 fenner Exp $ |
38 */ 39 40#include "opt_compat.h" 41#include "opt_ktrace.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/kernel.h> --- 746 unchanged lines hidden (view full) --- 792 793 if (len >= m->m_len) 794 tocopy = m->m_len; 795 else { 796 mp->msg_flags |= MSG_CTRUNC; 797 tocopy = len; 798 } 799 | 38 */ 39 40#include "opt_compat.h" 41#include "opt_ktrace.h" 42 43#include <sys/param.h> 44#include <sys/systm.h> 45#include <sys/kernel.h> --- 746 unchanged lines hidden (view full) --- 792 793 if (len >= m->m_len) 794 tocopy = m->m_len; 795 else { 796 mp->msg_flags |= MSG_CTRUNC; 797 tocopy = len; 798 } 799 |
800 if (error = copyout((caddr_t)mtod(m, caddr_t), 801 ctlbuf, tocopy)) | 800 if ((error = copyout((caddr_t)mtod(m, caddr_t), 801 ctlbuf, tocopy)) != 0) |
802 goto out; 803 804 ctlbuf += tocopy; 805 len -= tocopy; 806 m = m->m_next; 807 } 808 mp->msg_controllen = ctlbuf - mp->msg_control; 809 } --- 896 unchanged lines hidden --- | 802 goto out; 803 804 ctlbuf += tocopy; 805 len -= tocopy; 806 m = m->m_next; 807 } 808 mp->msg_controllen = ctlbuf - mp->msg_control; 809 } --- 896 unchanged lines hidden --- |