Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/compat/pecoff pullup-1-6 ticket #470 (oki).
details: https://anonhg.NetBSD.org/src/rev/bd78969fc2ba
branches: netbsd-1-6
changeset: 528412:bd78969fc2ba
user: thorpej <thorpej%NetBSD.org@localhost>
date: Thu Jul 11 20:02:43 2002 +0000
description:
pullup-1-6 ticket #470 (oki).
Original log message:
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 6ff2d15ebf09 -r bd78969fc2ba sys/compat/pecoff/pecoff_misc.c
--- a/sys/compat/pecoff/pecoff_misc.c Thu Jul 11 19:59:33 2002 +0000
+++ b/sys/compat/pecoff/pecoff_misc.c Thu Jul 11 20:02:43 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.2.6.1 2002/07/11 20:02:43 thorpej 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.2.6.1 2002/07/11 20:02:43 thorpej 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 6ff2d15ebf09 -r bd78969fc2ba sys/compat/pecoff/syscalls.master
--- a/sys/compat/pecoff/syscalls.master Thu Jul 11 19:59:33 2002 +0000
+++ b/sys/compat/pecoff/syscalls.master Thu Jul 11 20:02:43 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.3.4.1 2002/07/11 20:02:43 thorpej 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