Commit Graph

381 Commits

Author SHA1 Message Date
Bill Hoffman 266d5d16df ENH: optimization of cwd and do not leak library handle 2005-04-12 13:25:19 -04:00
Bill Hoffman 5e39c9ca14 BUG: fix GetLongPathName for WindowsNT 2005-04-11 12:20:24 -04:00
Bill Hoffman a5be6b8406 BUG: fix build on mingw 2005-04-08 08:34:22 -04:00
Bill Hoffman 3387db4c05 BUG: if short path or long path fails return the original input 2005-04-07 17:20:33 -04:00
Bill Hoffman be32b258cb ENH: check return value of GetLongPath 2005-04-07 16:58:02 -04:00
Bill Hoffman fadff33791 BUG: fix for bug 1717 incorrect path sent to dart server 2005-04-07 13:03:47 -04:00
Brad King f0b10ad061 ENH: Added proper namespaced version of KWSYS_STL_STRING_ISTREAM_DEFINED, KWSYS_STL_STRING_OSTREAM_DEFINED, and _STL_STRING_NEQ_CHAR_DEFINED macros. 2005-04-06 16:14:29 -04:00
Bill Hoffman 1e6989017d remove cerr stuff 2005-04-06 09:47:07 -04:00
Bill Hoffman d8f75badb4 Fix bug in != stuff 2005-04-06 09:44:09 -04:00
Bill Hoffman 19aff4f3bd COMP: hack fix for old sgi until bootstrap is fixed 2005-04-05 21:10:10 -04:00
Brad King 3bb990dcf1 BUG: Test for stl stirng operator!= for char* needs to know result of KWSYS_STL_HAVE_STD. 2005-03-30 15:27:16 -05:00
Brad King 65f1e3e1d8 ENH: Added operator!= for stl string and char* when the system does not provide one. 2005-03-29 10:10:25 -05:00
Brad King 22f6d68be3 ENH: Added istream and ostream operators for stl string in KWSys when using old streams that do not provide them. 2005-03-29 08:20:08 -05:00
Brad King c7a2c80c17 ENH: SplitPath now supports slashes in both directions in the input path but still produces forward slashes in the root component. 2005-03-29 08:09:47 -05:00
Sebastien Barre 1816011791 ENH: move EstimateFormatLength to kwsys 2005-03-28 17:46:38 -05:00
Brad King ebbe1ffdd9 COMP: Removing stl string io operators change until the CMake bootstrap script can be fixed. 2005-03-26 09:58:05 -05:00
Brad King 098c33c4da ENH: Added istream and ostream operators for stl string when using old streams that do not provide them. 2005-03-26 08:19:36 -05:00
Brad King e0cfb268b6 ENH: Adding SharedForward C header to help create forwarding executables on UNIX systems that configure the shared library runtime search path and then replace themselves with the real executable. This is useful to create binary distributions that work from any extracted location even with shared libraries. 2005-03-25 08:41:57 -05:00
Brad King 4ba14d1278 ENH: Re-implemented CollapseFullPath to not need to change directories. Operation is now fully string based. 2005-03-25 08:09:00 -05:00
Brad King eea7221f31 COMP: Using proper __QNX__ preprocessor test. 2005-03-17 13:06:55 -05:00
Brad King 6b43d78dae COMP: Only include malloc.h on QNX. 2005-03-16 10:49:58 -05:00
Sebastien Barre 74ec81ca3f FIX: that was wrong 2005-03-16 10:15:13 -05:00
Brad King 59ae67558f COMP: Need malloc.h for malloc/free on QNX. 2005-03-16 09:41:26 -05:00
Sebastien Barre a1de574851 ENH: add last two small funcs from vtkString. Done removing deps 2005-03-11 11:48:39 -05:00
Sebastien Barre 213c04563c ENH: update documentation, sort methods into categories 2005-03-11 10:43:31 -05:00
Brad King 0d0cfaea08 COMP: Added missing include of string.h. 2005-03-11 10:07:36 -05:00
Sebastien Barre c8772c286e COMP: fix some warnings 2005-03-11 09:31:58 -05:00
Sebastien Barre effbdf8d8f ENH: remove deps to vtkString by using KWSys (a handful of functions have been moved to KWSys) 2005-03-10 17:49:27 -05:00
Sebastien Barre 2415ff678a ENH: remove deps to vtkString by using KWSys (a handful of functions have been moved to KWSys) 2005-03-10 17:44:58 -05:00
Sebastien Barre 07bdc60045 ENH: remove deps to vtkString by using KWSys (a handful of functions have been moved to KWSys) 2005-03-10 17:34:22 -05:00
Sebastien Barre a79868206e ENH: move function from vtkKWDirectoryUtilities and vtkString to SystemTools 2005-03-10 12:50:17 -05:00
Brad King 5290b40c47 ENH: Added "ostringstream(const kwsys_stl::string& s)" and "void str(const kwsys_stl::string& s)" compatibility methods. 2005-03-03 12:00:43 -05:00
Andy Cedilnik 588653c4e8 COMP: Remove warnings about shadow variables 2005-02-27 17:36:00 -05:00
Bill Hoffman d680e51777 ENH: fix relative paths in xcode 2005-02-24 17:46:49 -05:00
Brad King 495666742b ENH: Added ComparePath method. 2005-02-24 14:47:45 -05:00
Brad King e2ec4a1845 ENH: Adding kwsys::SystemTools::FileTimeCompare method to compare file modification times with the highest resolution possible on the file system. 2005-02-17 11:28:13 -05:00
Brad King 0fd1c5d809 ENH: Added try-compile KWSYS_STAT_HAS_ST_MTIM. This tests whether struct stat has the extra st_mtim member that has high resolution times. 2005-02-17 10:49:16 -05:00
Andy Cedilnik a8c74a6b57 BUG: On windows allow removing of files that are read-only 2005-02-16 16:03:21 -05:00
Brad King 93384c7763 BUG: Removing debugging code now that the problem has been fixed on the remote dashboard. 2005-02-16 08:56:17 -05:00
Brad King ca205223da BUG: Preserve trailing slash state when translating paths. 2005-02-15 16:03:14 -05:00
Bill Hoffman 3675a6e3a7 ENH: make sure paths do not end in / before adding one 2005-02-15 09:58:58 -05:00
Brad King 23dfc9440a BUG: Adding debugging code to remotely debug a failing dashboard test. 2005-02-15 08:40:34 -05:00
Brad King fc8e5aeebf BUG: Adding debugging code to remotely debug a failing dashboard test. 2005-02-15 08:28:19 -05:00
Andy Cedilnik 39fcca05cf ENH: Implement copy of directory with content 2005-02-11 16:25:07 -05:00
Brad King 23276ca3a2 ENH: Initializing translation map using the PWD environment variable and getcwd functions to automatically translate logical paths involving the current working directory. Also added the JoinPath method to aid users of the SplitPath method. 2005-02-10 14:19:06 -05:00
Brad King 3b008ea03b COMP: std:: -> kwsys_stl:: 2005-02-10 10:35:23 -05:00
Brad King 4bf8aa6293 ENH: Added SystemTools::SplitPath method to split any file path into its basic components. 2005-02-10 10:32:53 -05:00
Jim Miller 52f7a0cce8 BUG: encoding 2 bytes into 4 bytes was accessing a 3rd byte from the source 2005-01-12 10:11:04 -05:00
Andy Cedilnik 320e90ef5a ENH: Add a delay method 2005-01-04 10:55:01 -05:00
Bill Hoffman ec6b579717 BUG: fix for bug 1385, /tmp should not be used on windows 2004-12-02 12:33:44 -05:00
Brad King 920df088ab COMP: Need to choose between <new> and <new.h> based on whether standard headers are available. 2004-12-01 07:28:13 -05:00
Brad King ca2f4aa039 COMP: Disabling old streams warnings when including old headers on MSVC. 2004-12-01 07:24:33 -05:00
Brad King 9bf52f7001 BUG: Need to include header <new> to use placement new syntax. Really this should be fixed by replacing the stream buffer to set a new string instead of reconstructing the object, but this will require quite a bit of work to do portably. 2004-11-30 18:20:31 -05:00
Andy Cedilnik 95f67dca9e COMP: Remove compile warning 2004-11-02 17:11:54 -05:00
Bill Hoffman 160c32e529 BUG: add a test for a single char dir, and fix bug introduced in 1.53, but we still can not handle a space as the start of a directory name 2004-11-01 16:57:05 -05:00
Bill Hoffman bb316a4945 ENH: handle read only directories with configure file destination 2004-10-26 14:33:54 -04:00
Andy Cedilnik 2bad658304 COMP: Attempt to fix warnings on SGI 2004-10-26 08:45:27 -04:00
Andy Cedilnik fc459731db COMP: Remove warning 2004-10-20 12:37:39 -04:00
Andy Cedilnik ddb3dfdf2f ENH: Specify full path to the executable 2004-10-17 22:46:48 -04:00
Andy Cedilnik bc66973061 ENH: Add method to find file in parent directories if it exists 2004-10-17 18:50:49 -04:00
Bill Hoffman 1ed5888d91 BUG: fix split program from args to not get stuck in an infinite loop in some cases 2004-10-11 11:57:35 -04:00
Brad King bc6ae0649b ERR: Replaced std::string with kwsys_stl::string for portability. 2004-10-11 08:02:51 -04:00
Andy Cedilnik b221d046a6 ENH: Add method to retrieve parent directory and for checking if directory is a subdirectory of another directory 2004-10-10 12:14:58 -04:00
Bill Hoffman 7f17646576 BUG: fix realpath problem and unix slashes 2004-10-05 10:59:07 -04:00
Ken Martin 50da032847 COMP: fix some compile issues with insert 2004-10-05 09:25:55 -04:00
Ken Martin 1066af4527 ENH: Mathieus support for path conversions 2004-10-04 12:31:09 -04:00
Brad King 7350756728 ERR: Added missing include of string.h 2004-10-01 11:36:38 -04:00
Brad King f2e46cf172 ENH: Added optional display of output for tests. Avoid printing alot of output for test 6. 2004-09-30 17:42:42 -04:00
Andy Cedilnik 70c973ba10 ERR: Fix Windows build 2004-09-29 13:21:21 -04:00
Andy Cedilnik 3fc7dc5e70 ENH: Move permissions code to kwsys so that copyfile can use it. Fixes Bug #1133 - cmake -E copy file dir sets the wrong permissions on the destination directory 2004-09-29 12:20:52 -04:00
Andy Cedilnik 1852a88fa1 ENH: When copy file, if the output file exits, delete it first 2004-09-29 11:18:07 -04:00
Andy Cedilnik fdf589d2da ENH: Allow CMake to use CommandLineArguments without warning 2004-09-29 08:58:45 -04:00
Andy Cedilnik f3cfe48152 ENH: Add lots of comments 2004-09-29 08:34:02 -04:00
Andy Cedilnik 7488e43d69 ENH: Add access to last argument parsed 2004-09-29 07:56:25 -04:00
Andy Cedilnik e96b0b44ca ENH: Add accessor for Argv0 2004-09-28 11:34:29 -04:00
Andy Cedilnik b3481a9675 ERR: Fix memory problem 2004-09-23 15:02:22 -04:00
Andy Cedilnik 4b9386751a STYLE: Only allocate as much space as needed 2004-09-23 11:53:55 -04:00
Andy Cedilnik 4966d102d6 ENH: Make GetRemainingArguments actually work 2004-09-23 11:45:02 -04:00
Andy Cedilnik 2e58daf5be ENH: Add missing include 2004-09-16 12:39:02 -04:00
Andy Cedilnik 6a4071b5d2 ENH: Add method to retrieve the terminal width 2004-09-16 10:58:56 -04:00
Andy Cedilnik d349d6ff18 ENH: a bit more cleanup. The help should really be replaced by something like cmDocumentation 2004-09-16 10:49:09 -04:00
Andy Cedilnik a2c19a4d46 ENH: Condense help string, add support for setting line length and make it work 2004-09-16 10:27:17 -04:00
Andy Cedilnik 1ebc0709f1 ENH: Move callback structure out of the public interface. Also block the warning on Visual Studio Debug 2004-09-15 09:22:34 -04:00
Ken Martin c30e7771ee ERR: Fix borland build 2004-09-14 11:48:34 -04:00
Andy Cedilnik 899be21cde ERR: Add missing include 2004-09-14 11:39:04 -04:00
Andy Cedilnik 73ddc9459f ENH: Use const correctness for arguments 2004-09-14 10:34:10 -04:00
Andy Cedilnik e6c7707022 ERR: More missing ios and includes 2004-09-13 19:06:19 -04:00
Andy Cedilnik 184087cef1 ERR: Fix IOS namespace 2004-09-13 18:57:28 -04:00
Andy Cedilnik c8fa658142 ENH: Move command line argument parsing code to kwsys 2004-09-13 16:15:02 -04:00
Bill Hoffman 8f92e8c069 Fix leaked file and registry descriptors 2004-09-07 16:03:25 -04:00
Ken Martin a5e791ae66 fix warning 2004-09-06 12:49:40 -04:00
Brad King a0f48a0592 ERR: Removed inclusion of fstream header. This file is meant as a compatibility header for iosfwd and therefore should not include any other header. Whatever was fixed by adding the include of fstream here should be fixed by other means. 2004-08-31 08:25:58 -04:00
Bill Hoffman 3e2e0d5d63 BUG: fixes for mingw and CMakesetup with spaces in the source directory 2004-08-30 13:50:00 -04:00
Bill Hoffman 8a70315bb4 BUG: fix for try run failing on some cygwin builds. Allow a driver letter to start a full path on cygwin 2004-08-09 17:42:27 -04:00
Bill Hoffman 2938652cbd ENH: create a server that does not use vtkPVApplication or tcl wrapping. Move several classes from GUI/Client to Servers/Filters. Remove use of PARAVIEW_NEW_SOURCE_ORGANIZATION define. 2004-08-03 10:20:31 -04:00
Andy Cedilnik 6d3ba1ed27 BUG: If source and destination is the same file, then do not copy file always 2004-07-20 11:09:58 -04:00
Brad King b993cd7fba BUG: Fixed off-by-one error in test6 function. 2004-07-13 17:33:23 -04:00
Brad King 0437b776b6 ENH: Added test for runaway output. 2004-07-13 17:27:58 -04:00
Brad King 43225860b6 ENH: Re-arranged handling of the two threads per pipe to improve readability of code. 2004-07-13 16:50:55 -04:00
Brad King a6c9cb9b0d BUG: Fix for read pipe wakeup when child is writing alot of data and may fill the pipe buffer before WriteFile is called. 2004-07-13 16:23:49 -04:00
Brad King 5701282e98 ERR: Fixed missing return warning. Code was not reachable anyway. 2004-07-09 11:49:04 -04:00
Brad King 1d6eecd949 ENH: Added windows implementation of Disown/Detach. 2004-07-07 18:15:20 -04:00
Brad King 55c1c3b33f BUG: Do not disown if process has already been killed or the timeout expired. Also need to call kwsysProcessCleanup to disown. 2004-07-07 17:46:34 -04:00
Brad King ae28d93a72 ENH: Added kwsysProcess_Disown an kwsysProcess_Option_Detach to allow detached processes to be created. Currently implemented only on UNIX. 2004-07-07 17:27:50 -04:00
Brad King 6df06682a5 ERR: Using KWSYSPE_PIPE_BUFFER_SIZE in place of separate bufferSize constant for consistency. 2004-07-07 13:03:56 -04:00
Bill Hoffman bbc9e4a9dc no c++ comments in c 2004-07-04 00:05:04 -04:00
Bill Hoffman 4772d6b649 fix for hp build 2004-07-03 12:00:41 -04:00
Brad King 0ae1970a5e BUG: Need a C-only library for C tests. 2004-07-02 17:39:47 -04:00
Brad King e6145d6878 BUG#392: Implementation of process tree killing for systems with /proc filesystem. 2004-07-02 16:39:29 -04:00
Bill Hoffman 40fbba22a4 ENH: add CMAKE_FILE_PATH, CMAKE_PROGRAM_PATH, CMAKE_LIBRARY_PATH, and search them first, PATH second, and last the paths listed in the FIND call 2004-06-30 11:31:41 -04:00
Bill Hoffman 32ccf38c58 BUG: undo last bug fix because it breaks cmake, rebuild_cache on ParaView gets tons of errors about not being able to create the bin directory 2004-06-07 21:41:53 -04:00
Brad King a2949c204d BUG: Do not create a directory on top of a file. 2004-06-07 13:55:20 -04:00
Brad King 23b81b7469 ERR: Do not add the library if no sources are used. 2004-06-04 14:59:05 -04:00
Bill Hoffman 2936c54cdd ENH: make sure find library does not find directories 2004-06-01 12:19:44 -04:00
Brad King b6fb2fe8f9 BUG: Do not wait for children to exit when killing them. Sometimes they do not really die. 2004-05-13 10:08:09 -04:00
Brad King 6c4ab7ec52 ENH: Adding native windows process tree kill to ProcessWin32.c. This replaces the ProcessWin32Kill.c implementation. 2004-05-10 14:54:22 -04:00
Brad King dd70c8f82d ERR: Avoiding namespace pollution: kw_sys -> kwsys_ns. Also undefining the macro at the correct time. 2004-05-10 13:38:33 -04:00
Brad King 5017fc66e5 ENH: Renaming kwsys macro to kwsys_ns to work around borland preprocessor bug. 2004-05-10 13:15:45 -04:00
Brad King 914a9fb3b4 ERR: Avoiding namespace pollution: kw_sys -> kwsys_ns. Also undefining the macro at the correct time. 2004-05-10 13:10:57 -04:00
Bill Hoffman 568c921673 ENH: remove extra include for compile with mingw 2004-05-10 12:08:01 -04:00
Bill Hoffman 9c0411b4f2 ENH: change to c code so it can be built with mingw 2004-05-10 12:06:24 -04:00
Bill Hoffman 2c4922f558 ENH: remove unused include file so it will build with mingw 2004-05-10 11:04:23 -04:00
Andy Cedilnik 8da9b14cc6 ERR: On Borland preprocessor goes into recursion which adds some weid spaces in the include name. This fixes it 2004-05-07 14:22:48 -04:00
Bill Hoffman 99a1ec6c6d BUG: make sure the correct state is set for expired processes 2004-05-07 12:52:46 -04:00
Brad King db4fd2a15d ENH: Adding process tree killing for Win32 process execution. 2004-05-06 15:34:04 -04:00
Brad King 7de6edc686 ERR: Added units to SetTimeout documentation. 2004-05-06 14:30:00 -04:00
Bill Hoffman 8d41f97ff6 BUG: fix collapse full path to handle a file in the root directory 2004-05-06 10:29:29 -04:00
Bill Hoffman 94f6dfb8a6 ENH: remove warnings 2004-04-30 10:32:45 -04:00
Brad King 5601afe384 ENH: Added automatic adjustment of C++ flags to include -timplicit_local and -no_implicit_include for the Compaq compiler on OSF. 2004-04-29 17:44:52 -04:00
Andy Cedilnik d5763a8c98 BUG: Most of time when asking if file exists, we actually want to read it... Should fix Bug #809 - FIND_INCLUDE should check readability 2004-04-29 13:25:02 -04:00
Andy Cedilnik 161c31bc2b ERR: Verify that getenv returned something before using it 2004-04-22 14:11:25 -04:00
Bill Hoffman d59e06595c BUG: fix for 301 CMAKE_LIBRARY_PATH and CMAKE_INCLUDE_PATH env vars now used in FIND_LIBRARY and FIND_PATH in addtion to and before PATH 2004-04-22 13:24:20 -04:00
Andy Cedilnik 00095676cc BUG: Prevent crash when the current working directory cannot be established 2004-04-21 10:33:07 -04:00
Brad King cb90652dca ENH: Added comment for future work to make forwarding executable always statically linked. 2004-04-01 15:28:18 -05:00
Andy Cedilnik 9e8a45d106 ENH: Always include KWSys header files directory 2004-03-15 14:54:26 -05:00
Brad King aeea4895a5 ERR: SIGSEGV == SIGBUS on BeOS. 2004-03-12 14:43:32 -05:00
Bill Hoffman f7ce654912 ENH: change mingw to use libfoo.dll instead of foo.dll since it can link to them 2004-02-13 10:51:44 -05:00
Brad King 41c8677a95 ERR: Fixed use of _findfirst for MSVC 6. 2004-02-12 13:38:18 -05:00
Ken Martin 012a14de69 fix incorrect signature for findfirst 2004-02-12 11:23:41 -05:00
Bill Hoffman 6223d60085 Fix install test fail on mingw 2004-02-12 09:13:31 -05:00
Andy Cedilnik 729e2a427a BUG: Like cygwin, mingw does not produce .lib file for shared libraries, so search for dll when searching for library 2004-02-12 08:58:51 -05:00
Andy Cedilnik ff6bc56616 ENH: On Cygwin shared libraries have only .dll file no .lib file, so when finding library on cygwin, search also for .dll. Also fix SimpleInstall test on cygwin 2004-02-11 08:28:59 -05:00
Brad King d23636d48b BUG: Corrected detection of exceptional exit code. 2004-01-28 10:59:46 -05:00
Brad King e27ad7eb97 ENH: Added exception string to abnormal termination report. 2004-01-28 10:59:22 -05:00
Bill Hoffman dd7f85a9dc ENH: fix for build on cygwin mingw 2004-01-26 13:32:20 -05:00
Brad King 9651c9d996 ERR: Fixed function prototypes with zero arguments to be C-style. 2004-01-22 14:44:44 -05:00
Andy Cedilnik 9cf5bb4bb0 BUG: If working directory does not exists, exit 2004-01-22 11:16:43 -05:00
Brad King 49bd89fe31 BUG: CopyFileIfDifferent should return success if the files did not differ or if the copy succeeded. It should return failure only if the files were different and the copy failed. 2004-01-22 10:30:01 -05:00
Andy Cedilnik d609e037b9 BUG: Fix valgrind error. If working directory is not set do not do chdir 2004-01-21 13:38:09 -05:00
Brad King 9878c9ea34 ERR: Fixed unused argument warning. 2004-01-19 09:30:44 -05:00