Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/yamt-uio_vmspace]: src/sys/compat/ibcs2 adapt compat/ibcs2.



details:   https://anonhg.NetBSD.org/src/rev/bf6fce56c082
branches:  yamt-uio_vmspace
changeset: 586713:bf6fce56c082
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Feb 05 12:48:22 2006 +0000

description:
adapt compat/ibcs2.

diffstat:

 sys/compat/ibcs2/ibcs2_misc.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 44f6a9c527e4 -r bf6fce56c082 sys/compat/ibcs2/ibcs2_misc.c
--- a/sys/compat/ibcs2/ibcs2_misc.c     Sun Feb 05 12:45:28 2006 +0000
+++ b/sys/compat/ibcs2/ibcs2_misc.c     Sun Feb 05 12:48:22 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ibcs2_misc.c,v 1.76 2005/12/11 12:20:02 christos Exp $ */
+/*     $NetBSD: ibcs2_misc.c,v 1.76.2.1 2006/02/05 12:48:22 yamt Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -95,7 +95,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.76 2005/12/11 12:20:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.76.2.1 2006/02/05 12:48:22 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -441,10 +441,9 @@
        auio.uio_iov = &aiov;
        auio.uio_iovcnt = 1;
        auio.uio_rw = UIO_READ;
-       auio.uio_segflg = UIO_SYSSPACE;
-       auio.uio_lwp = NULL;
        auio.uio_resid = buflen;
        auio.uio_offset = off;
+       UIO_SETUP_SYSSPACE(&auio);
        /*
         * First we read into the malloc'ed buffer, then
         * we massage it into user space, one record at a time.
@@ -580,10 +579,9 @@
        auio.uio_iov = &aiov;
        auio.uio_iovcnt = 1;
        auio.uio_rw = UIO_READ;
-       auio.uio_segflg = UIO_SYSSPACE;
-       auio.uio_lwp = NULL;
        auio.uio_resid = buflen;
        auio.uio_offset = off;
+       UIO_SETUP_SYSSPACE(&auio);
        /*
         * First we read into the malloc'ed buffer, then
         * we massage it into user space, one record at a time.



Home | Main Index | Thread Index | Old Index