summaryrefslogtreecommitdiff
path: root/sys/compat
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2004-09-17 14:11:20 +0000
committerskrll <skrll@NetBSD.org>2004-09-17 14:11:20 +0000
commitf7155e40f62255be337a10deda4cc2bb15930fde (patch)
tree102c9d7980f741f0bb19cf5850ab1a918c4d1f0e /sys/compat
parent22ce35857effb2840d84bddc604b12b9d317738a (diff)
There's no need to pass a proc value when using UIO_SYSSPACE with
vn_rdwr(9) and uiomove(9). OK'd by Jason Thorpe
Diffstat (limited to 'sys/compat')
-rw-r--r--sys/compat/darwin/darwin_iohidsystem.c6
-rw-r--r--sys/compat/ibcs2/ibcs2_exec_coff.c8
-rw-r--r--sys/compat/ibcs2/ibcs2_exec_xout.c6
-rw-r--r--sys/compat/ibcs2/ibcs2_misc.c8
-rw-r--r--sys/compat/irix/irix_dirent.c8
-rw-r--r--sys/compat/linux/common/linux_file64.c6
-rw-r--r--sys/compat/linux/common/linux_misc.c6
-rw-r--r--sys/compat/linux/common/linux_uselib.c6
-rw-r--r--sys/compat/netbsd32/netbsd32_core.c8
-rw-r--r--sys/compat/osf1/osf1_exec_ecoff.c6
-rw-r--r--sys/compat/sunos/sunos_misc.c6
-rw-r--r--sys/compat/sunos32/sunos32_misc.c6
-rw-r--r--sys/compat/svr4/svr4_misc.c8
-rw-r--r--sys/compat/svr4_32/svr4_32_misc.c8
14 files changed, 48 insertions, 48 deletions
diff --git a/sys/compat/darwin/darwin_iohidsystem.c b/sys/compat/darwin/darwin_iohidsystem.c
index 198c384f68c..d1cf2b60752 100644
--- a/sys/compat/darwin/darwin_iohidsystem.c
+++ b/sys/compat/darwin/darwin_iohidsystem.c
@@ -1,4 +1,4 @@
-/* $NetBSD: darwin_iohidsystem.c,v 1.25 2003/12/09 17:13:19 manu Exp $ */
+/* $NetBSD: darwin_iohidsystem.c,v 1.26 2004/09/17 14:11:23 skrll Exp $ */
/*-
* Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: darwin_iohidsystem.c,v 1.25 2003/12/09 17:13:19 manu Exp $");
+__KERNEL_RCSID(0, "$NetBSD: darwin_iohidsystem.c,v 1.26 2004/09/17 14:11:23 skrll Exp $");
#include "ioconf.h"
#include "wsmux.h"
@@ -477,7 +477,7 @@ darwin_iohidsystem_thread(args)
auio.uio_offset = 0;
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_rw = UIO_READ;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
if ((error = (wsmux->d_read)(dev, &auio, 0)) != 0) {
#ifdef DEBUG_DARWIN
diff --git a/sys/compat/ibcs2/ibcs2_exec_coff.c b/sys/compat/ibcs2/ibcs2_exec_coff.c
index 5608bc832e8..b860c11ef81 100644
--- a/sys/compat/ibcs2/ibcs2_exec_coff.c
+++ b/sys/compat/ibcs2/ibcs2_exec_coff.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_exec_coff.c,v 1.11 2003/11/19 15:46:16 christos Exp $ */
+/* $NetBSD: ibcs2_exec_coff.c,v 1.12 2004/09/17 14:11:23 skrll Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.11 2003/11/19 15:46:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_coff.c,v 1.12 2004/09/17 14:11:23 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -333,7 +333,7 @@ coff_find_section(p, vp, fp, sh, s_type)
siz = sizeof(struct coff_scnhdr);
error = vn_rdwr(UIO_READ, vp, (caddr_t) sh,
siz, pos, UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred,
- &resid, p);
+ &resid, NULL);
if (error) {
DPRINTF(("section hdr %d read error %d\n", i, error));
return error;
@@ -461,7 +461,7 @@ exec_ibcs2_coff_prep_zmagic(p, epp, fp, ap)
error = vn_rdwr(UIO_READ, epp->ep_vp, (caddr_t) buf,
len, sh.s_scnptr,
UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred,
- &resid, p);
+ &resid, NULL);
if (error) {
DPRINTF(("shlib section read error %d\n", error));
free(buf, M_TEMP);
diff --git a/sys/compat/ibcs2/ibcs2_exec_xout.c b/sys/compat/ibcs2/ibcs2_exec_xout.c
index 9185955f073..47d7585a086 100644
--- a/sys/compat/ibcs2/ibcs2_exec_xout.c
+++ b/sys/compat/ibcs2/ibcs2_exec_xout.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_exec_xout.c,v 1.8 2003/11/19 15:46:16 christos Exp $ */
+/* $NetBSD: ibcs2_exec_xout.c,v 1.9 2004/09/17 14:11:23 skrll Exp $ */
/*
* Copyright (c) 1994, 1995, 1998 Scott Bartram
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_xout.c,v 1.8 2003/11/19 15:46:16 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_exec_xout.c,v 1.9 2004/09/17 14:11:23 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -125,7 +125,7 @@ exec_ibcs2_xout_prep_nmagic(p, epp, xp, xep)
error = vn_rdwr(UIO_READ, epp->ep_vp, (caddr_t)xs,
segsize, xep->xe_segpos,
UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred,
- &resid, p);
+ &resid, NULL);
if (error) {
DPRINTF(("segment table read error %d\n", error));
free(xs, M_TEMP);
diff --git a/sys/compat/ibcs2/ibcs2_misc.c b/sys/compat/ibcs2/ibcs2_misc.c
index 7abbae4df5f..4fd3db1f518 100644
--- a/sys/compat/ibcs2/ibcs2_misc.c
+++ b/sys/compat/ibcs2/ibcs2_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ibcs2_misc.c,v 1.69 2004/03/09 03:18:03 atatat Exp $ */
+/* $NetBSD: ibcs2_misc.c,v 1.70 2004/09/17 14:11:23 skrll Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -95,7 +95,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.69 2004/03/09 03:18:03 atatat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ibcs2_misc.c,v 1.70 2004/09/17 14:11:23 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -446,7 +446,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
@@ -579,7 +579,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
diff --git a/sys/compat/irix/irix_dirent.c b/sys/compat/irix/irix_dirent.c
index cfa2eabd80f..36946e1334c 100644
--- a/sys/compat/irix/irix_dirent.c
+++ b/sys/compat/irix/irix_dirent.c
@@ -1,4 +1,4 @@
-/* $NetBSD: irix_dirent.c,v 1.11 2003/06/29 22:29:22 fvdl Exp $ */
+/* $NetBSD: irix_dirent.c,v 1.12 2004/09/17 14:11:23 skrll Exp $ */
/*-
* Copyright (c) 1994, 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: irix_dirent.c,v 1.11 2003/06/29 22:29:22 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: irix_dirent.c,v 1.12 2004/09/17 14:11:23 skrll Exp $");
#include <sys/types.h>
#include <sys/signal.h>
@@ -124,7 +124,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
@@ -281,7 +281,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
diff --git a/sys/compat/linux/common/linux_file64.c b/sys/compat/linux/common/linux_file64.c
index cdb9fc9ce06..4eebacd6e5f 100644
--- a/sys/compat/linux/common/linux_file64.c
+++ b/sys/compat/linux/common/linux_file64.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_file64.c,v 1.22 2003/08/10 20:16:27 jdolecek Exp $ */
+/* $NetBSD: linux_file64.c,v 1.23 2004/09/17 14:11:24 skrll Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.22 2003/08/10 20:16:27 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_file64.c,v 1.23 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -449,7 +449,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
diff --git a/sys/compat/linux/common/linux_misc.c b/sys/compat/linux/common/linux_misc.c
index ef0207cf716..baba4949cf7 100644
--- a/sys/compat/linux/common/linux_misc.c
+++ b/sys/compat/linux/common/linux_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_misc.c,v 1.129 2004/09/13 20:09:44 jdolecek Exp $ */
+/* $NetBSD: linux_misc.c,v 1.130 2004/09/17 14:11:24 skrll Exp $ */
/*-
* Copyright (c) 1995, 1998, 1999 The NetBSD Foundation, Inc.
@@ -64,7 +64,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.129 2004/09/13 20:09:44 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_misc.c,v 1.130 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -808,7 +808,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
diff --git a/sys/compat/linux/common/linux_uselib.c b/sys/compat/linux/common/linux_uselib.c
index bf61a2b50c9..8a6be4869f5 100644
--- a/sys/compat/linux/common/linux_uselib.c
+++ b/sys/compat/linux/common/linux_uselib.c
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_uselib.c,v 1.12 2003/06/29 22:29:33 fvdl Exp $ */
+/* $NetBSD: linux_uselib.c,v 1.13 2004/09/17 14:11:24 skrll Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_uselib.c,v 1.12 2003/06/29 22:29:33 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_uselib.c,v 1.13 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -119,7 +119,7 @@ linux_sys_uselib(l, v, retval)
if ((error = vn_rdwr(UIO_READ, vp, (caddr_t) &hdr, LINUX_AOUT_HDR_SIZE,
0, UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred,
- &rem, p))) {
+ &rem, NULL))) {
vrele(vp);
return error;
}
diff --git a/sys/compat/netbsd32/netbsd32_core.c b/sys/compat/netbsd32/netbsd32_core.c
index ecc3fc415c4..6b624c54b8d 100644
--- a/sys/compat/netbsd32/netbsd32_core.c
+++ b/sys/compat/netbsd32/netbsd32_core.c
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_core.c,v 1.9 2003/09/15 18:35:02 christos Exp $ */
+/* $NetBSD: netbsd32_core.c,v 1.10 2004/09/17 14:11:24 skrll Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: netbsd32_core.c,v 1.9 2003/09/15 18:35:02 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: netbsd32_core.c,v 1.10 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -114,7 +114,7 @@ coredump_netbsd32(struct lwp *l, struct vnode *vp, struct ucred *cred)
/* Now write out the core header. */
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cs.core,
(int)cs.core.c_hdrsize, (off_t)0,
- UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, NULL, p);
+ UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
return (error);
}
@@ -145,7 +145,7 @@ coredump_writesegs_netbsd32(struct proc *p, struct vnode *vp,
error = vn_rdwr(UIO_WRITE, vp,
(caddr_t)&cseg, cs->core.c_seghdrsize,
cs->offset, UIO_SYSSPACE,
- IO_NODELOCKED|IO_UNIT, cred, NULL, p);
+ IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return (error);
diff --git a/sys/compat/osf1/osf1_exec_ecoff.c b/sys/compat/osf1/osf1_exec_ecoff.c
index 5238440a2e2..6c520ac5e41 100644
--- a/sys/compat/osf1/osf1_exec_ecoff.c
+++ b/sys/compat/osf1/osf1_exec_ecoff.c
@@ -1,4 +1,4 @@
-/* $NetBSD: osf1_exec_ecoff.c,v 1.9 2003/08/08 18:57:07 christos Exp $ */
+/* $NetBSD: osf1_exec_ecoff.c,v 1.10 2004/09/17 14:11:24 skrll Exp $ */
/*
* Copyright (c) 1999 Christopher G. Demetriou. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: osf1_exec_ecoff.c,v 1.9 2003/08/08 18:57:07 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: osf1_exec_ecoff.c,v 1.10 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -256,7 +256,7 @@ osf1_exec_ecoff_dynamic(struct proc *p, struct exec_package *epp)
*/
if ((error = vn_rdwr(UIO_READ, ldr_vp, (caddr_t)&ldr_exechdr,
sizeof ldr_exechdr, 0, UIO_SYSSPACE, 0, p->p_ucred,
- &resid, p)) != 0)
+ &resid, NULL)) != 0)
goto bad;
if (resid != 0) {
error = ENOEXEC;
diff --git a/sys/compat/sunos/sunos_misc.c b/sys/compat/sunos/sunos_misc.c
index ce71d9b3b8f..e648ea4dfa5 100644
--- a/sys/compat/sunos/sunos_misc.c
+++ b/sys/compat/sunos/sunos_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos_misc.c,v 1.129 2004/04/25 06:25:52 matt Exp $ */
+/* $NetBSD: sunos_misc.c,v 1.130 2004/09/17 14:11:24 skrll Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.129 2004/04/25 06:25:52 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos_misc.c,v 1.130 2004/09/17 14:11:24 skrll Exp $");
#if defined(_KERNEL_OPT)
#include "opt_nfsserver.h"
@@ -524,7 +524,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
diff --git a/sys/compat/sunos32/sunos32_misc.c b/sys/compat/sunos32/sunos32_misc.c
index aff34dd1dfc..8381cba5024 100644
--- a/sys/compat/sunos32/sunos32_misc.c
+++ b/sys/compat/sunos32/sunos32_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: sunos32_misc.c,v 1.27 2004/04/25 06:02:20 matt Exp $ */
+/* $NetBSD: sunos32_misc.c,v 1.28 2004/09/17 14:11:24 skrll Exp $ */
/* from :NetBSD: sunos_misc.c,v 1.107 2000/12/01 19:25:10 jdolecek Exp */
/*
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.27 2004/04/25 06:02:20 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunos32_misc.c,v 1.28 2004/09/17 14:11:24 skrll Exp $");
#define COMPAT_SUNOS 1
@@ -742,7 +742,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
diff --git a/sys/compat/svr4/svr4_misc.c b/sys/compat/svr4/svr4_misc.c
index 501e01cc25a..8fe654d0e2d 100644
--- a/sys/compat/svr4/svr4_misc.c
+++ b/sys/compat/svr4/svr4_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_misc.c,v 1.109 2004/04/21 02:40:05 christos Exp $ */
+/* $NetBSD: svr4_misc.c,v 1.110 2004/09/17 14:11:24 skrll Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_misc.c,v 1.109 2004/04/21 02:40:05 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_misc.c,v 1.110 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -302,7 +302,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
@@ -422,7 +422,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
diff --git a/sys/compat/svr4_32/svr4_32_misc.c b/sys/compat/svr4_32/svr4_32_misc.c
index 41b343d2293..ddf38ff9587 100644
--- a/sys/compat/svr4_32/svr4_32_misc.c
+++ b/sys/compat/svr4_32/svr4_32_misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: svr4_32_misc.c,v 1.28 2004/04/22 14:32:09 hannken Exp $ */
+/* $NetBSD: svr4_32_misc.c,v 1.29 2004/09/17 14:11:24 skrll Exp $ */
/*-
* Copyright (c) 1994 The NetBSD Foundation, Inc.
@@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.28 2004/04/22 14:32:09 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: svr4_32_misc.c,v 1.29 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -304,7 +304,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*
@@ -424,7 +424,7 @@ again:
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
- auio.uio_procp = p;
+ auio.uio_procp = NULL;
auio.uio_resid = buflen;
auio.uio_offset = off;
/*