diff options
| author | skrll <skrll@NetBSD.org> | 2004-09-17 14:11:20 +0000 |
|---|---|---|
| committer | skrll <skrll@NetBSD.org> | 2004-09-17 14:11:20 +0000 |
| commit | f7155e40f62255be337a10deda4cc2bb15930fde (patch) | |
| tree | 102c9d7980f741f0bb19cf5850ab1a918c4d1f0e /sys/compat/ibcs2 | |
| parent | 22ce35857effb2840d84bddc604b12b9d317738a (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/ibcs2')
| -rw-r--r-- | sys/compat/ibcs2/ibcs2_exec_coff.c | 8 | ||||
| -rw-r--r-- | sys/compat/ibcs2/ibcs2_exec_xout.c | 6 | ||||
| -rw-r--r-- | sys/compat/ibcs2/ibcs2_misc.c | 8 |
3 files changed, 11 insertions, 11 deletions
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; /* |
