Brad King
8c5b9cf915
KWSys SystemInformation: Include backtrace APIs whenever we use them
...
Include execinfo.h, cxxabi.h, and dlfcn.h under the same conditions
under which we use the APIs from them. Move their inclusion out of
OS-specific blocks.
2014-05-06 10:05:01 -04:00
Brad King
2a943d9264
Merge branch 'upstream-kwsys' into update-kwsys
2013-12-19 10:44:29 -05:00
Brad King
f668112039
Merge branch 'upstream-kwsys' into update-kwsys
2013-11-25 11:19:42 -05:00
Brad King
0408415bdd
Merge branch 'upstream-kwsys' into update-kwsys
2013-10-15 09:04:01 -04:00
Brad King
f59693b971
Merge branch 'upstream-kwsys' into update-kwsys
2013-10-08 09:53:13 -04:00
Brad King
09b147b3a7
Merge branch 'upstream-kwsys' into update-kwsys
2013-08-07 08:18:32 -04:00
Brad King
2c0c59a2e1
Merge branch 'upstream-kwsys' into update-kwsys
2013-05-29 08:56:20 -04:00
Brad King
3ed2d03ee9
Merge branch 'upstream-kwsys' into update-kwsys
2013-03-22 08:08:03 -04:00
Brad King
588d705cb1
Merge branch 'upstream-kwsys' into update-kwsys
2013-02-01 09:28:50 -05:00
Brad King
e2c756fcf0
Merge branch 'upstream-kwsys' into update-kwsys
2013-01-14 09:41:52 -05:00
Brad King
6f57a9041e
Merge branch 'upstream-kwsys' into update-kwsys
2013-01-11 11:34:59 -05:00
Brad King
6f6afbd69f
Merge branch 'upstream-kwsys' into update-kwsys
2013-01-08 08:42:58 -05:00
Brad King
e33fa5b678
Merge branch 'upstream-kwsys' into update-kwsys
2012-12-19 08:09:36 -05:00
Brad King
1acc689665
Merge branch 'upstream-kwsys' into update-KWSys
2012-11-09 08:24:08 -05:00
Brad King
68579cd6d9
Merge branch 'upstream-kwsys' into import-KWSys-subtree
2012-11-06 09:28:58 -05:00
Brad King
17fb60bb13
Merge branch 'upstream-kwsys' into import-KWSys-subtree
2012-10-31 16:44:00 -04:00
Brad King
4b8d3639ad
Merge branch 'upstream-kwsys' into import-KWSys-subtree
2012-10-01 15:18:30 -04:00
Brad King
221b5b6977
KWSys: Remove dependencies on FundamentalType
...
The hash_fun.hxx header is configured whether FundamentalType is enabled
or not and so cannot depend on it. Run the relevant platform tests
whether or not FundamentalType is on and configure the result directly
into hash_fun. While at it, remove the dependence of SystemInformation
on FundamentalType too since it needs only information that we now
always compute.
2012-05-02 08:46:10 -04:00
Brad King
13d19468d0
KWSys: Address Intel compiler remarks
...
CommandLineArguments.cxx:
remark #181 : argument is incompatible with corresponding format
string conversion
SystemInformation.cxx:
remark #193 : zero used for undefined preprocessing identifier "_WIN32"
warning #177 : variable "Regebx" was declared but never referenced
SystemTools.cxx(375):
remark #444 : destructor for base class "std::vector<char*>" is not virtual
class kwsysDeletingCharVector : private kwsys_stl::vector<char*>
Author: Hans Johnson <hans-johnson@uiowa.edu>
Change-Id: Ibc899c3ba14990158ef7bbabace4b435b22495c3
2011-11-01 10:49:25 -04:00
David Cole
99ddf6a12d
KWSys: Retrieve QNX specific memory and processor info ( #11329 )
...
Author: Rolf Eike Beer <eike@sf-mail.de> 2010-10-18 12:03:39
2011-01-05 15:40:03 -05:00
David Cole
1c2a9b8140
KWSys: Fix CPU speed calculations ( #9963 )
...
To get from Hz to MHz the factor is 10^6, not 2^20.
Author: Rolf Eike Beer <eike@sf-mail.de> 2010-10-24 06:31:11
2011-01-05 15:40:02 -05:00
Brad King
a67fd72659
KWSys: Remove useless include <sys/procfs.h> ( #11648 )
...
The header was included only under "#ifdef __linux", but not all Linux
distributions provide the header. SystemInformation uses no symbols
from this header, so do not include it.
2011-01-03 12:03:03 -05:00
Brad King
4c88a8622d
KWSys: Avoid buffer overflow in SystemInformation ( #11018 )
...
Use std::string instead of fixed-size char arrays.
Author: Ben Boeckel <ben.boeckel@kitware.com>
2010-12-21 08:25:33 -05:00
Brad King
d8e0bfa786
KWSys: Teach SystemInformation about WinXP Pro and Win7
...
Modify a few lines in the function QueryOSInformation.
Change-Id: Ief8327144fdf5588354d4ce8240eb0206722e77e
Author: Marius Staring <m.staring@lumc.nl>
2010-11-09 10:50:03 -05:00
Dave Partyka
9345833272
BUG: Commit a fix from Rusty to address incorrectly reported memory queries.
2010-03-26 14:18:24 -04:00
David Cole
146cb98cb0
Add fallback for detecting CPU speed from Windows registry on builds where USE_ASM_INSTRUCTIONS gets defined to 0. (Win64 builds.) Clean up methods to return false when not implemented or when they fail to detect the things they're supposed to detect. This file still needs a lot more work to have a fully working implementation on Win64 builds. Committing it now because it's slightly better than it was, and there is a need for the CPU speed detection code in projects that depend on kwsys. Will file a bug shortly to request that the missing implementations get filled in...
2009-12-11 13:08:29 -05:00
David Cole
ba21622048
Fix bogus calls to GetMemoryStatus and GetMemoryStatusEx: need to set the dwLength member of the struct prior to calling. Otherwise it's just a garbage value from the stack. Also, pay attention to return value of GetMemoryStatusEx: if it indicates failure then just return 0 without using any of the other data the call returns.
2009-11-18 11:22:38 -05:00
Luis Ibanez
69fdf711fe
COMP: Fixing return type of the Get methods associated with variables that
...
were changed from "unsigned long" to "size_t" to solve warnings about
64 bits to 32 bits truncations.
2009-11-16 12:43:44 -05:00
Luis Ibanez
7f601830a2
COMP: Fixing type declarations and type conversions that could potentially
...
truncate 64 bits types into 32 bits types.
2009-11-15 15:57:06 -05:00
Zach Mullen
8fe2738096
Added OS Platform (cpu architecture) detection support to windows systems
2009-10-09 11:10:06 -04:00
Zach Mullen
2af045dfc5
Trimmed off the newline from sw_vers output on mac, it could cause xml parsing errors if left in
2009-10-08 10:56:55 -04:00
Zach Mullen
80533948b2
Fix bus error on mac. Was a result of not having null termination of arg list to sw_vers calls.
2009-10-06 14:55:48 -04:00
Zach Mullen
444e581860
Added better OS information for Mac OS X
2009-10-06 11:46:16 -04:00
Brad King
de955e4b6d
Convert KWSys to OSI-approved BSD License
...
This converts the KWSys license to a pure 3-clause OSI-approved BSD
License. We drop the previous license clause requiring modified
versions to be plainly marked. We also update the KWSys copyright to
cover the full development time range.
2009-09-28 11:37:35 -04:00
Bill Hoffman
5634ca02f4
ENH: make this work for older versions of OSX
2009-05-20 09:50:20 -04:00
Bill Hoffman
bb7230cc96
ENH: revert back because it does not build on older macs for now
2009-05-19 21:50:19 -04:00
Bill Hoffman
46a20bbd4c
ENH: remove warning
2009-05-19 16:56:47 -04:00
Bill Hoffman
4220e7c62c
ENH: make this build on other machines besides the mac
2009-05-19 16:46:24 -04:00
Bill Hoffman
d3d33a3549
ENH: fix system info for mac
2009-05-19 16:35:13 -04:00
Brad King
ae284cc5c8
BUG: Fix parsing of linux 2.6 /proc/meminfo format
...
Previously KWSys SystemInformation parsed this file assuming a strict
order and set of fields, but the order is not reliable. This
generalizes the implementation to support any order and extra fields.
2009-04-06 14:55:54 -04:00
Francois Bertel
ad4a2fd697
COMP:Fixed warnings with gcc 4.3.2.
2009-03-19 22:48:05 -04:00
Bill Hoffman
3d0e241498
BUG: #8496 add support for system info on haiku
2009-02-12 10:08:15 -05:00
Francois Bertel
ef36d72c89
COMP:Fixed warnings.
2008-12-15 17:19:26 -05:00
Bill Hoffman
7c2445212e
BUG: fix cpu info string
2008-12-04 10:51:11 -05:00
Sebastien Barre
4ed9faa830
ENH: fix for VS6 and Cygwin
2008-10-17 11:29:30 -04:00
Sebastien Barre
8e5886e652
ENH: fix for Vista
2008-10-16 19:30:49 -04:00
Bill Hoffman
2f082668bd
ENH: fix crash on dash17 linux where the parsing of the proc file must not have worked right
2008-06-01 23:40:30 -04:00
Bill Hoffman
735b77798d
ENH: fix crash on cygwin
2008-06-01 16:11:38 -04:00
Francois Bertel
d0237abfd4
BUG:cpuinfo format are different between Linux and Cygwin. Cygwin does not have physical id tag or cpu cores tag.
2008-06-01 14:40:11 -04:00
Bill Hoffman
fc5bc3380e
ENH: avoid divide by zero, temporary fix until cygwin cpu file is read better, bad cpu info is better than a crash
2008-06-01 11:23:22 -04:00