Source-Changes-HG archive

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

[src/yamt-uio_vmspace]: src/sys/miscfs/procfs convert procfs.



details:   https://anonhg.NetBSD.org/src/rev/48105b1378a0
branches:  yamt-uio_vmspace
changeset: 586703:48105b1378a0
user:      yamt <yamt%NetBSD.org@localhost>
date:      Sun Jan 15 11:06:54 2006 +0000

description:
convert procfs.

diffstat:

 sys/miscfs/procfs/procfs_cmdline.c |  13 +++++--------
 sys/miscfs/procfs/procfs_subr.c    |   6 +++---
 2 files changed, 8 insertions(+), 11 deletions(-)

diffs (78 lines):

diff -r b01a8497c410 -r 48105b1378a0 sys/miscfs/procfs/procfs_cmdline.c
--- a/sys/miscfs/procfs/procfs_cmdline.c        Sun Jan 15 10:59:43 2006 +0000
+++ b/sys/miscfs/procfs/procfs_cmdline.c        Sun Jan 15 11:06:54 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_cmdline.c,v 1.20 2005/12/11 12:24:51 christos Exp $     */
+/*     $NetBSD: procfs_cmdline.c,v 1.20.2.1 2006/01/15 11:06:54 yamt Exp $     */
 
 /*
  * Copyright (c) 1999 Jaromir Dolecek <dolecek%ics.muni.cz@localhost>
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_cmdline.c,v 1.20 2005/12/11 12:24:51 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_cmdline.c,v 1.20.2.1 2006/01/15 11:06:54 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -116,9 +116,8 @@
        auio.uio_iovcnt = 1;
        auio.uio_offset = (vaddr_t)p->p_psstr;
        auio.uio_resid = sizeof(pss);
-       auio.uio_segflg = UIO_SYSSPACE;
        auio.uio_rw = UIO_READ;
-       auio.uio_lwp = NULL;
+       UIO_SETUP_SYSSPACE(&auio);
        error = uvm_io(&p->p_vmspace->vm_map, &auio);
        if (error)
                goto bad;
@@ -132,9 +131,8 @@
        auio.uio_iovcnt = 1;
        auio.uio_offset = (vaddr_t)pss.ps_argvstr;
        auio.uio_resid = sizeof(argv);
-       auio.uio_segflg = UIO_SYSSPACE;
        auio.uio_rw = UIO_READ;
-       auio.uio_lwp = NULL;
+       UIO_SETUP_SYSSPACE(&auio);
        error = uvm_io(&p->p_vmspace->vm_map, &auio);
        if (error)
                goto bad;
@@ -155,9 +153,8 @@
                auio.uio_offset = argv + len;
                xlen = PAGE_SIZE - ((argv + len) & PAGE_MASK);
                auio.uio_resid = xlen;
-               auio.uio_segflg = UIO_SYSSPACE;
                auio.uio_rw = UIO_READ;
-               auio.uio_lwp = NULL;
+               UIO_SETUP_SYSSPACE(&auio);
                error = uvm_io(&p->p_vmspace->vm_map, &auio);
                if (error)
                        goto bad;
diff -r b01a8497c410 -r 48105b1378a0 sys/miscfs/procfs/procfs_subr.c
--- a/sys/miscfs/procfs/procfs_subr.c   Sun Jan 15 10:59:43 2006 +0000
+++ b/sys/miscfs/procfs/procfs_subr.c   Sun Jan 15 11:06:54 2006 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: procfs_subr.c,v 1.67 2005/12/11 12:24:51 christos Exp $        */
+/*     $NetBSD: procfs_subr.c,v 1.67.2.1 2006/01/15 11:06:54 yamt Exp $        */
 
 /*
  * Copyright (c) 1993
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.67 2005/12/11 12:24:51 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: procfs_subr.c,v 1.67.2.1 2006/01/15 11:06:54 yamt Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -314,7 +314,7 @@
        if (uio->uio_rw == UIO_WRITE && p == initproc && securelevel > -1)
                return EPERM;
 
-       curl = uio->uio_lwp;
+       curl = curlwp;
 
        /* XXX NJWLWP
         * The entire procfs interface needs work to be useful to



Home | Main Index | Thread Index | Old Index