Deleted Added
full compact
sys_generic.c (63905) sys_generic.c (63974)
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94
1/*
2 * Copyright (c) 1982, 1986, 1989, 1993
3 * The Regents of the University of California. All rights reserved.
4 * (c) UNIX System Laboratories, Inc.
5 * All or some portions of this file are derived from material licensed
6 * to the University of California by American Telephone and Telegraph
7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8 * the permission of UNIX System Laboratories, Inc.

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

31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * SUCH DAMAGE.
37 *
38 * @(#)sys_generic.c 8.5 (Berkeley) 1/21/94
39 * $FreeBSD: head/sys/kern/sys_generic.c 63905 2000-07-27 03:45:18Z green $
39 * $FreeBSD: head/sys/kern/sys_generic.c 63974 2000-07-28 22:17:42Z peter $
40 */
41
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/sysproto.h>
47#include <sys/filedesc.h>

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

350 struct iovec aiov;
351 long cnt, error = 0;
352#ifdef KTRACE
353 struct iovec ktriov;
354 struct uio ktruio;
355 int didktr = 0;
356#endif
357
40 */
41
42#include "opt_ktrace.h"
43
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/sysproto.h>
47#include <sys/filedesc.h>

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

350 struct iovec aiov;
351 long cnt, error = 0;
352#ifdef KTRACE
353 struct iovec ktriov;
354 struct uio ktruio;
355 int didktr = 0;
356#endif
357
358 aiov.iov_base = (void *)buf;
358 aiov.iov_base = (void *)(uintptr_t)buf;
359 aiov.iov_len = nbyte;
360 auio.uio_iov = &aiov;
361 auio.uio_iovcnt = 1;
362 auio.uio_offset = offset;
363 if (nbyte > INT_MAX)
364 return (EINVAL);
365 auio.uio_resid = nbyte;
366 auio.uio_rw = UIO_WRITE;

--- 637 unchanged lines hidden ---
359 aiov.iov_len = nbyte;
360 auio.uio_iov = &aiov;
361 auio.uio_iovcnt = 1;
362 auio.uio_offset = offset;
363 if (nbyte > INT_MAX)
364 return (EINVAL);
365 auio.uio_resid = nbyte;
366 auio.uio_rw = UIO_WRITE;

--- 637 unchanged lines hidden ---