- Apr 19, 2010
- Apr 09, 2010
-
-
David Cole authored
Patch to avoid short name usage where possible. Get the actual case spelling of a file name on 'Windows' without converting to short name and back again. Avoids bad behavior reported in http://bugs.winehq.org/show_bug.cgi?id=22286 when using cmake under a wine/msys/mingw installation on a Linux box. Thanks to Clinton Stimpson for preparing the patch.
-
- Mar 26, 2010
-
-
Dave Partyka authored
-
- Mar 22, 2010
-
-
Pat Marion authored
-
- Mar 18, 2010
-
-
Brad King authored
Teach kwsysProcessKill to identify processes on this platform using the "ps" command just as on Linux. Patch from Modestas Vainius <modax@debian.org>. See issue #10432.
-
- Feb 12, 2010
-
-
Brad King authored
In commit 'Create KWSYS_PLATFORM_INFO_TEST macro' (2009-11-20) we implemented the macro to use a cache entry to avoid re-running the try_compile(). However, the output copied from the try_compile is needed on every configure. If the user wipes out the build tree but not the cache file then the try_compile() will not re-run to recreate the needed file. We address the problem by teaching the macro to run the try_compile() whenever its output file does not exist.
-
- Jan 27, 2010
-
-
Brad King authored
This CVS keyword was copied into the file with the rest of the implementation. It has no meaning outside its original project tree.
-
- Jan 26, 2010
-
-
Dave Partyka authored
COMP: remove exporting String as VS10 attempts to export its parents (basic_string) which causes all kinds of multiply defined symbols at link time.
-
- Jan 13, 2010
-
-
Brad King authored
When building on Cygwin without -mwin32, the _WIN32 macro may not be defined. SharedForward must still set the PATH environment variable to ensure runtime dependencies are found. The 'ldd' wrapping feature uses 'cygcheck' for now since a real ldd tool is not available in Cygwin 1.5. We can change to use the real ldd when we choose to stop supporting legacy Cygwin and require 1.7.
-
- Jan 12, 2010
-
-
Brad King authored
Open output files with mode 0666 so that permissions are not more strict than umask permits. See issue #10126.
-
- Jan 06, 2010
-
-
Marcus Hanwell authored
-
Marcus Hanwell authored
When kwsys is built using GCC visibility support can be used. This is similar to the way that Windows exports symbols in DLLs, and requires projects that build kwsys to change the default visibility using some compiler flags. See http://gcc.gnu.org/wiki/Visibility for more details about GCC visibility.
-
- Dec 16, 2009
-
-
Brad King authored
The SharedForward header contains a preprocessor table mapping from platform to equivalents for ldd and LD_LIBRARY_PATH. This commit fixes the table preprocessor directives to guarantee at most one platform. This generalizes the commit "Fix compilation of VTK on debian/sparc".
-
- Dec 15, 2009
-
-
Brad King authored
The TestSharedForward executable and TestDynload module do not actually link to a KWSys library, but it is nice to build them after the libraries just like all other test binaries. This also works around a universal binary bug in Xcode 2.x. It forgets to create the output directory for the executable before linking it. We avoid the problem by putting the library in the directory first.
-
- Dec 11, 2009
-
-
David Cole authored
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...
-
- Dec 08, 2009
-
-
Brad King authored
KWSys should not set variables outside its namespace. It can honor the EXECUTABLE_OUTPUT_PATH set by a host project, but tere is no need for it to set a default in the host project cache.
-
- Dec 01, 2009
-
-
Brad King authored
In order to kill process trees we need to list all processes to find those whose parent we are killing. We implement process listing on OpenSolaris by using "ps -ef" and parsing the resulting format: UID PID PPID C STIME TTY TIME CMD %*s %d %d %*[^\n]\n
-
Brad King authored
In order to kill process trees we need to list all processes to find those whose parent we are killing. We implement process listing on QNX using "ps -Af" and parsing the resulting format: UID PID PPID C STIME TTY TIME CMD %*d %d %d %*[^\n]\n
-
- Nov 30, 2009
-
-
Brad King authored
We enumerate processes to identify those whose parent is being killed so that we can recursively kill the children. Enumeration uses the Process32(First|Next) windows API functions, which accept PROCESSENTRY32 objects to be filled. This commit corrects the declaration of the entry structure to account for its size on 64-bit Windows.
-
Brad King authored
On UNIX systems we kill a tree of processes by performing a DFS walk of the tree. We send SIGSTOP to each process encountered, recursively handle its children, and then send SIGKILL. We once used the above approach in the past, but it was removed by the commit "Do not send both SIGSTOP and SIGKILL when killing a process". The commit was meant to work-around an OS X 10.3 bug in which the child would not always honor SIGKILL after SIGSTOP. At the time we wrongly assumed that the process tree remains intact after SIGKILL and before the child is reaped. In fact the grandchildren may be re-parented to ppid=1 even before the child is reaped, which causes the DFS walk to miss them.
-
- Nov 24, 2009
-
-
Zach authored
Mac has gettimeofday defined, but cmsys wasn't aware of that, so it was falling back to using time() which only provides second resolution. Fixed to allow usec res.
-
Brad King authored
We suppress Intel warning 1572 because the cases where we do equality tests are valid. Since this project does not do numerical computations we need not worry about real instances against which this warning protects.
-
- Nov 23, 2009
-
-
Brad King authored
Under -O3 optimization this compiler breaks our testProcess.c source file. We force -O0 for the file to avoid the problem.
-
- Nov 20, 2009
-
-
Brad King authored
The commit "Enable loose loop constructs in KWSys" set the minimum required CMake version to 2.4.5. This regressed the setting of CMP0003, so we restore it in this commit.
-
Brad King authored
The FundamentalType header needs to know type sizes at preprocessing time. This commit teaches it to avoid using CHECK_TYPE_SIZE because the macro does not work for types whose size varies across architectuers in Mac OS X universal binaries. Fortunately the Mac compilers provide just enough information to detect the needed type sizes during preprocessing. We now use preprocessor macros instead of configuration tests whenever they are available. As a side effect this reduces the number of try-compiles needed with GCC. See issue #9913.
-
Brad King authored
This macro helps KWSys perform try-compile tests that extract 'INFO' strings out of compiled binaries. It works for CMake 2.6 and above. On CMake 2.4 it always returns an empty list of information values, so this should be used only as an optimization until 2.6 is required.
-
Brad King authored
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.
-
Brad King authored
We set CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS in KWSys's CMakeLists.txt file to enable simpler endif() syntax for CMake 2.4.
-
- Nov 18, 2009
-
-
David Cole authored
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.
-
- Nov 16, 2009
-
-
Bill Hoffman authored
-
Luis Ibanez authored
were changed from "unsigned long" to "size_t" to solve warnings about 64 bits to 32 bits truncations.
-
- Nov 15, 2009
-
-
Luis Ibanez authored
truncate 64 bits types into 32 bits types.
-
- Oct 19, 2009
-
-
Alexander Neundorf authored
Alex
-
- Oct 16, 2009
-
-
David Cole authored
Better fix for crash on Windows. This time it will even work on Linux, too. That GetLineFromStream method while loop sure is fussy.
-
David Cole authored
Fix crash on Windows. If input stream is no good, do not try to read a line from it. Return false and an empty line instead...
-
- Oct 09, 2009
-
-
Zach authored
-
- Oct 08, 2009
-
-
Zach authored
-
- Oct 06, 2009