* uname.cc (uname): Use `wProcessorLevel' unless OS sets it wrong.
Use `dwProcessorType' then instead. * wincap.cc: Set flag has_valid_processorlevel appropriately. * wincap.h: Add flag has_valid_processorlevel.
This commit is contained in:
@@ -43,6 +43,7 @@ static NO_COPY wincaps wincap_unknown = {
|
||||
has_negative_pids:false,
|
||||
has_unreliable_pipes:false,
|
||||
has_try_enter_critical_section:false,
|
||||
has_valid_processorlevel:false,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_95 = {
|
||||
@@ -77,6 +78,7 @@ static NO_COPY wincaps wincap_95 = {
|
||||
has_negative_pids:true,
|
||||
has_unreliable_pipes:true,
|
||||
has_try_enter_critical_section:false,
|
||||
has_valid_processorlevel:false,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_95osr2 = {
|
||||
@@ -111,6 +113,7 @@ static NO_COPY wincaps wincap_95osr2 = {
|
||||
has_negative_pids:true,
|
||||
has_unreliable_pipes:true,
|
||||
has_try_enter_critical_section:false,
|
||||
has_valid_processorlevel:false,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_98 = {
|
||||
@@ -145,6 +148,7 @@ static NO_COPY wincaps wincap_98 = {
|
||||
has_negative_pids:true,
|
||||
has_unreliable_pipes:true,
|
||||
has_try_enter_critical_section:false,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_98se = {
|
||||
@@ -179,6 +183,7 @@ static NO_COPY wincaps wincap_98se = {
|
||||
has_negative_pids:true,
|
||||
has_unreliable_pipes:true,
|
||||
has_try_enter_critical_section:false,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_me = {
|
||||
@@ -213,6 +218,7 @@ static NO_COPY wincaps wincap_me = {
|
||||
has_negative_pids:true,
|
||||
has_unreliable_pipes:true,
|
||||
has_try_enter_critical_section:false,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_nt3 = {
|
||||
@@ -247,6 +253,7 @@ static NO_COPY wincaps wincap_nt3 = {
|
||||
has_negative_pids:false,
|
||||
has_unreliable_pipes:false,
|
||||
has_try_enter_critical_section:false,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_nt4 = {
|
||||
@@ -281,6 +288,7 @@ static NO_COPY wincaps wincap_nt4 = {
|
||||
has_negative_pids:false,
|
||||
has_unreliable_pipes:false,
|
||||
has_try_enter_critical_section:true,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_nt4sp4 = {
|
||||
@@ -315,6 +323,7 @@ static NO_COPY wincaps wincap_nt4sp4 = {
|
||||
has_negative_pids:false,
|
||||
has_unreliable_pipes:false,
|
||||
has_try_enter_critical_section:true,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_2000 = {
|
||||
@@ -349,6 +358,7 @@ static NO_COPY wincaps wincap_2000 = {
|
||||
has_negative_pids:false,
|
||||
has_unreliable_pipes:false,
|
||||
has_try_enter_critical_section:true,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
static NO_COPY wincaps wincap_xp = {
|
||||
@@ -383,6 +393,7 @@ static NO_COPY wincaps wincap_xp = {
|
||||
has_negative_pids:false,
|
||||
has_unreliable_pipes:false,
|
||||
has_try_enter_critical_section:true,
|
||||
has_valid_processorlevel:true,
|
||||
};
|
||||
|
||||
wincapc NO_COPY wincap;
|
||||
|
Reference in New Issue
Block a user