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
This commit is contained in:
skrll 2004-09-17 14:11:20 +00:00
parent 22ce35857e
commit f7155e40f6
65 changed files with 241 additions and 253 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.83 2004/08/28 22:12:40 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.84 2004/09/17 14:11:20 skrll Exp $ */
/*
* Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University.
@ -29,7 +29,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.83 2004/08/28 22:12:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.84 2004/09/17 14:11:20 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -58,7 +58,6 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
int error;
struct md_coredump cpustate;
struct coreseg cseg;
struct proc *p = l->l_proc;
CORE_SETMAGIC(*chdr, COREMAGIC, MID_MACHINE, 0);
chdr->c_hdrsize = ALIGN(sizeof(*chdr));
@ -80,13 +79,13 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cpustate, sizeof(cpustate),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (!error)
chdr->c_nseg++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.7 2003/12/30 12:33:15 pk Exp $ */
/* $NetBSD: autoconf.c,v 1.8 2004/09/17 14:11:21 skrll Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.7 2003/12/30 12:33:15 pk Exp $");
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.8 2004/09/17 14:11:21 skrll Exp $");
#include "opt_multiprocessor.h"
@ -219,7 +219,7 @@ matchbiosdisks()
continue;
}
error = vn_rdwr(UIO_READ, tv, mbr, DEV_BSIZE, 0,
UIO_SYSSPACE, 0, NOCRED, NULL, 0);
UIO_SYSSPACE, 0, NOCRED, NULL, NULL);
VOP_CLOSE(tv, FREAD, NOCRED, 0);
if (error) {
#ifdef GEOM_DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_machdep.c,v 1.10 2004/03/25 15:32:27 drochner Exp $ */
/* $NetBSD: netbsd32_machdep.c,v 1.11 2004/09/17 14:11:21 skrll Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.10 2004/03/25 15:32:27 drochner Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.11 2004/09/17 14:11:21 skrll Exp $");
#include "opt_compat_netbsd.h"
#include "opt_execfmt.h"
@ -420,7 +420,6 @@ int
cpu_coredump32(struct lwp *l, struct vnode *vp, struct ucred *cred,
struct core32 *chdr)
{
struct proc *p = l->l_proc;
struct md_core32 md_core;
struct coreseg cseg;
int error;
@ -446,13 +445,13 @@ cpu_coredump32(struct lwp *l, struct vnode *vp, struct ucred *cred,
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred,
NULL, p);
NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.8 2004/08/28 22:12:40 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.9 2004/09/17 14:11:21 skrll Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.8 2004/08/28 22:12:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.9 2004/09/17 14:11:21 skrll Exp $");
#include "opt_user_ldt.h"
#include "opt_largepages.h"
@ -291,7 +291,6 @@ cpu_coredump(l, vp, cred, chdr)
struct ucred *cred;
struct core *chdr;
{
struct proc *p = l->l_proc;
struct md_core md_core;
struct coreseg cseg;
int error;
@ -317,13 +316,13 @@ cpu_coredump(l, vp, cred, chdr)
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred,
NULL, p);
NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep_arm.c,v 1.7 2003/06/29 22:28:08 fvdl Exp $ */
/* $NetBSD: vm_machdep_arm.c,v 1.8 2004/09/17 14:11:21 skrll Exp $ */
/*
* Copyright (c) 1994-1998 Mark Brinicombe.
@ -37,7 +37,7 @@
#include <sys/param.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep_arm.c,v 1.7 2003/06/29 22:28:08 fvdl Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep_arm.c,v 1.8 2004/09/17 14:11:21 skrll Exp $");
#include <sys/core.h>
#include <sys/exec.h>
@ -58,7 +58,6 @@ int
cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
struct core *chdr)
{
struct proc *p = l->l_proc;
int error;
struct {
struct reg regs;
@ -86,13 +85,13 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cpustate, sizeof(cpustate),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.13 2004/08/28 22:12:40 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.14 2004/09/17 14:11:21 skrll Exp $ */
/* $OpenBSD: vm_machdep.c,v 1.25 2001/09/19 20:50:56 mickey Exp $ */
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.13 2004/08/28 22:12:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.14 2004/09/17 14:11:21 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -63,7 +63,6 @@ int
cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
struct core *core)
{
struct proc *p = l->l_proc;
struct md_coredump md_core;
struct coreseg cseg;
off_t off;
@ -81,7 +80,7 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
cseg.c_size = core->c_cpusize;
#define write(vp, addr, n) vn_rdwr(UIO_WRITE, (vp), (caddr_t)(addr), (n), off, \
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, NULL, p)
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, NULL, NULL)
off = core->c_hdrsize;
if ((error = write(vp, &cseg, core->c_seghdrsize)))

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.77 2004/08/05 18:04:35 dbj Exp $ */
/* $NetBSD: autoconf.c,v 1.78 2004/09/17 14:11:21 skrll Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -44,7 +44,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.77 2004/08/05 18:04:35 dbj Exp $");
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.78 2004/09/17 14:11:21 skrll Exp $");
#include "opt_compat_oldboot.h"
#include "opt_multiprocessor.h"
@ -254,7 +254,7 @@ matchbiosdisks(void)
continue;
}
error = vn_rdwr(UIO_READ, tv, mbr, DEV_BSIZE, 0,
UIO_SYSSPACE, 0, NOCRED, NULL, 0);
UIO_SYSSPACE, 0, NOCRED, NULL, NULL);
VOP_CLOSE(tv, FREAD, NOCRED, 0);
if (error) {
#ifdef GEOM_DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.117 2004/08/28 22:12:40 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.118 2004/09/17 14:11:21 skrll Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@ -80,7 +80,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.117 2004/08/28 22:12:40 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.118 2004/09/17 14:11:21 skrll Exp $");
#include "opt_user_ldt.h"
#include "opt_largepages.h"
@ -277,7 +277,6 @@ int
cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
struct core *chdr)
{
struct proc *p = l->l_proc;
struct md_core md_core;
struct coreseg cseg;
int error;
@ -303,13 +302,13 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred,
NULL, p);
NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.9 2004/08/28 22:12:41 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.10 2004/09/17 14:11:21 skrll Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.9 2004/08/28 22:12:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.10 2004/09/17 14:11:21 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -211,7 +211,6 @@ int
cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
struct core *chdr)
{
struct proc *p = l->l_proc;
struct md_core md_core;
struct coreseg cseg;
int error;
@ -242,13 +241,13 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred,
NULL, p);
NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cpu_exec.c,v 1.45 2003/11/26 08:36:49 he Exp $ */
/* $NetBSD: cpu_exec.c,v 1.46 2004/09/17 14:11:21 skrll Exp $ */
/*
* Copyright (c) 1992, 1993
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.45 2003/11/26 08:36:49 he Exp $");
__KERNEL_RCSID(0, "$NetBSD: cpu_exec.c,v 1.46 2004/09/17 14:11:21 skrll Exp $");
#include "opt_compat_netbsd.h"
#include "opt_compat_ultrix.h"
@ -211,7 +211,7 @@ mips_elf_makecmds (p, epp)
if ((error = vn_rdwr(UIO_READ, epp->ep_vp, (caddr_t)&ph,
sizeof ph, ex->e_phoff + i * sizeof ph,
UIO_SYSSPACE, IO_NODELOCKED,
p->p_ucred, &resid, p))
p->p_ucred, &resid, NULL))
!= 0)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.103 2004/08/28 22:12:41 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.104 2004/09/17 14:11:21 skrll Exp $ */
/*
* Copyright (c) 1992, 1993
@ -79,7 +79,7 @@
#include "opt_ddb.h"
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.103 2004/08/28 22:12:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.104 2004/09/17 14:11:21 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -275,7 +275,6 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
struct frame frame;
struct fpreg fpregs;
} cpustate;
struct proc *p = l->l_proc;
CORE_SETMAGIC(*chdr, COREMAGIC, MID_MACHINE, 0);
chdr->c_hdrsize = ALIGN(sizeof(struct core));
@ -292,7 +291,7 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
cseg.c_size = chdr->c_cpusize;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;
@ -300,7 +299,7 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
(off_t)chdr->c_cpusize,
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize),
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT,
cred, NULL, p);
cred, NULL, NULL);
if (!error)
chdr->c_nseg++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.61 2004/08/28 22:12:41 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.62 2004/09/17 14:11:21 skrll Exp $ */
/*-
* Copyright (c) 1982, 1986 The Regents of the University of California.
@ -78,7 +78,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.61 2004/08/28 22:12:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.62 2004/09/17 14:11:21 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -267,7 +267,6 @@ cpu_coredump(l, vp, cred, chdr)
struct ucred *cred;
struct core *chdr;
{
struct proc *p = l->l_proc;
struct md_core md_core;
struct coreseg cseg;
int error;
@ -293,13 +292,13 @@ cpu_coredump(l, vp, cred, chdr)
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred,
NULL, p);
NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.61 2004/08/28 22:12:41 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.62 2004/09/17 14:11:21 skrll Exp $ */
/*
* Copyright (C) 1995, 1996 Wolfgang Solfrank.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.61 2004/08/28 22:12:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.62 2004/09/17 14:11:21 skrll Exp $");
#include "opt_altivec.h"
#include "opt_multiprocessor.h"
@ -243,7 +243,6 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
{
struct coreseg cseg;
struct md_coredump md_core;
struct proc *p = l->l_proc;
struct pcb *pcb = &l->l_addr->u_pcb;
int error;
@ -277,11 +276,11 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
if ((error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p)) != 0)
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL)) != 0)
return error;
if ((error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof md_core,
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p)) != 0)
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL)) != 0)
return error;
chdr->c_nseg++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: coff_exec.c,v 1.21 2003/08/11 12:58:43 christos Exp $ */
/* $NetBSD: coff_exec.c,v 1.22 2004/09/17 14:11:22 skrll Exp $ */
/*
* Copyright (c) 1994, 1995 Scott Bartram
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: coff_exec.c,v 1.21 2003/08/11 12:58:43 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: coff_exec.c,v 1.22 2004/09/17 14:11:22 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -198,7 +198,7 @@ coff_find_section(struct proc *p, struct vnode *vp, struct coff_filehdr *fp,
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;
@ -335,7 +335,7 @@ exec_coff_prep_zmagic(struct proc *p, struct exec_package *epp,
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));
return ENOEXEC;
@ -397,7 +397,7 @@ coff_load_shlib(struct proc *p, char *path, struct exec_package *epp)
siz = sizeof(struct coff_filehdr);
error = vn_rdwr(UIO_READ, nd.ni_vp, (caddr_t) fhp, siz, 0,
UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred, &resid, p);
UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred, &resid, NULL);
if (error) {
DPRINTF(("filehdr read error %d\n", error));
vrele(nd.ni_vp);

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.44 2004/08/28 22:12:41 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.45 2004/09/17 14:11:22 skrll Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc. All rights reserved.
@ -81,7 +81,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.44 2004/08/28 22:12:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.45 2004/09/17 14:11:22 skrll Exp $");
#include "opt_kstack_debug.h"
@ -341,13 +341,13 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred,
(int *)0, l->l_proc);
(int *)0, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, (int *)0, l->l_proc);
IO_NODELOCKED|IO_UNIT, cred, (int *)0, NULL);
if (error)
return error;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.9 2004/08/28 22:12:41 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.10 2004/09/17 14:11:22 skrll Exp $ */
/*
* Copyright 2002 Wasabi Systems, Inc.
@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.9 2004/08/28 22:12:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.10 2004/09/17 14:11:22 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -118,13 +118,13 @@ cpu_coredump(struct lwp *l, struct vnode *vp, struct ucred *cred,
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred,
NULL, p);
NULL, NULL);
if (error)
return (error);
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return (error);

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.80 2004/08/28 22:12:41 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.81 2004/09/17 14:11:22 skrll Exp $ */
/*
* Copyright (c) 1996
@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.80 2004/08/28 22:12:41 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.81 2004/09/17 14:11:22 skrll Exp $");
#include "opt_multiprocessor.h"
@ -371,13 +371,13 @@ cpu_coredump(l, vp, cred, chdr)
cseg.c_size = chdr->c_cpusize;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (!error)
chdr->c_nseg++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: netbsd32_machdep.c,v 1.42 2004/01/15 14:37:31 mrg Exp $ */
/* $NetBSD: netbsd32_machdep.c,v 1.43 2004/09/17 14:11:22 skrll Exp $ */
/*
* Copyright (c) 1998, 2001 Matthew R. Green
@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.42 2004/01/15 14:37:31 mrg Exp $");
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.43 2004/09/17 14:11:22 skrll Exp $");
#ifdef _KERNEL_OPT
#include "opt_compat_netbsd.h"
@ -617,7 +617,6 @@ cpu_coredump32(l, vp, cred, chdr)
int i, error;
struct md_coredump32 md_core;
struct coreseg32 cseg;
struct proc *p = l->l_proc;
CORE_SETMAGIC(*chdr, COREMAGIC, MID_MACHINE, 0);
chdr->c_hdrsize = ALIGN(sizeof(*chdr));
@ -658,13 +657,13 @@ cpu_coredump32(l, vp, cred, chdr)
cseg.c_size = chdr->c_cpusize;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (!error)
chdr->c_nseg++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.56 2004/08/28 22:12:42 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.57 2004/09/17 14:11:22 skrll Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.56 2004/08/28 22:12:42 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.57 2004/09/17 14:11:22 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -404,13 +404,13 @@ cpu_coredump(l, vp, cred, chdr)
cseg.c_size = chdr->c_cpusize;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, l->l_proc);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&md_core, sizeof(md_core),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, l->l_proc);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (!error)
chdr->c_nseg++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vm_machdep.c,v 1.84 2004/08/28 22:12:42 thorpej Exp $ */
/* $NetBSD: vm_machdep.c,v 1.85 2004/09/17 14:11:23 skrll Exp $ */
/*
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.84 2004/08/28 22:12:42 thorpej Exp $");
__KERNEL_RCSID(0, "$NetBSD: vm_machdep.c,v 1.85 2004/09/17 14:11:23 skrll Exp $");
#include "opt_compat_ultrix.h"
#include "opt_multiprocessor.h"
@ -238,7 +238,6 @@ cpu_coredump(l, vp, cred, chdr)
struct ucred *cred;
struct core *chdr;
{
struct proc *p = l->l_proc;
struct trapframe *tf;
struct md_coredump state;
struct coreseg cseg;
@ -258,13 +257,13 @@ cpu_coredump(l, vp, cred, chdr)
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&cseg, chdr->c_seghdrsize,
(off_t)chdr->c_hdrsize, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return error;
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&state, sizeof(state),
(off_t)(chdr->c_hdrsize + chdr->c_seghdrsize), UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (!error)
chdr->c_nseg++;

View File

@ -1,4 +1,4 @@
/* $NetBSD: autoconf.c,v 1.5 2004/04/25 14:40:02 cl Exp $ */
/* $NetBSD: autoconf.c,v 1.6 2004/09/17 14:11:23 skrll Exp $ */
/* NetBSD: autoconf.c,v 1.75 2003/12/30 12:33:22 pk Exp */
/*-
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.5 2004/04/25 14:40:02 cl Exp $");
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.6 2004/09/17 14:11:23 skrll Exp $");
#include "opt_compat_oldboot.h"
#include "opt_multiprocessor.h"
@ -274,7 +274,7 @@ matchbiosdisks(void)
continue;
}
error = vn_rdwr(UIO_READ, tv, mbr, DEV_BSIZE, 0,
UIO_SYSSPACE, 0, NOCRED, NULL, 0);
UIO_SYSSPACE, 0, NOCRED, NULL, NULL);
VOP_CLOSE(tv, FREAD, NOCRED, 0);
if (error) {
#ifdef GEOM_DEBUG

View File

@ -1,4 +1,4 @@
/* $NetBSD: coda_vfsops.c,v 1.38 2004/05/25 14:54:56 hannken Exp $ */
/* $NetBSD: coda_vfsops.c,v 1.39 2004/09/17 14:11:23 skrll Exp $ */
/*
*
@ -45,7 +45,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: coda_vfsops.c,v 1.38 2004/05/25 14:54:56 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: coda_vfsops.c,v 1.39 2004/09/17 14:11:23 skrll Exp $");
#ifdef _LKM
#define NVCODA 4
@ -269,7 +269,7 @@ coda_mount(vfsp, path, data, ndp, p)
MARK_INT_SAT(CODA_MOUNT_STATS);
return set_statvfs_info("/coda", UIO_SYSSPACE, "CODA", UIO_SYSSPACE, vfsp,
p);
NULL);
}
int

View File

@ -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

View File

@ -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);

View File

@ -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);

View File

@ -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;
/*

View File

@ -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;
/*

View File

@ -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;
/*

View File

@ -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;
/*

View File

@ -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;
}

View File

@ -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);

View File

@ -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;

View File

@ -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;
/*

View File

@ -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;
/*

View File

@ -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;
/*

View File

@ -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;
/*

View File

@ -1,4 +1,4 @@
/* $NetBSD: kloader.c,v 1.1 2004/07/06 13:09:18 uch Exp $ */
/* $NetBSD: kloader.c,v 1.2 2004/09/17 14:11:24 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002, 2004 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.1 2004/07/06 13:09:18 uch Exp $");
__KERNEL_RCSID(0, "$NetBSD: kloader.c,v 1.2 2004/09/17 14:11:24 skrll Exp $");
#include "debug_kloader.h"
@ -633,7 +633,7 @@ kloader_read(size_t ofs, size_t size, void *buf)
int error;
error = vn_rdwr(UIO_READ, vp, buf, size, ofs, UIO_SYSSPACE,
IO_NODELOCKED | IO_SYNC, p->p_ucred, &resid, p);
IO_NODELOCKED | IO_SYNC, p->p_ucred, &resid, NULL);
if (error)
PRINTF("read error.\n");

View File

@ -1,4 +1,4 @@
/* $NetBSD: ubtbcmfw.c,v 1.8 2004/04/23 17:25:25 itojun Exp $ */
/* $NetBSD: ubtbcmfw.c,v 1.9 2004/09/17 14:11:24 skrll Exp $ */
/*
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ubtbcmfw.c,v 1.8 2004/04/23 17:25:25 itojun Exp $");
__KERNEL_RCSID(0, "$NetBSD: ubtbcmfw.c,v 1.9 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -246,7 +246,7 @@ ubtbcmfw_load_file(usbd_device_handle dev, usbd_pipe_handle out,
for (offs = 0; ; offs += size) {
size = sizeof buf;
error = vn_rdwr(UIO_READ, vp, buf, size, offs, UIO_SYSSPACE,
IO_NODELOCKED | IO_SYNC, p->p_ucred, &resid, p);
IO_NODELOCKED | IO_SYNC, p->p_ucred, &resid, NULL);
size -= resid;
if (error || size == 0)
break;

View File

@ -1,4 +1,4 @@
/* $NetBSD: cd9660_vnops.c,v 1.9 2004/05/04 13:26:58 jrf Exp $ */
/* $NetBSD: cd9660_vnops.c,v 1.10 2004/09/17 14:11:24 skrll Exp $ */
/*-
* Copyright (c) 1994
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.9 2004/05/04 13:26:58 jrf Exp $");
__KERNEL_RCSID(0, "$NetBSD: cd9660_vnops.c,v 1.10 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -219,7 +219,7 @@ cd9660_getattr(v)
auio.uio_offset = 0;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_procp = ap->a_p;
auio.uio_procp = NULL;
auio.uio_resid = MAXPATHLEN;
rdlnk.a_uio = &auio;
rdlnk.a_vp = ap->a_vp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: smbfs_io.c,v 1.17 2004/05/04 13:26:58 jrf Exp $ */
/* $NetBSD: smbfs_io.c,v 1.18 2004/09/17 14:11:24 skrll Exp $ */
/*
* Copyright (c) 2000-2001, Boris Popov
@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smbfs_io.c,v 1.17 2004/05/04 13:26:58 jrf Exp $");
__KERNEL_RCSID(0, "$NetBSD: smbfs_io.c,v 1.18 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -313,7 +313,7 @@ smbfs_doio(struct buf *bp, struct ucred *cr, struct proc *p)
uiop->uio_iov = &io;
uiop->uio_iovcnt = 1;
uiop->uio_segflg = UIO_SYSSPACE;
uiop->uio_procp = p;
uiop->uio_procp = NULL;
smb_makescred(&scred, p, cr);

View File

@ -1,4 +1,4 @@
/* $NetBSD: union_subr.c,v 1.10 2004/05/12 02:07:39 jrf Exp $ */
/* $NetBSD: union_subr.c,v 1.11 2004/09/17 14:11:24 skrll Exp $ */
/*
* Copyright (c) 1994
@ -72,7 +72,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: union_subr.c,v 1.10 2004/05/12 02:07:39 jrf Exp $");
__KERNEL_RCSID(0, "$NetBSD: union_subr.c,v 1.11 2004/09/17 14:11:24 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -637,7 +637,7 @@ union_copyfile(fvp, tvp, cred, p)
* give up at the first sign of trouble.
*/
uio.uio_procp = p;
uio.uio_procp = NULL;
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_offset = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: core_elf32.c,v 1.13 2004/04/21 18:40:38 itojun Exp $ */
/* $NetBSD: core_elf32.c,v 1.14 2004/09/17 14:11:24 skrll Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(1, "$NetBSD: core_elf32.c,v 1.13 2004/04/21 18:40:38 itojun Exp $");
__KERNEL_RCSID(1, "$NetBSD: core_elf32.c,v 1.14 2004/09/17 14:11:24 skrll Exp $");
/* If not included by core_elf64.c, ELFSIZE won't be defined. */
#ifndef ELFSIZE
@ -152,7 +152,7 @@ ELFNAMEEND(coredump)(struct lwp *l, struct vnode *vp, struct ucred *cred)
/* Write out the ELF header. */
error = vn_rdwr(UIO_WRITE, vp, (caddr_t)&ehdr,
(int)sizeof(ehdr), (off_t)0,
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, NULL, p);
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
ws.offset = ehdr.e_phoff;
notestart = ws.offset + (sizeof(phdr) * cs.npsections);
@ -178,7 +178,7 @@ ELFNAMEEND(coredump)(struct lwp *l, struct vnode *vp, struct ucred *cred)
error = vn_rdwr(UIO_WRITE, vp,
(caddr_t)&phdr, sizeof(phdr),
ws.offset, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return (error);
@ -250,7 +250,7 @@ ELFNAMEEND(coredump_writeseghdrs)(struct proc *p, struct vnode *vp,
error = vn_rdwr(UIO_WRITE, vp,
(caddr_t)&phdr, sizeof(phdr),
ws->offset, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return (error);
@ -456,7 +456,7 @@ ELFNAMEEND(coredump_writenote)(struct proc *p, struct vnode *vp,
error = vn_rdwr(UIO_WRITE, vp,
(caddr_t) nhdr, sizeof(*nhdr),
offset, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return (error);
@ -465,7 +465,7 @@ ELFNAMEEND(coredump_writenote)(struct proc *p, struct vnode *vp,
error = vn_rdwr(UIO_WRITE, vp,
(caddr_t)name, nhdr->n_namesz,
offset, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
if (error)
return (error);
@ -474,7 +474,7 @@ ELFNAMEEND(coredump_writenote)(struct proc *p, struct vnode *vp,
error = vn_rdwr(UIO_WRITE, vp,
data, nhdr->n_descsz,
offset, UIO_SYSSPACE,
IO_NODELOCKED|IO_UNIT, cred, NULL, p);
IO_NODELOCKED|IO_UNIT, cred, NULL, NULL);
return (error);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: core_netbsd.c,v 1.7 2003/09/14 06:59:14 christos Exp $ */
/* $NetBSD: core_netbsd.c,v 1.8 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1997 Charles D. Cranor and Washington University.
@ -50,7 +50,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: core_netbsd.c,v 1.7 2003/09/14 06:59:14 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: core_netbsd.c,v 1.8 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -114,7 +114,7 @@ coredump_netbsd(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_netbsd(struct proc *p, struct vnode *vp, struct ucred *cred,
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);

View File

@ -1,4 +1,4 @@
/* $NetBSD: exec_subr.c,v 1.41 2003/08/29 01:44:02 junyoung Exp $ */
/* $NetBSD: exec_subr.c,v 1.42 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1993, 1994, 1996 Christopher G. Demetriou
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.41 2003/08/29 01:44:02 junyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: exec_subr.c,v 1.42 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -280,7 +280,7 @@ exec_read_from(struct proc *p, struct vnode *vp, u_long off, void *buf,
size_t resid;
if ((error = vn_rdwr(UIO_READ, vp, buf, size, off, UIO_SYSSPACE,
0, p->p_ucred, &resid, p)) != 0)
0, p->p_ucred, &resid, NULL)) != 0)
return error;
/*
* See if we got all of it

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_acct.c,v 1.57 2004/04/21 01:05:38 christos Exp $ */
/* $NetBSD: kern_acct.c,v 1.58 2004/09/17 14:11:25 skrll Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@ -71,7 +71,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.57 2004/04/21 01:05:38 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_acct.c,v 1.58 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -372,7 +372,7 @@ acct_process(p)
VOP_LEASE(acct_vp, p, p->p_ucred, LEASE_WRITE);
error = vn_rdwr(UIO_WRITE, acct_vp, (caddr_t)&acct,
sizeof(acct), (off_t)0, UIO_SYSSPACE, IO_APPEND|IO_UNIT,
acct_ucred, NULL, p);
acct_ucred, NULL, NULL);
if (error != 0)
log(LOG_ERR, "Accounting: write failed %d\n", error);

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_exec.c,v 1.189 2004/09/10 06:09:15 jdolecek Exp $ */
/* $NetBSD: kern_exec.c,v 1.190 2004/09/17 14:11:25 skrll Exp $ */
/*-
* Copyright (C) 1993, 1994, 1996 Christopher G. Demetriou
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.189 2004/09/10 06:09:15 jdolecek Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_exec.c,v 1.190 2004/09/17 14:11:25 skrll Exp $");
#include "opt_ktrace.h"
#include "opt_syscall_debug.h"
@ -272,7 +272,7 @@ check_exec(struct proc *p, struct exec_package *epp)
/* now we have the file, get the exec header */
uvn_attach(vp, VM_PROT_READ);
error = vn_rdwr(UIO_READ, vp, epp->ep_hdr, epp->ep_hdrlen, 0,
UIO_SYSSPACE, 0, p->p_ucred, &resid, p);
UIO_SYSSPACE, 0, p->p_ucred, &resid, NULL);
if (error)
goto bad2;
epp->ep_hdrvalid = epp->ep_hdrlen - resid;

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_verifiedexec.c,v 1.7 2003/11/18 13:13:03 martin Exp $ */
/* $NetBSD: kern_verifiedexec.c,v 1.8 2004/09/17 14:11:25 skrll Exp $ */
/*-
* Copyright (c) 2001, 2002 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: kern_verifiedexec.c,v 1.7 2003/11/18 13:13:03 martin Exp $");
__KERNEL_RCSID(0, "$NetBSD: kern_verifiedexec.c,v 1.8 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/mount.h>
@ -87,7 +87,7 @@ md5_fingerprint(struct vnode *vp, struct veriexec_inode_list *ip,
count = BUF_SIZE;
error = vn_rdwr(UIO_READ, vp, filebuf, count, j,
UIO_SYSSPACE, 0, p->p_ucred, &resid, p);
UIO_SYSSPACE, 0, p->p_ucred, &resid, NULL);
if (error) {
free(filebuf, M_TEMP);
@ -123,7 +123,7 @@ sha1_fingerprint(struct vnode *vp, struct veriexec_inode_list *ip,
count = BUF_SIZE;
error = vn_rdwr(UIO_READ, vp, filebuf, count, j,
UIO_SYSSPACE, 0, p->p_ucred, &resid, p);
UIO_SYSSPACE, 0, p->p_ucred, &resid, NULL);
if (error) {
free(filebuf, M_TEMP);

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_process.c,v 1.91 2004/06/22 02:06:55 christos Exp $ */
/* $NetBSD: sys_process.c,v 1.92 2004/09/17 14:11:25 skrll Exp $ */
/*-
* Copyright (c) 1982, 1986, 1989, 1993
@ -89,7 +89,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.91 2004/06/22 02:06:55 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: sys_process.c,v 1.92 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -314,7 +314,7 @@ sys_ptrace(l, v, retval)
uio.uio_resid = sizeof(tmp);
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_rw = write ? UIO_WRITE : UIO_READ;
uio.uio_procp = p;
uio.uio_procp = NULL;
error = process_domem(p, t, &uio);
if (!write)
*retval = tmp;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_getcwd.c,v 1.25 2004/03/23 13:22:05 junyoung Exp $ */
/* $NetBSD: vfs_getcwd.c,v 1.26 2004/09/17 14:11:25 skrll Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_getcwd.c,v 1.25 2004/03/23 13:22:05 junyoung Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_getcwd.c,v 1.26 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -195,7 +195,7 @@ unionread:
uio.uio_resid = dirbuflen;
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_rw = UIO_READ;
uio.uio_procp = p;
uio.uio_procp = NULL;
eofflag = 0;

View File

@ -1,4 +1,4 @@
/* $NetBSD: vfs_lookup.c,v 1.54 2003/12/08 14:23:33 hannken Exp $ */
/* $NetBSD: vfs_lookup.c,v 1.55 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.54 2003/12/08 14:23:33 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.55 2004/09/17 14:11:25 skrll Exp $");
#include "opt_ktrace.h"
#include "opt_systrace.h"
@ -206,7 +206,7 @@ namei(ndp)
auio.uio_offset = 0;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_procp = (struct proc *)0;
auio.uio_procp = NULL;
auio.uio_resid = MAXPATHLEN;
error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred);
if (error) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: genfs_vnops.c,v 1.87 2004/05/27 12:53:25 yamt Exp $ */
/* $NetBSD: genfs_vnops.c,v 1.88 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.87 2004/05/27 12:53:25 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: genfs_vnops.c,v 1.88 2004/09/17 14:11:25 skrll Exp $");
#include "opt_nfsserver.h"
@ -1624,7 +1624,7 @@ genfs_compat_getpages(void *v)
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_rw = UIO_READ;
uio.uio_resid = PAGE_SIZE;
uio.uio_procp = curproc;
uio.uio_procp = NULL;
/* XXX vn_lock */
error = VOP_READ(vp, &uio, 0, cred);
if (error) {
@ -1678,7 +1678,7 @@ genfs_compat_gop_write(struct vnode *vp, struct vm_page **pgs, int npages,
uio.uio_segflg = UIO_SYSSPACE;
uio.uio_rw = UIO_WRITE;
uio.uio_resid = npages << PAGE_SHIFT;
uio.uio_procp = curproc;
uio.uio_procp = NULL;
/* XXX vn_lock */
error = VOP_WRITE(vp, &uio, 0, cred);

View File

@ -1,4 +1,4 @@
/* $NetBSD: portal_vnops.c,v 1.55 2004/05/22 22:52:14 jonathan Exp $ */
/* $NetBSD: portal_vnops.c,v 1.56 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1992, 1993
@ -40,7 +40,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: portal_vnops.c,v 1.55 2004/05/22 22:52:14 jonathan Exp $");
__KERNEL_RCSID(0, "$NetBSD: portal_vnops.c,v 1.56 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -415,7 +415,7 @@ portal_open(v)
auio.uio_iovcnt = 2;
auio.uio_rw = UIO_WRITE;
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_procp = p;
auio.uio_procp = NULL;
auio.uio_offset = 0;
auio.uio_resid = aiov[0].iov_len + aiov[1].iov_len;

View File

@ -1,4 +1,4 @@
/* $NetBSD: pk_acct.c,v 1.17 2003/08/07 16:33:03 agc Exp $ */
/* $NetBSD: pk_acct.c,v 1.18 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1990, 1993
@ -74,7 +74,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pk_acct.c,v 1.17 2003/08/07 16:33:03 agc Exp $");
__KERNEL_RCSID(0, "$NetBSD: pk_acct.c,v 1.18 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -180,5 +180,5 @@ pk_acct(lcp)
(void) vn_rdwr(UIO_WRITE, vp, (caddr_t)&acbuf, sizeof (acbuf),
(off_t)0, UIO_SYSSPACE, IO_UNIT|IO_APPEND,
curproc -> p_ucred, (size_t *)0,
(struct proc *)0);
NULL);
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: smb_trantcp.c,v 1.16 2004/05/22 22:52:15 jonathan Exp $ */
/* $NetBSD: smb_trantcp.c,v 1.17 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 2000-2001 Boris Popov
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: smb_trantcp.c,v 1.16 2004/05/22 22:52:15 jonathan Exp $");
__KERNEL_RCSID(0, "$NetBSD: smb_trantcp.c,v 1.17 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -411,7 +411,7 @@ nbssn_recvhdr(struct nbpcb *nbp, int *lenp,
auio.uio_rw = UIO_READ;
auio.uio_offset = 0;
auio.uio_resid = sizeof(len);
auio.uio_procp = p;
auio.uio_procp = NULL;
#ifndef __NetBSD__
error = so->so_proto->pr_usrreqs->pru_soreceive
(so, (struct sockaddr **)NULL, &auio,

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_bio.c,v 1.120 2004/09/15 09:50:56 yamt Exp $ */
/* $NetBSD: nfs_bio.c,v 1.121 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1989, 1993
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.120 2004/09/15 09:50:56 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_bio.c,v 1.121 2004/09/17 14:11:25 skrll Exp $");
#include "opt_nfs.h"
#include "opt_ddb.h"
@ -1231,7 +1231,7 @@ nfs_doio(bp, p)
uiop->uio_iov = &io;
uiop->uio_iovcnt = 1;
uiop->uio_segflg = UIO_SYSSPACE;
uiop->uio_procp = p;
uiop->uio_procp = NULL;
uiop->uio_offset = (((off_t)bp->b_blkno) << DEV_BSHIFT);
io.iov_base = bp->b_data;
io.iov_len = uiop->uio_resid = bp->b_bcount;

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_serv.c,v 1.89 2004/05/31 08:47:08 yamt Exp $ */
/* $NetBSD: nfs_serv.c,v 1.90 2004/09/17 14:11:25 skrll Exp $ */
/*
* Copyright (c) 1989, 1993
@ -55,7 +55,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_serv.c,v 1.89 2004/05/31 08:47:08 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_serv.c,v 1.90 2004/09/17 14:11:25 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -530,7 +530,7 @@ nfsrv_readlink(nfsd, slp, procp, mrq)
uiop->uio_resid = len;
uiop->uio_rw = UIO_READ;
uiop->uio_segflg = UIO_SYSSPACE;
uiop->uio_procp = (struct proc *)0;
uiop->uio_procp = NULL;
error = nfsrv_fhtovp(fhp, 1, &vp, cred, slp, nam,
&rdonly, (nfsd->nd_flag & ND_KERBAUTH), FALSE);
if (error) {
@ -950,7 +950,7 @@ nfsrv_write(nfsd, slp, procp, mrq)
uiop->uio_resid = len;
uiop->uio_rw = UIO_WRITE;
uiop->uio_segflg = UIO_SYSSPACE;
uiop->uio_procp = (struct proc *)0;
uiop->uio_procp = NULL;
uiop->uio_offset = off;
error = VOP_WRITE(vp, uiop, ioflags, cred);
nfsstats.srvvop_writes++;
@ -1189,7 +1189,7 @@ loop1:
ioflags = (IO_METASYNC | IO_SYNC | IO_NODELOCKED);
uiop->uio_rw = UIO_WRITE;
uiop->uio_segflg = UIO_SYSSPACE;
uiop->uio_procp = (struct proc *)0;
uiop->uio_procp = NULL;
uiop->uio_offset = nfsd->nd_off;
uiop->uio_resid = nfsd->nd_eoff - nfsd->nd_off;
if (uiop->uio_resid > 0) {
@ -2232,7 +2232,7 @@ nfsrv_symlink(nfsd, slp, procp, mrq)
io.uio_iovcnt = 1;
io.uio_segflg = UIO_SYSSPACE;
io.uio_rw = UIO_READ;
io.uio_procp = (struct proc *)0;
io.uio_procp = NULL;
nfsm_mtouio(&io, len2);
if (!v3) {
nfsm_dissect(sp, struct nfsv2_sattr *, NFSX_V2SATTR);
@ -2655,7 +2655,7 @@ again:
io.uio_resid = fullsiz;
io.uio_segflg = UIO_SYSSPACE;
io.uio_rw = UIO_READ;
io.uio_procp = (struct proc *)0;
io.uio_procp = NULL;
eofflag = 0;
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
@ -2914,7 +2914,7 @@ again:
io.uio_resid = fullsiz;
io.uio_segflg = UIO_SYSSPACE;
io.uio_rw = UIO_READ;
io.uio_procp = (struct proc *)0;
io.uio_procp = NULL;
eofflag = 0;
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_socket.c,v 1.110 2004/08/24 20:09:44 yamt Exp $ */
/* $NetBSD: nfs_socket.c,v 1.111 2004/09/17 14:11:26 skrll Exp $ */
/*
* Copyright (c) 1989, 1991, 1993, 1995
@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.110 2004/08/24 20:09:44 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_socket.c,v 1.111 2004/09/17 14:11:26 skrll Exp $");
#include "fs_nfs.h"
#include "opt_nfs.h"
@ -610,7 +610,7 @@ tryagain:
auio.uio_rw = UIO_READ;
auio.uio_offset = 0;
auio.uio_resid = sizeof(u_int32_t);
auio.uio_procp = p;
auio.uio_procp = NULL;
do {
rcvflg = MSG_WAITALL;
error = (*so->so_receive)(so, (struct mbuf **)0, &auio,

View File

@ -1,4 +1,4 @@
/* $NetBSD: nfs_subs.c,v 1.135 2004/09/15 09:50:56 yamt Exp $ */
/* $NetBSD: nfs_subs.c,v 1.136 2004/09/17 14:11:26 skrll Exp $ */
/*
* Copyright (c) 1989, 1993
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.135 2004/09/15 09:50:56 yamt Exp $");
__KERNEL_RCSID(0, "$NetBSD: nfs_subs.c,v 1.136 2004/09/17 14:11:26 skrll Exp $");
#include "fs_nfs.h"
#include "opt_nfs.h"
@ -1938,7 +1938,7 @@ nfs_cookieheuristic(vp, flagp, p, cred)
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 = NFS_DIRFRAGSIZ;
auio.uio_offset = 0;
@ -2181,7 +2181,7 @@ nfs_namei(ndp, fhp, len, slp, nam, mdp, dposp, retdirp, p, kerbflag, pubflag)
auio.uio_offset = 0;
auio.uio_rw = UIO_READ;
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_procp = (struct proc *)0;
auio.uio_procp = NULL;
auio.uio_resid = MAXPATHLEN;
error = VOP_READLINK(ndp->ni_vp, &auio, cnp->cn_cred);
if (error) {

View File

@ -1,4 +1,4 @@
/* $NetBSD: cryptodev.c,v 1.10 2003/11/19 04:14:07 jonathan Exp $ */
/* $NetBSD: cryptodev.c,v 1.11 2004/09/17 14:11:27 skrll Exp $ */
/* $FreeBSD: src/sys/opencrypto/cryptodev.c,v 1.4.2.4 2003/06/03 00:09:02 sam Exp $ */
/* $OpenBSD: cryptodev.c,v 1.53 2002/07/10 22:21:30 mickey Exp $ */
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.10 2003/11/19 04:14:07 jonathan Exp $");
__KERNEL_RCSID(0, "$NetBSD: cryptodev.c,v 1.11 2004/09/17 14:11:27 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -352,7 +352,7 @@ cryptodev_op(struct csession *cse, struct crypt_op *cop, struct proc *p)
cse->uio.uio_resid = 0;
cse->uio.uio_segflg = UIO_SYSSPACE;
cse->uio.uio_rw = UIO_WRITE;
cse->uio.uio_procp = p;
cse->uio.uio_procp = NULL;
cse->uio.uio_iov = cse->iovec;
bzero(&cse->iovec, sizeof(cse->iovec));
cse->uio.uio_iov[0].iov_len = cop->len;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ext2fs_lookup.c,v 1.29 2004/08/15 07:19:56 mycroft Exp $ */
/* $NetBSD: ext2fs_lookup.c,v 1.30 2004/09/17 14:11:27 skrll Exp $ */
/*
* Modified for NetBSD 1.2E
@ -48,7 +48,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ext2fs_lookup.c,v 1.29 2004/08/15 07:19:56 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ext2fs_lookup.c,v 1.30 2004/09/17 14:11:27 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -821,7 +821,7 @@ ext2fs_direnter(ip, dvp, cnp)
auio.uio_iovcnt = 1;
auio.uio_rw = UIO_WRITE;
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_procp = (struct proc *)0;
auio.uio_procp = NULL;
error = VOP_WRITE(dvp, &auio, IO_SYNC, cnp->cn_cred);
if (dirblksiz > dvp->v_mount->mnt_stat.f_bsize)
/* XXX should grow with balloc() */
@ -1007,7 +1007,7 @@ ext2fs_dirempty(ip, parentino, cred)
for (off = 0; off < ip->i_e2fs_size; off += fs2h16(dp->e2d_reclen)) {
error = vn_rdwr(UIO_READ, ITOV(ip), (caddr_t)dp, MINDIRSIZ, off,
UIO_SYSSPACE, IO_NODELOCKED, cred, &count, (struct proc *)0);
UIO_SYSSPACE, IO_NODELOCKED, cred, &count, NULL);
/*
* Since we read MINDIRSIZ, residual must
* be 0 unless we're at end of file.
@ -1073,7 +1073,7 @@ ext2fs_checkpath(source, target, cred)
error = vn_rdwr(UIO_READ, vp, (caddr_t)&dirbuf,
sizeof (struct ext2fs_dirtemplate), (off_t)0,
UIO_SYSSPACE, IO_NODELOCKED, cred, (size_t *)0,
(struct proc *)0);
NULL);
if (error != 0)
break;
namlen = dirbuf.dotdot_namlen;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ext2fs_vnops.c,v 1.55 2004/08/15 07:19:56 mycroft Exp $ */
/* $NetBSD: ext2fs_vnops.c,v 1.56 2004/09/17 14:11:27 skrll Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ext2fs_vnops.c,v 1.55 2004/08/15 07:19:56 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ext2fs_vnops.c,v 1.56 2004/09/17 14:11:27 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -979,7 +979,7 @@ abortit:
error = vn_rdwr(UIO_READ, fvp, (caddr_t)&dirbuf,
sizeof (struct ext2fs_dirtemplate), (off_t)0,
UIO_SYSSPACE, IO_NODELOCKED,
tcnp->cn_cred, (size_t *)0, (struct proc *)0);
tcnp->cn_cred, (size_t *)0, NULL);
if (error == 0) {
namlen = dirbuf.dotdot_namlen;
if (namlen != 2 ||
@ -995,7 +995,7 @@ abortit:
(off_t)0, UIO_SYSSPACE,
IO_NODELOCKED|IO_SYNC,
tcnp->cn_cred, (size_t *)0,
(struct proc *)0);
NULL);
cache_purge(fdvp);
}
}
@ -1108,7 +1108,7 @@ ext2fs_mkdir(v)
dirtemplate.dotdot_name[0] = dirtemplate.dotdot_name[1] = '.';
error = vn_rdwr(UIO_WRITE, tvp, (caddr_t)&dirtemplate,
sizeof (dirtemplate), (off_t)0, UIO_SYSSPACE,
IO_NODELOCKED|IO_SYNC, cnp->cn_cred, (size_t *)0, (struct proc *)0);
IO_NODELOCKED|IO_SYNC, cnp->cn_cred, (size_t *)0, NULL);
if (error) {
dp->i_e2fs_nlink--;
dp->i_flag |= IN_CHANGE;
@ -1263,7 +1263,7 @@ ext2fs_symlink(v)
} else
error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred,
(size_t *)0, (struct proc *)0);
(size_t *)0, NULL);
if (error)
vput(vp);
return (error);

View File

@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.6 2004/08/29 10:13:48 hannken Exp $");
__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.7 2004/09/17 14:11:27 skrll Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -194,7 +194,7 @@ ffs_snapshot(mp, vp, ctime)
goto out;
error = vn_rdwr(UIO_WRITE, vp,
cgbuf, fs->fs_bsize, lblktosize(fs, (off_t)(numblks - 1)),
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, p);
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, NULL);
if (error)
goto out;
/*
@ -560,7 +560,7 @@ out1:
*/
error = vn_rdwr(UIO_WRITE, vp,
(caddr_t)snapblklist, snaplistsize*sizeof(ufs2_daddr_t), ip->i_size,
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, p);
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, NULL);
if (error) {
fs->fs_snapinum[snaploc] = 0;
FREE(snapblklist, M_UFSMNT);
@ -1726,7 +1726,7 @@ ffs_snapshot_mount(mp)
error = vn_rdwr(UIO_READ, vp,
(caddr_t)&snaplistsize, sizeof(snaplistsize),
lblktosize(fs, howmany(fs->fs_size, fs->fs_frag)),
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, p);
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, NULL);
if (error) {
printf("ffs_snapshot_mount: read_1 failed %d\n", error);
VOP_UNLOCK(vp, 0);
@ -1738,7 +1738,7 @@ ffs_snapshot_mount(mp)
error = vn_rdwr(UIO_READ, vp,
(caddr_t)snapblklist, snaplistsize * sizeof(ufs2_daddr_t),
lblktosize(fs, howmany(fs->fs_size, fs->fs_frag)),
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, p);
UIO_SYSSPACE, IO_NODELOCKED|IO_UNIT, p->p_ucred, NULL, NULL);
if (error) {
printf("ffs_snapshot_mount: read_2 failed %d\n", error);
VOP_UNLOCK(vp, 0);

View File

@ -1,4 +1,4 @@
/* $NetBSD: ufs_lookup.c,v 1.59 2004/08/15 21:44:11 mycroft Exp $ */
/* $NetBSD: ufs_lookup.c,v 1.60 2004/09/17 14:11:27 skrll Exp $ */
/*
* Copyright (c) 1989, 1993
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.59 2004/08/15 21:44:11 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ufs_lookup.c,v 1.60 2004/09/17 14:11:27 skrll Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -1097,7 +1097,7 @@ ufs_dirempty(ip, parentino, cred)
for (off = 0; off < ip->i_size;
off += ufs_rw16(dp->d_reclen, needswap)) {
error = vn_rdwr(UIO_READ, ITOV(ip), (caddr_t)dp, MINDIRSIZ, off,
UIO_SYSSPACE, IO_NODELOCKED, cred, &count, (struct proc *)0);
UIO_SYSSPACE, IO_NODELOCKED, cred, &count, NULL);
/*
* Since we read MINDIRSIZ, residual must
* be 0 unless we're at end of file.
@ -1174,7 +1174,7 @@ ufs_checkpath(source, target, cred)
}
error = vn_rdwr(UIO_READ, vp, (caddr_t)&dirbuf,
sizeof (struct dirtemplate), (off_t)0, UIO_SYSSPACE,
IO_NODELOCKED, cred, NULL, (struct proc *)0);
IO_NODELOCKED, cred, NULL, NULL);
if (error != 0)
break;
#if (BYTE_ORDER == LITTLE_ENDIAN)

View File

@ -1,4 +1,4 @@
/* $NetBSD: ufs_quota.c,v 1.31 2004/08/15 07:19:58 mycroft Exp $ */
/* $NetBSD: ufs_quota.c,v 1.32 2004/09/17 14:11:27 skrll Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993, 1995
@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.31 2004/08/15 07:19:58 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ufs_quota.c,v 1.32 2004/09/17 14:11:27 skrll Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@ -806,7 +806,7 @@ dqget(vp, id, ump, type, dqp)
auio.uio_offset = (off_t)(id * sizeof (struct dqblk));
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_rw = UIO_READ;
auio.uio_procp = (struct proc *)0;
auio.uio_procp = NULL;
error = VOP_READ(dqvp, &auio, 0, ump->um_cred[type]);
if (auio.uio_resid == sizeof(struct dqblk) && error == 0)
memset((caddr_t)&dq->dq_dqb, 0, sizeof(struct dqblk));
@ -917,7 +917,7 @@ dqsync(vp, dq)
auio.uio_offset = (off_t)(dq->dq_id * sizeof (struct dqblk));
auio.uio_segflg = UIO_SYSSPACE;
auio.uio_rw = UIO_WRITE;
auio.uio_procp = (struct proc *)0;
auio.uio_procp = NULL;
error = VOP_WRITE(dqvp, &auio, 0, dq->dq_ump->um_cred[dq->dq_type]);
if (auio.uio_resid && error == 0)
error = EIO;

View File

@ -1,4 +1,4 @@
/* $NetBSD: ufs_vnops.c,v 1.121 2004/08/15 21:53:03 mycroft Exp $ */
/* $NetBSD: ufs_vnops.c,v 1.122 2004/09/17 14:11:27 skrll Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993, 1995
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.121 2004/08/15 21:53:03 mycroft Exp $");
__KERNEL_RCSID(0, "$NetBSD: ufs_vnops.c,v 1.122 2004/09/17 14:11:27 skrll Exp $");
#ifndef _LKM
#include "opt_quota.h"
@ -1539,7 +1539,7 @@ ufs_symlink(void *v)
} else
error = vn_rdwr(UIO_WRITE, vp, ap->a_target, len, (off_t)0,
UIO_SYSSPACE, IO_NODELOCKED, ap->a_cnp->cn_cred, NULL,
(struct proc *)0);
NULL);
if (error)
vput(vp);
return (error);