Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-07-11 15:20:38 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-07-11 15:20:38 +0400
commit3b2560e5004a45618318be99fee89af73c99241b (patch)
tree95d851001a358445e8c8c675cf5ce3e8335f145e
parent41f9a410cc30786e7787553113610ed4c898f5c4 (diff)
* uname.cc (uname): Drop unused code.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/uname.cc19
2 files changed, 9 insertions, 14 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 7eb8f07bf..1e5dc7bc5 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2013-07-11 Corinna Vinschen <corinna@vinschen.de>
+
+ * uname.cc (uname): Drop unused code.
+
2013-07-10 Christopher Faylor <me.cygwin2013@cgf.cx>
* gentlsoffsets: Clean up a little.
diff --git a/winsup/cygwin/uname.cc b/winsup/cygwin/uname.cc
index 70c5200b8..c571850b4 100644
--- a/winsup/cygwin/uname.cc
+++ b/winsup/cygwin/uname.cc
@@ -1,7 +1,7 @@
/* uname.cc
Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
- 2006, 2007, 2008 Red Hat, Inc.
+ 2006, 2007, 2008, 2013 Red Hat, Inc.
Written by Steve Chamberlain of Cygnus Support, sac@cygnus.com
Rewritten by Geoffrey Noer of Cygnus Solutions, noer@cygnus.com
@@ -31,22 +31,13 @@ uname (struct utsname *name)
memset (name, 0, sizeof (*name));
__small_sprintf (name->sysname, "CYGWIN_%s", wincap.osname ());
-#if 0
- /* Recognition of the real 64 bit CPU inside of a WOW64 system, irritates
- build systems which think the native system is a 64 bit system. Since
- we're actually running in a 32 bit environment, it looks more correct
- just to use the CPU info given by WOW64. */
- if (wincap.is_wow64 ())
- GetNativeSystemInfo (&sysinfo);
- else
-#else
- /* But it seems ok to add a hint to the sysname, that we're running under
- WOW64. This might give an early clue if somebody encounters problems. */
+ /* Add a hint to the sysname, that we're running under WOW64. This might
+ give an early clue if somebody encounters problems. */
if (wincap.is_wow64 ())
strncat (name->sysname, "-WOW64",
sizeof name->sysname - strlen (name->sysname) - 1);
-#endif
- GetSystemInfo (&sysinfo);
+
+ GetSystemInfo (&sysinfo);
/* Computer name */
cygwin_gethostname (name->nodename, sizeof (name->nodename) - 1);