Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/compat/linux/common Pull up revision 1.34 (via patc...



details:   https://anonhg.NetBSD.org/src/rev/12d8d9df7696
branches:  netbsd-1-5
changeset: 490989:12d8d9df7696
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 30 21:39:13 2001 +0000

description:
Pull up revision 1.34 (via patch, requested by fvdl):
  Add some required Linux emulation bits to support the Linux
  version of VMware.

diffstat:

 sys/compat/linux/common/linux_file.c |  20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diffs (34 lines):

diff -r a1df61b32029 -r 12d8d9df7696 sys/compat/linux/common/linux_file.c
--- a/sys/compat/linux/common/linux_file.c      Fri Mar 30 21:38:32 2001 +0000
+++ b/sys/compat/linux/common/linux_file.c      Fri Mar 30 21:39:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_file.c,v 1.28.4.1 2000/08/30 03:59:20 sommerfeld Exp $   */
+/*     $NetBSD: linux_file.c,v 1.28.4.2 2001/03/30 21:39:13 he Exp $   */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -781,6 +781,24 @@
 }
 
 int
+linux_sys_link(p, v, retval)
+       struct proc *p;
+       void *v;
+       register_t *retval;
+{
+       struct linux_sys_link_args /* {
+               syscallarg(const char *) path;
+               syscallarg(const char *) link;
+       } */ *uap = v;
+       caddr_t sg = stackgap_init(p->p_emul);
+
+       LINUX_CHECK_ALT_EXIST(p, &sg, SCARG(uap, path));
+       LINUX_CHECK_ALT_CREAT(p, &sg, SCARG(uap, link));
+
+       return sys_link(p, uap, retval);
+}
+
+int
 linux_sys_readlink(p, v, retval)
        struct proc *p;
        void *v;



Home | Main Index | Thread Index | Old Index