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>2001-11-12 23:21:43 +0300
committerCorinna Vinschen <corinna@vinschen.de>2001-11-12 23:21:43 +0300
commit5e051b1bf7e468251890457a62093c509168f304 (patch)
tree917b00d4164247744918ac2d43e4d845494ebdba /winsup/utils/cygcheck.cc
parentdaccfdf9efff7075770004350588251850aa67d2 (diff)
* cygcheck.cc (dump_sysinfo): Add some more details.
Diffstat (limited to 'winsup/utils/cygcheck.cc')
-rw-r--r--winsup/utils/cygcheck.cc22
1 files changed, 18 insertions, 4 deletions
diff --git a/winsup/utils/cygcheck.cc b/winsup/utils/cygcheck.cc
index 42fa22520..dba77f5bc 100644
--- a/winsup/utils/cygcheck.cc
+++ b/winsup/utils/cygcheck.cc
@@ -808,8 +808,16 @@ dump_sysinfo ()
{
if (!more_info)
osname = (char *) "2000";
- else if (osversionex.wProductType == VER_NT_SERVER)
- osname = (char *) "2000 Server";
+ else if (osversionex.wProductType == VER_NT_SERVER
+ || osversionex.wProductType == VER_NT_DOMAIN_CONTROLLER)
+ {
+ if (osversionex.wSuiteMask & VER_SUITE_DATACENTER)
+ osname = (char *) "2000 Datacenter Server";
+ else if (osversionex.wSuiteMask & VER_SUITE_ENTERPRISE)
+ osname = (char *) "2000 Advanced Server";
+ else
+ osname = (char *) "2000 Server";
+ }
else
osname = (char *) "2000 Professional";
}
@@ -817,8 +825,14 @@ dump_sysinfo ()
{
if (!more_info)
osname = (char *) "XP";
- else if (osversionex.wProductType == VER_NT_SERVER)
- osname = (char *) ".NET Server";
+ else if (osversionex.wProductType == VER_NT_SERVER
+ || osversionex.wProductType == VER_NT_DOMAIN_CONTROLLER)
+ {
+ if (osversionex.wSuiteMask & VER_SUITE_ENTERPRISE)
+ osname = (char *) ".NET Enterprise Server";
+ else
+ osname = (char *) ".NET Server";
+ }
else if (osversionex.wSuiteMask & VER_SUITE_PERSONAL)
osname = (char *) "XP Home Edition";
else