Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 look in /emul/netbsd32 for __stat13() an...
details: https://anonhg.NetBSD.org/src/rev/9816ea314ac8
branches: trunk
changeset: 494604:9816ea314ac8
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Jul 09 03:03:35 2000 +0000
description:
look in /emul/netbsd32 for __stat13() and __lstat13().
diffstat:
sys/compat/netbsd32/netbsd32_netbsd.c | 24 +++++++++++++++++-------
1 files changed, 17 insertions(+), 7 deletions(-)
diffs (45 lines):
diff -r 402f8d49714c -r 9816ea314ac8 sys/compat/netbsd32/netbsd32_netbsd.c
--- a/sys/compat/netbsd32/netbsd32_netbsd.c Sun Jul 09 02:24:30 2000 +0000
+++ b/sys/compat/netbsd32/netbsd32_netbsd.c Sun Jul 09 03:03:35 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_netbsd.c,v 1.30 2000/06/28 15:39:32 mrg Exp $ */
+/* $NetBSD: netbsd32_netbsd.c,v 1.31 2000/07/09 03:03:35 mrg Exp $ */
/*
* Copyright (c) 1998 Matthew R. Green
@@ -5124,9 +5124,14 @@
struct stat sb;
int error;
struct nameidata nd;
-
- NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE,
- (caddr_t)(u_long)SCARG(uap, path), p);
+ caddr_t sg;
+ char *path;
+
+ path = (char *)(u_long)SCARG(uap, path);
+ sg = stackgap_init(p->p_emul);
+ NETBSD32_CHECK_ALT_EXIST(p, &sg, path);
+
+ NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, path, p);
if ((error = namei(&nd)) != 0)
return (error);
error = vn_stat(nd.ni_vp, &sb, p);
@@ -5193,9 +5198,14 @@
struct stat sb;
int error;
struct nameidata nd;
-
- NDINIT(&nd, LOOKUP, NOFOLLOW | LOCKLEAF, UIO_USERSPACE,
- (caddr_t)(u_long)SCARG(uap, path), p);
+ caddr_t sg;
+ char *path;
+
+ path = (char *)(u_long)SCARG(uap, path);
+ sg = stackgap_init(p->p_emul);
+ NETBSD32_CHECK_ALT_EXIST(p, &sg, path);
+
+ NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_USERSPACE, path, p);
if ((error = namei(&nd)) != 0)
return (error);
error = vn_stat(nd.ni_vp, &sb, p);
Home |
Main Index |
Thread Index |
Old Index