Deleted Added
full compact
kern_sendfile.c (145167) kern_sendfile.c (145883)
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

--- 19 unchanged lines hidden (view full) ---

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94
33 */
34
35#include <sys/cdefs.h>
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

--- 19 unchanged lines hidden (view full) ---

28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30 * SUCH DAMAGE.
31 *
32 * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94
33 */
34
35#include <sys/cdefs.h>
36__FBSDID("$FreeBSD: head/sys/kern/uipc_syscalls.c 145167 2005-04-16 18:46:29Z rwatson $");
36__FBSDID("$FreeBSD: head/sys/kern/uipc_syscalls.c 145883 2005-05-04 18:55:03Z emax $");
37
38#include "opt_compat.h"
39#include "opt_ktrace.h"
40#include "opt_mac.h"
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>

--- 1746 unchanged lines hidden (view full) ---

1791 */
1792 if (hdtr.headers != NULL) {
1793 error = copyinuio(hdtr.headers, hdtr.hdr_cnt, &hdr_uio);
1794 if (error)
1795 goto done;
1796 hdr_uio->uio_td = td;
1797 hdr_uio->uio_rw = UIO_WRITE;
1798 if (hdr_uio->uio_resid > 0) {
37
38#include "opt_compat.h"
39#include "opt_ktrace.h"
40#include "opt_mac.h"
41
42#include <sys/param.h>
43#include <sys/systm.h>
44#include <sys/kernel.h>

--- 1746 unchanged lines hidden (view full) ---

1791 */
1792 if (hdtr.headers != NULL) {
1793 error = copyinuio(hdtr.headers, hdtr.hdr_cnt, &hdr_uio);
1794 if (error)
1795 goto done;
1796 hdr_uio->uio_td = td;
1797 hdr_uio->uio_rw = UIO_WRITE;
1798 if (hdr_uio->uio_resid > 0) {
1799 m_header = m_uiotombuf(hdr_uio, M_DONTWAIT, 0);
1799 m_header = m_uiotombuf(hdr_uio, M_DONTWAIT, 0, 0);
1800 if (m_header == NULL)
1801 goto done;
1802 headersize = m_header->m_pkthdr.len;
1803 if (compat)
1804 sbytes += headersize;
1805 }
1806 }
1807 }

--- 321 unchanged lines hidden ---
1800 if (m_header == NULL)
1801 goto done;
1802 headersize = m_header->m_pkthdr.len;
1803 if (compat)
1804 sbytes += headersize;
1805 }
1806 }
1807 }

--- 321 unchanged lines hidden ---