Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/pecoff PECOFF version of stat13 and lstat13 could...



details:   https://anonhg.NetBSD.org/src/rev/3553598818b1
branches:  trunk
changeset: 533697:3553598818b1
user:      oki <oki%NetBSD.org@localhost>
date:      Sun Jul 07 18:06:02 2002 +0000

description:
PECOFF version of stat13 and lstat13 couldn't look for
alternative path at first.  Fixed it.

diffstat:

 sys/compat/pecoff/pecoff_misc.c   |  32 ++++++++++++++++++++++++++++++--
 sys/compat/pecoff/syscalls.master |   8 +++++---
 2 files changed, 35 insertions(+), 5 deletions(-)

diffs (76 lines):

diff -r eece9b928ee1 -r 3553598818b1 sys/compat/pecoff/pecoff_misc.c
--- a/sys/compat/pecoff/pecoff_misc.c   Sun Jul 07 15:13:55 2002 +0000
+++ b/sys/compat/pecoff/pecoff_misc.c   Sun Jul 07 18:06:02 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pecoff_misc.c,v 1.2 2002/03/29 17:04:46 kent Exp $     */
+/*     $NetBSD: pecoff_misc.c,v 1.3 2002/07/07 18:06:02 oki Exp $      */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pecoff_misc.c,v 1.2 2002/03/29 17:04:46 kent Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pecoff_misc.c,v 1.3 2002/07/07 18:06:02 oki Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_ktrace.h"
@@ -547,6 +547,34 @@
        return sys_lutimes(p, v, retval);
 }
 
+int
+pecoff_sys___stat13(p, v, retval)
+       struct proc *p;
+       void *v;
+       register_t *retval;
+{
+       struct pecoff_sys___stat13_args *uap = v;
+       caddr_t sg = stackgap_init(p, 0);
+
+       CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
+
+       return sys___stat13(p, v, retval);
+}
+
+
+int
+pecoff_sys___lstat13(p, v, retval)
+       struct proc *p;
+       void *v;
+       register_t *retval;
+{
+       struct pecoff_sys___lstat13_args *uap = v;
+       caddr_t sg = stackgap_init(p, 0);
+
+       CHECK_ALT_SYMLINK(p, &sg, SCARG(uap, path));
+
+       return sys___lstat13(p, v, retval);
+}
 
 int
 pecoff_sys___posix_chown(p, v, retval)
diff -r eece9b928ee1 -r 3553598818b1 sys/compat/pecoff/syscalls.master
--- a/sys/compat/pecoff/syscalls.master Sun Jul 07 15:13:55 2002 +0000
+++ b/sys/compat/pecoff/syscalls.master Sun Jul 07 18:06:02 2002 +0000
@@ -1,4 +1,4 @@
-       $NetBSD: syscalls.master,v 1.3 2002/05/03 00:20:57 eeh Exp $
+       $NetBSD: syscalls.master,v 1.4 2002/07/07 18:06:03 oki Exp $
 ; based on NetBSD: syscalls.master,v 1.110 2001/07/01 18:06:11 thorpej Exp
 
 ;      @(#)syscalls.master     8.2 (Berkeley) 1/13/94
@@ -553,9 +553,11 @@
 276    STD             { int pecoff_sys_lutimes(const char *path, \
                            const struct timeval *tptr); }
 277    NOARGS          { int sys___msync13(void *addr, size_t len, int flags); }
-278    NOARGS          { int sys___stat13(const char *path, struct stat *ub); }
+278    STD             { int pecoff_sys___stat13(const char *path, \
+                           struct stat *ub); }
 279    NOARGS          { int sys___fstat13(int fd, struct stat *sb); }
-280    NOARGS          { int sys___lstat13(const char *path, struct stat *ub); }
+280    STD             { int pecoff_sys___lstat13(const char *path, \
+                           struct stat *ub); }
 281    NOARGS          { int sys___sigaltstack14( \
                            const struct sigaltstack *nss, \
                            struct sigaltstack *oss); }



Home | Main Index | Thread Index | Old Index