Change the "aresid" argument of vn_rdwr() from an int * to a size_t *,
to match the new uio_resid type.
This commit is contained in:
parent
28beaae04f
commit
37b70b3064
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cpu_exec.c,v 1.16 1998/07/05 08:49:30 jonathan Exp $ */
|
||||
/* $NetBSD: cpu_exec.c,v 1.17 1998/07/28 21:40:55 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1992, 1993
|
||||
@ -181,7 +181,8 @@ mips_elf_makecmds (p, epp)
|
||||
{
|
||||
struct ehdr *ex = (struct ehdr *)epp -> ep_hdr;
|
||||
struct phdr ph;
|
||||
int i, error, resid;
|
||||
int i, error;
|
||||
size_t resid;
|
||||
|
||||
/* Make sure we got enough data to check magic numbers... */
|
||||
if (epp -> ep_hdrvalid < sizeof (struct ehdr)) {
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: elf.c,v 1.10 1998/06/26 00:08:41 thorpej Exp $ */
|
||||
/* $NetBSD: elf.c,v 1.11 1998/07/28 21:40:55 thorpej Exp $ */
|
||||
/* from: NetBSD: exec_elf.c,v 1.3 1995/09/16 00:28:08 thorpej Exp */
|
||||
|
||||
/* mips elf shared-library support from Per Fogelstrom's OpenBSD code */
|
||||
@ -409,7 +409,7 @@ elf_read_from(p, vp, off, buf, size)
|
||||
int size;
|
||||
{
|
||||
int error;
|
||||
int resid;
|
||||
size_t resid;
|
||||
|
||||
if ((error = vn_rdwr(UIO_READ, vp, buf, size,
|
||||
off, UIO_SYSSPACE, IO_NODELOCKED, p->p_ucred,
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: ibcs2_exec.c,v 1.15 1998/03/05 04:36:07 scottb Exp $ */
|
||||
/* $NetBSD: ibcs2_exec.c,v 1.16 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994, 1995, 1998 Scott Bartram
|
||||
@ -419,8 +419,9 @@ coff_find_section(p, vp, fp, sh, s_type)
|
||||
struct coff_scnhdr *sh;
|
||||
int s_type;
|
||||
{
|
||||
int i, pos, resid, siz, error;
|
||||
|
||||
int i, pos, siz, error;
|
||||
size_t resid;
|
||||
|
||||
pos = COFF_HDR_SIZE;
|
||||
for (i = 0; i < fp->f_nscns; i++, pos += sizeof(struct coff_scnhdr)) {
|
||||
siz = sizeof(struct coff_scnhdr);
|
||||
@ -549,7 +550,7 @@ n */
|
||||
/* load any shared libraries */
|
||||
error = coff_find_section(p, epp->ep_vp, fp, &sh, COFF_STYP_SHLIB);
|
||||
if (!error) {
|
||||
int resid;
|
||||
size_t resid;
|
||||
struct coff_slhdr *slhdr;
|
||||
char buf[128], *bufp; /* FIXME */
|
||||
int len = sh.s_size, path_index, entry_len;
|
||||
@ -601,8 +602,9 @@ coff_load_shlib(p, path, epp)
|
||||
char *path;
|
||||
struct exec_package *epp;
|
||||
{
|
||||
int error, siz, resid;
|
||||
int error, siz;
|
||||
int taddr, tsize, daddr, dsize, offset;
|
||||
size_t resid;
|
||||
struct nameidata nd;
|
||||
struct coff_filehdr fh, *fhp = &fh;
|
||||
struct coff_scnhdr sh, *shp = &sh;
|
||||
@ -737,9 +739,10 @@ exec_ibcs2_xout_prep_nmagic(p, epp, xp, xep)
|
||||
struct xexec *xp;
|
||||
struct xext *xep;
|
||||
{
|
||||
int error, resid, nseg, i;
|
||||
int error, nseg, i;
|
||||
long baddr, bsize;
|
||||
struct xseg *xs;
|
||||
size_t resid;
|
||||
|
||||
/* read in segment table */
|
||||
xs = (struct xseg *)malloc(xep->xe_segsize, M_TEMP, M_WAITOK);
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.c,v 1.26 1998/01/24 12:32:15 mycroft Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -482,7 +482,8 @@ linux_sys_uselib(p, v, retval)
|
||||
struct vnode *vp;
|
||||
struct exec hdr;
|
||||
struct exec_vmcmd_set vcset;
|
||||
int rem, i, magic, error;
|
||||
int i, magic, error;
|
||||
size_t rem;
|
||||
|
||||
sg = stackgap_init(p->p_emul);
|
||||
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.26 1998/01/24 12:32:15 mycroft Exp $ */
|
||||
/* $NetBSD: linux_exec_aout.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -482,7 +482,8 @@ linux_sys_uselib(p, v, retval)
|
||||
struct vnode *vp;
|
||||
struct exec hdr;
|
||||
struct exec_vmcmd_set vcset;
|
||||
int rem, i, magic, error;
|
||||
int i, magic, error;
|
||||
size_t rem;
|
||||
|
||||
sg = stackgap_init(p->p_emul);
|
||||
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec_elf32.c,v 1.26 1998/01/24 12:32:15 mycroft Exp $ */
|
||||
/* $NetBSD: linux_exec_elf32.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -482,7 +482,8 @@ linux_sys_uselib(p, v, retval)
|
||||
struct vnode *vp;
|
||||
struct exec hdr;
|
||||
struct exec_vmcmd_set vcset;
|
||||
int rem, i, magic, error;
|
||||
int i, magic, error;
|
||||
size_t rem;
|
||||
|
||||
sg = stackgap_init(p->p_emul);
|
||||
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: linux_exec.c,v 1.26 1998/01/24 12:32:15 mycroft Exp $ */
|
||||
/* $NetBSD: linux_exec.c,v 1.27 1998/07/28 21:39:54 thorpej Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995 Frank van der Linden
|
||||
@ -482,7 +482,8 @@ linux_sys_uselib(p, v, retval)
|
||||
struct vnode *vp;
|
||||
struct exec hdr;
|
||||
struct exec_vmcmd_set vcset;
|
||||
int rem, i, magic, error;
|
||||
int i, magic, error;
|
||||
size_t rem;
|
||||
|
||||
sg = stackgap_init(p->p_emul);
|
||||
LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
|
Loading…
Reference in New Issue
Block a user