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.56 (requeste...



details:   https://anonhg.NetBSD.org/src/rev/3327ea9c7236
branches:  netbsd-1-5
changeset: 490996:3327ea9c7236
user:      he <he%NetBSD.org@localhost>
date:      Fri Mar 30 21:42:57 2001 +0000

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

diffstat:

 sys/compat/linux/common/linux_olduname.c |  21 ++++-----------------
 1 files changed, 4 insertions(+), 17 deletions(-)

diffs (38 lines):

diff -r cfb3901a4ea2 -r 3327ea9c7236 sys/compat/linux/common/linux_olduname.c
--- a/sys/compat/linux/common/linux_olduname.c  Fri Mar 30 21:42:32 2001 +0000
+++ b/sys/compat/linux/common/linux_olduname.c  Fri Mar 30 21:42:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: linux_olduname.c,v 1.53 2000/03/28 23:57:33 simonb Exp $       */
+/*     $NetBSD: linux_olduname.c,v 1.53.4.1 2001/03/30 21:42:57 he Exp $       */
 
 /*-
  * Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
@@ -69,25 +69,12 @@
                syscallarg(struct linux_oldutsname *) up;
        } */ *uap = v;
        struct linux_oldutsname luts;
-       int len;
-       char *cp;
 
-       strncpy(luts.l_sysname, ostype, sizeof(luts.l_sysname));
+       strncpy(luts.l_sysname, linux_sysname, sizeof(luts.l_sysname));
        strncpy(luts.l_nodename, hostname, sizeof(luts.l_nodename));
-       strncpy(luts.l_release, osrelease, sizeof(luts.l_release));
-       strncpy(luts.l_version, version, sizeof(luts.l_version));
+       strncpy(luts.l_release, linux_release, sizeof(luts.l_release));
+       strncpy(luts.l_version, linux_version, sizeof(luts.l_version));
        strncpy(luts.l_machine, machine, sizeof(luts.l_machine));
 
-       /* This part taken from the uname() in libc */
-       len = sizeof(luts.l_version);
-       for (cp = luts.l_version; len--; ++cp) {
-               if (*cp == '\n' || *cp == '\t') {
-                       if (len > 1)
-                               *cp = ' ';
-                       else
-                               *cp = '\0';
-               }
-       }
-
        return copyout(&luts, SCARG(uap, up), sizeof(luts));
 }



Home | Main Index | Thread Index | Old Index