summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/kwsysPlatformTestsCXX.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2018-06-011-71/+71
| | | | | * upstream-KWSys: KWSys 2018-06-01 (8ef62b28)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-11-071-1/+1
| | | | | * upstream-KWSys: KWSys 2017-11-07 (5249a82d)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2017-09-211-0/+6
| | | | | * upstream-KWSys: KWSys 2017-09-21 (ff912e4d)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2016-11-091-66/+81
| | | | | * upstream-KWSys: KWSys 2016-11-09 (18c65411)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2016-07-201-0/+5
| | | | | * upstream-KWSys: KWSys 2016-07-19 (9d1dbd95)
* Merge branch 'upstream-KWSys' into update-kwsysBrad King2015-12-171-96/+0
| | | | | * upstream-KWSys: KWSys 2015-12-14 (c1149ef6)
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-12-101-15/+0
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-10-081-1/+14
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-09-021-262/+12
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-06-041-0/+13
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2015-01-101-0/+4
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-11-251-0/+6
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-08-071-0/+48
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-06-031-0/+19
|
* Merge branch 'upstream-kwsys' into update-kwsysBrad King2013-01-141-0/+27
|
* Merge branch 'upstream-kwsys' into import-KWSys-subtreeBrad King2012-10-311-0/+66
|
* KWSys: Remove dependencies on FundamentalTypeBrad King2012-05-021-0/+9
| | | | | | | | | 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.
* KWSys: Fix SystemTools environment memory handling (#13156)Brad King2012-04-271-0/+26
| | | | | | | | | | | | | | | | | | | | | | | The SystemTools::PutEnv function tries to provide the "putenv" API without leaking memory. However, the kwsysDeletingCharVector singleton frees memory that may still be referenced by the environment table, having been placed there by putenv. If any static destruction or processing by an external tool happens after the singleton is destroyed and accesses the environment it will read invalid memory. Replace use of putenv with setenv/unsetenv when available. The latter manage internal copies of the values passed instead of referencing the original memory. When setenv/unsetenv are not available use putenv with a singleton that removes its values from the environment before freeing their memory. This requires an "unputenv" implementation. On at least some platforms it must be written in terms of "putenv" because other APIs are not available and direct modification of the "environ" global is not safe (e.g. on Windows there is interaction with "wenviron"). Fortunately either putenv("A=") or putenv("A") will remove "A" from the environment on these platforms. On other platforms fall back to direct manipulation of "environ". Also add UnPutEnv to the API and add a test for the behavior of both.
* Check for 'long long' without computing sizeBrad King2009-11-201-0/+9
| | | | | | | In KWSys IOStream we need to detect whether 'long long' exists but we do not need its size. We avoid using CHECK_TYPE_SIZE because it does not work for types whose size varies across architectuers in Mac OS X universal binaries. See issue #9913.
* Convert KWSys to OSI-approved BSD LicenseBrad King2009-09-281-0/+11
| | | | | | | 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.
* Define kwsys_ios_binary macro for std::ios::binaryBrad King2009-08-311-0/+11
| | | | | | | | The 'binary' openmode does not exist on all compilers. We define macro <kwsys>_ios_binary, where <kwsys> is the KWSys namespace, to refer to std::ios::binary if it exists and 0 otherwise. Sample usage: kwsys_ios::ifstream fin(fn, kwsys_ios::ios::in | kwsys_ios_binary);
* BUG: Enable large files only if <cstdio> worksBrad King2009-07-271-0/+8
| | | | | | | | | | | Some AIX/gcc version combinations the <cstdio> header breaks when large file support is enabled. See this GCC issue for details: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20366 We work around the problem by enhancing the configuration check for large file support to include <cstdio> when available. This will cause LFS to be disabled when the above problem occurs.
* STYLE: Work-around std:: check since this is a platform test.Brad King2008-01-311-4/+4
|
* COMP: Make sure gcc 2.96 sstream header is not used.Brad King2007-04-201-0/+3
|
* ENH: Renamed kwsysPlatformCxxTests to kwsysPlatformTests and generalized it ↵Brad King2006-10-041-0/+439
for multiple language tests (C and CXX).