summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/SystemTools.cxx
Commit message (Collapse)AuthorAgeFilesLines
* COMP: Remove useless variable assignmentBrad King2009-06-221-1/+0
| | | | | This removes an assignment whose result is never used, thus quieting a warning from Borland.
* ENH: use .exe on vmsBill Hoffman2009-06-111-1/+1
|
* ENH: Teach KWSys SystemTools about VMS pathsBrad King2009-06-101-2/+45
| | | | | | This teaches ConvertToUnixSlashes to convert VMS paths into posix-style paths. We also set the DECC$FILENAME_UNIX_ONLY feature so the process always sees posix-style paths on disk.
* ENH: fix warning on borlandBill Hoffman2009-06-051-9/+9
|
* ENH: move PutEnv to SystemToolsBill Hoffman2009-06-051-0/+27
|
* BUG: Fix removal of read-only directoriesBrad King2009-05-131-0/+13
| | | | | Read-only directories must be given write permission before we can remove files and subdirectories from them.
* ENH: check in almost building VMS stuff with VMSBuild directory since the ↵Bill Hoffman2009-04-231-1/+3
| | | | bootstrap script will not work on VMS
* ENH: Remove obscure method from KWSys SystemToolsBrad King2009-04-211-23/+0
| | | | | This removes SystemTools::FileExistsInParentDirectories from KWSys since it is a special-purpose method that is not generally useful.
* BUG: Fix SystemTools::IsSubDirectory on bad inputBrad King2009-04-201-0/+4
| | | | | | | | When SystemTools::GetParentDirectory was fixed to never remove the root path component from a full path we violated an assumption made by IsSubDirectory that eventually GetParentDirectory returns an empty string. This led to an infinite loop if the potential parent directory is empty, so we explicitly avoid that case.
* BUG: Replace brittle GetParentDirectory implBrad King2009-04-151-25/+1
| | | | | | | The previous change to this method broke cases where the input path does not exist. The SystemTools::GetParentDirectory method is redundant with the more robust SystemTools::GetFilenamePath. This replaces its implementation to just call GetFilenamePath.
* BUG: SystemTools::GetParentDirectory() will crash if "/" is passed in as ↵Yumin Yuan2009-04-151-1/+7
| | | | argement. Valid check is added to make sure the input argment exists, and if "/" is passed in, empty string will be returned.
* COMP:Fixed warnings.Francois Bertel2009-03-181-11/+16
|
* BUG: Work around broken GetLongPathName caseBrad King2009-02-091-0/+5
| | | | | | | On Windows the GetLongPathName API function does not work on some filesystems even if the file exists. In this case we should just use the original long path name and not the GetShortPathName result. See issue #8480.
* BUG: Fix GetRealPath when realpath failsBrad King2009-02-091-2/+14
| | | | | | This patch from Philip Lowman teaches SystemTools::GetRealPath to deal with paths that do not exist by dealing with the case that realpath returns NULL. See issue #8423.
* BUG: Do not copy permissions of files when making the copy in an install ↵David Cole2008-12-181-11/+17
| | | | rule. If the source file was read-only, this prevents the subsequent set of the destination file's modification time, making the copied file always different in time-stamp than the original and always installing a new file with a new time stamp (but the same content) causing unnecessary downstream incremental rebuilds. As part of this fix, add an optional copyPermissions parameter to the SystemTools routines CopyFileIfDifferent, CopyFileAlways, CopyAFile and CopyADirectory. The copyPermissions parameter defaults to true to preserve the behavior of these routines for existing callers.
* ENH: fix for VistaSebastien Barre2008-10-161-1/+1
|
* ENH: oopsSebastien Barre2008-10-161-0/+4
|
* ENH: fix for Windows VistaSebastien Barre2008-10-161-7/+22
|
* STYLE: Fix typo in GetFilenameLastExtension docsBrad King2008-10-101-1/+1
| | | | See issue #7797.
* ENH: add initial support for HAIKU OS from bug# 7425Bill Hoffman2008-09-151-1/+6
|
* ENH: Added WOW64 key view support to KWSys SystemTools' windows registry API.Brad King2008-05-271-9/+36
| | | | | | | - Add an argument to registry read/write/delete methods to specify a 32-bit or 64-bit view. - Default is the bit-ness of the running program. - See issue #7095.
* COMP: sprintf warnings. DWORD should use %ld rather than %d. Also, const ↵Bill Lorensen2008-05-111-7/+7
| | | | char *p, a shadowed variable warning.
* ENH: Allow numbers in username in URL regex.Jeffrey Baumes2008-04-231-1/+1
|
* BUG: fix install problem on make and allow symlinks to cmake bin directoryBill Hoffman2008-03-271-0/+7
|
* COMP: Fix VS6 and old HP build. This source does not have the #define for hack.Brad King2008-01-211-0/+12
|
* BUG: Fix previous commit to not access empty strings out of bounds.Brad King2008-01-211-3/+3
|
* BUG: Make sure search paths never have double-slashes. Leading with two ↵Brad King2008-01-201-10/+35
| | | | slashes (//) on cygwin looks like a network path and delays while waiting for a non-existent machine.
* COMP: Fix build on borland.Brad King2008-01-121-2/+2
|
* ENH: Add SystemTools::SplitPathRootComponent and re-implement SplitPath to ↵Brad King2008-01-111-35/+98
| | | | use it. Add better treatment of user home directory paths.
* BUG: fix for bug 6136 make sure includes are not directoriesBill Hoffman2007-12-151-1/+7
|
* BUG: fixed an incomplete regexpPhilippe Pebay2007-12-061-2/+2
|
* COMP: Remove reference to vtksys. The unmangled kwsys name should be used ↵Brad King2007-12-051-2/+2
| | | | in this source.
* ENH: added two functions for URL parsing:Philippe Pebay2007-12-051-0/+57
| | | | | | | | 1. an "abridged" version that separates protocol from dataglom in an expression with the form protocol://dataglom 2. a "full" version that parses protocol, username, password, hostname, port, and path in a standard URL (all of these variables are optional, except for protocol and hostname).
* ENH: remove warningBill Hoffman2007-12-041-1/+1
|
* ENH: add a touch -E command to cmakeBill Hoffman2007-12-041-0/+36
|
* ENH: add support for the Syllable OS (http://www.syllable.org)Alexander Neundorf2007-11-241-0/+8
| | | | | | | | | | | major issues: -access() doesn't return false for an empty string (#ifdefed in cmake) -dlopen() doesn't return 0 on failure (#ifdefed in cmake and fixed now in Syllable) -the kwsys and Bootstrap tests fail with timeout due to the fact that I'm doing all that in qemu, which is quite slow -RPATH is now supported, so without modifying the test adapting DLL_PATH in Syllable is required for the tests to succeed -the Plugin test fails with an undefined reference to example_exe_function() in example_mod_1, it seems this isn't supported under Syllable Alex
* ENH: Add ability to call Visual Studio macros from CMake. Add a CMake Visual ↵David Cole2007-11-161-5/+17
| | | | Studio macro to reload a solution file automatically if CMake makes changes to .sln files or .vcproj files. Add code to call the macro automatically for any running Visual Studio instances with the .sln file open at the end of the Visual Studio Generate call. Only call the macro if some .sln or .vcproj file changed during Generate. Also, add handling for REG_EXPAND_SZ type to SystemTools::ReadRegistryValue - returned string has environment variable references expanded.
* COMP: Fix warning when gcount stream method does not really return ↵Brad King2007-11-071-1/+2
| | | | std::streamsize.
* COMP: Fix warnings on 64-bit Mac OS X build. Patch from issue #3697.Brad King2007-11-051-4/+3
|
* STYLE: fixed misspellings of Mac OS XSean McBride2007-10-261-1/+1
|
* BUG: Fix bug#5590. When converting a relative path between two full paths ↵Brad King2007-10-251-13/+6
| | | | on different windows drive letters do not create a ../../d:/foo/bar path and just return the full path to the destination.
* BUG: fix for bug 0005767 hang for replace string with emptyBill Hoffman2007-10-121-0/+5
|
* ENH: bad bug badSebastien Barre2007-10-091-1/+1
|
* ENH: speed up actual path name by cache on windowsBill Hoffman2007-10-021-1/+14
|
* COMP: TIOCGWINSZ and struct winsize also doesn't exist on Cray CatamountAlexander Neundorf2007-09-201-1/+4
| | | | Alex
* COMP: make SystemTools.cxx build on Cray Xt3Alexander Neundorf2007-09-201-2/+10
| | | | Alex
* PERF: micro optimization: the (*pos1) && (*pos1=='/') were redundant, andAlexander Neundorf2007-07-231-2/+1
| | | | | | | hasDoubleSlash is false in most cases, so in most cases 3 comparisons were done, now only one Alex
* ENH: fix case problem with drive letters and cmake vs CMakeSetup build.make ↵Bill Hoffman2007-06-061-0/+10
| | | | changing
* ENH: Added kwsys SystemTools::CreateSymlink and SystemTools::ReadSymlink.Brad King2007-03-121-0/+38
|
* COMP: fix warningsKen Martin2007-03-021-2/+2
|