Change from using sys___{,f,l}stat13() to sys___{,f,l}stat30() and
associated data structures, following the change to 64-bit inodes.
This commit is contained in:
parent
653be60965
commit
54e6da6105
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: aoutm68k_stat.c,v 1.10 2003/06/29 22:29:12 fvdl Exp $ */
|
||||
/* $NetBSD: aoutm68k_stat.c,v 1.11 2005/08/22 10:57:04 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2000 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aoutm68k_stat.c,v 1.10 2003/06/29 22:29:12 fvdl Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aoutm68k_stat.c,v 1.11 2005/08/22 10:57:04 he Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -249,7 +249,7 @@ aoutm68k_sys___stat13(l, v, retval)
|
|||
struct aoutm68k_sys___stat13_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
struct sys___stat13_args cup;
|
||||
struct sys___stat30_args cup;
|
||||
struct aoutm68k_stat ast;
|
||||
struct stat st;
|
||||
int error;
|
||||
|
@ -260,7 +260,7 @@ aoutm68k_sys___stat13(l, v, retval)
|
|||
#endif
|
||||
SCARG(&cup, path) = SCARG(uap, path);
|
||||
|
||||
if ((error = sys___stat13(l, &cup, retval)) != 0 ||
|
||||
if ((error = sys___stat30(l, &cup, retval)) != 0 ||
|
||||
(error = copyin(SCARG(&cup, ub), &st, sizeof(st))) != 0)
|
||||
return (error);
|
||||
|
||||
|
@ -278,7 +278,7 @@ aoutm68k_sys___fstat13(l, v, retval)
|
|||
struct aoutm68k_sys___fstat13_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
struct sys___fstat13_args cup;
|
||||
struct sys___fstat30_args cup;
|
||||
struct aoutm68k_stat ast;
|
||||
struct stat st;
|
||||
int error;
|
||||
|
@ -286,7 +286,7 @@ aoutm68k_sys___fstat13(l, v, retval)
|
|||
SCARG(&cup, fd) = SCARG(uap, fd);
|
||||
SCARG(&cup, sb) = stackgap_alloc(p, &sg, sizeof(st));
|
||||
|
||||
if ((error = sys___fstat13(l, &cup, retval)) != 0 ||
|
||||
if ((error = sys___fstat30(l, &cup, retval)) != 0 ||
|
||||
(error = copyin(SCARG(&cup, sb), &st, sizeof(st))) != 0)
|
||||
return (error);
|
||||
|
||||
|
@ -305,7 +305,7 @@ aoutm68k_sys___lstat13(l, v, retval)
|
|||
struct aoutm68k_sys___lstat13_args *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
struct sys___lstat13_args cup;
|
||||
struct sys___lstat30_args cup;
|
||||
struct aoutm68k_stat ast;
|
||||
struct stat st;
|
||||
int error;
|
||||
|
@ -316,7 +316,7 @@ aoutm68k_sys___lstat13(l, v, retval)
|
|||
#endif
|
||||
SCARG(&cup, path) = SCARG(uap, path);
|
||||
|
||||
if ((error = sys___lstat13(l, &cup, retval)) != 0 ||
|
||||
if ((error = sys___lstat30(l, &cup, retval)) != 0 ||
|
||||
(error = copyin(SCARG(&cup, ub), &st, sizeof(st))) != 0)
|
||||
return (error);
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: aoutm68k_sysent.c,v 1.17 2005/02/26 23:58:19 perry Exp $ */
|
||||
/* $NetBSD: aoutm68k_sysent.c,v 1.18 2005/08/22 10:57:04 he Exp $ */
|
||||
|
||||
/*
|
||||
* System call switch table.
|
||||
|
@ -8,7 +8,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: aoutm68k_sysent.c,v 1.17 2005/02/26 23:58:19 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: aoutm68k_sysent.c,v 1.18 2005/08/22 10:57:04 he Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ktrace.h"
|
||||
|
@ -889,8 +889,8 @@ struct sysent aoutm68k_sysent[] = {
|
|||
sys___posix_rename }, /* 270 = __posix_rename */
|
||||
{ 3, s(struct sys_swapctl_args), 0,
|
||||
sys_swapctl }, /* 271 = swapctl */
|
||||
{ 3, s(struct sys_getdents_args), 0,
|
||||
sys_getdents }, /* 272 = getdents */
|
||||
{ 3, s(struct sys___getdents30_args), 0,
|
||||
sys___getdents30 }, /* 272 = getdents */
|
||||
{ 3, s(struct sys_minherit_args), 0,
|
||||
sys_minherit }, /* 273 = minherit */
|
||||
{ 2, s(struct sys_lchmod_args), 0,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: hpux_file.c,v 1.27 2005/02/26 23:10:18 perry Exp $ */
|
||||
/* $NetBSD: hpux_file.c,v 1.28 2005/08/22 10:57:04 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
|
||||
|
@ -119,7 +119,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_file.c,v 1.27 2005/02/26 23:10:18 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: hpux_file.c,v 1.28 2005/08/22 10:57:04 he Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -450,7 +450,7 @@ hpux_sys_fstat(l, v, retval)
|
|||
syscallarg(struct hpux_stat *) sb;
|
||||
} */ *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
struct sys___fstat13_args fsa;
|
||||
struct sys___fstat30_args fsa;
|
||||
struct hpux_stat tmphst;
|
||||
struct stat *st, tmpst;
|
||||
caddr_t sg;
|
||||
|
@ -463,7 +463,7 @@ hpux_sys_fstat(l, v, retval)
|
|||
SCARG(&fsa, fd) = SCARG(uap, fd);
|
||||
SCARG(&fsa, sb) = st;
|
||||
|
||||
if ((error = sys___fstat13(l, &fsa, retval)))
|
||||
if ((error = sys___fstat30(l, &fsa, retval)))
|
||||
return (error);
|
||||
|
||||
if ((error = copyin(st, &tmpst, sizeof(tmpst))))
|
||||
|
@ -515,7 +515,7 @@ hpux_stat1(l, v, retval, dolstat)
|
|||
syscallarg(struct hpux_stat *) sb;
|
||||
} */ *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
struct sys___stat13_args sa;
|
||||
struct sys___stat30_args sa;
|
||||
struct hpux_stat tmphst;
|
||||
struct stat *st, tmpst;
|
||||
caddr_t sg;
|
||||
|
@ -529,9 +529,9 @@ hpux_stat1(l, v, retval, dolstat)
|
|||
SCARG(&sa, path) = SCARG(uap, path);
|
||||
|
||||
if (dolstat)
|
||||
error = sys___lstat13(l, &sa, retval);
|
||||
error = sys___lstat30(l, &sa, retval);
|
||||
else
|
||||
error = sys___stat13(l, &sa, retval);
|
||||
error = sys___stat30(l, &sa, retval);
|
||||
|
||||
if (error)
|
||||
return (error);
|
||||
|
@ -558,7 +558,7 @@ hpux_sys_fstat_6x(l, v, retval)
|
|||
syscallarg(struct hpux_ostat *) sb;
|
||||
} */ *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
struct sys___fstat13_args fsa;
|
||||
struct sys___fstat30_args fsa;
|
||||
struct hpux_ostat tmphst;
|
||||
struct stat *st, tmpst;
|
||||
caddr_t sg;
|
||||
|
@ -571,7 +571,7 @@ hpux_sys_fstat_6x(l, v, retval)
|
|||
SCARG(&fsa, fd) = SCARG(uap, fd);
|
||||
SCARG(&fsa, sb) = st;
|
||||
|
||||
if ((error = sys___fstat13(l, &fsa, retval)))
|
||||
if ((error = sys___fstat30(l, &fsa, retval)))
|
||||
return (error);
|
||||
|
||||
if ((error = copyin(st, &tmpst, sizeof(tmpst))))
|
||||
|
@ -596,7 +596,7 @@ hpux_sys_stat_6x(l, v, retval)
|
|||
syscallarg(struct hpux_ostat *) sb;
|
||||
} */ *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
struct sys___stat13_args sa;
|
||||
struct sys___stat30_args sa;
|
||||
struct hpux_ostat tmphst;
|
||||
struct stat *st, tmpst;
|
||||
caddr_t sg;
|
||||
|
@ -610,7 +610,7 @@ hpux_sys_stat_6x(l, v, retval)
|
|||
SCARG(&sa, ub) = st;
|
||||
SCARG(&sa, path) = SCARG(uap, path);
|
||||
|
||||
if ((error = sys___stat13(l, &sa, retval)))
|
||||
if ((error = sys___stat30(l, &sa, retval)))
|
||||
return (error);
|
||||
|
||||
if ((error = copyin(st, &tmpst, sizeof(tmpst))))
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: irix_stat.c,v 1.11 2005/02/26 23:10:18 perry Exp $ */
|
||||
/* $NetBSD: irix_stat.c,v 1.12 2005/08/22 10:57:04 he Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2001 The NetBSD Foundation, Inc.
|
||||
|
@ -37,7 +37,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_stat.c,v 1.11 2005/02/26 23:10:18 perry Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: irix_stat.c,v 1.12 2005/08/22 10:57:04 he Exp $");
|
||||
|
||||
#include <sys/errno.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -139,7 +139,7 @@ irix_sys_xstat(l, v, retval)
|
|||
syscallarg(struct stat *) buf;
|
||||
} */ *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
struct sys___stat13_args cup;
|
||||
struct sys___stat30_args cup;
|
||||
struct stat st;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
int error;
|
||||
|
@ -148,7 +148,7 @@ irix_sys_xstat(l, v, retval)
|
|||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
SCARG(&cup, path) = SCARG(uap, path);
|
||||
|
||||
if ((error = sys___stat13(l, &cup, retval)) != 0)
|
||||
if ((error = sys___stat30(l, &cup, retval)) != 0)
|
||||
return error;
|
||||
|
||||
if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0)
|
||||
|
@ -197,7 +197,7 @@ irix_sys_lxstat(l, v, retval)
|
|||
syscallarg(struct stat *) buf;
|
||||
} */ *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
struct sys___lstat13_args cup;
|
||||
struct sys___lstat30_args cup;
|
||||
struct stat st;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
int error;
|
||||
|
@ -206,7 +206,7 @@ irix_sys_lxstat(l, v, retval)
|
|||
CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
|
||||
SCARG(&cup, path) = SCARG(uap, path);
|
||||
|
||||
if ((error = sys___lstat13(l, &cup, retval)) != 0)
|
||||
if ((error = sys___lstat30(l, &cup, retval)) != 0)
|
||||
return error;
|
||||
|
||||
if ((error = copyin(SCARG(&cup, ub), &st, sizeof st)) != 0)
|
||||
|
@ -255,7 +255,7 @@ irix_sys_fxstat(l, v, retval)
|
|||
syscallarg(struct stat *) buf;
|
||||
} */ *uap = v;
|
||||
struct proc *p = l->l_proc;
|
||||
struct sys___fstat13_args cup;
|
||||
struct sys___fstat30_args cup;
|
||||
struct stat st;
|
||||
int error;
|
||||
caddr_t sg = stackgap_init(p, 0);
|
||||
|
@ -263,7 +263,7 @@ irix_sys_fxstat(l, v, retval)
|
|||
SCARG(&cup, sb) = stackgap_alloc(p, &sg, sizeof(struct stat));
|
||||
SCARG(&cup, fd) = SCARG(uap, fd);
|
||||
|
||||
if ((error = sys___fstat13(l, &cup, retval)) != 0)
|
||||
if ((error = sys___fstat30(l, &cup, retval)) != 0)
|
||||
return error;
|
||||
|
||||
if ((error = copyin(SCARG(&cup, sb), &st, sizeof st)) != 0)
|
||||
|
|
Loading…
Reference in New Issue