Commit Graph

346 Commits

Author SHA1 Message Date
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
Brad King 5ba4fd9e8a ERR: Must include Dart module after PROJECT command. 2004-01-19 09:30:09 -05:00
Brad King f2714ab435 ENH: Added Dart testing configuration. 2004-01-17 12:47:11 -05:00
Brad King 740505bb63 ENH: Added a recursive process execution test. 2004-01-17 12:46:56 -05:00
Bill Hoffman a9beaa40e8 BUG: try to get access to work on borland 2004-01-12 16:16:46 -05:00
Bill Hoffman e5bcc9244b ENH: use access over stat for performance 2004-01-12 13:53:46 -05:00
Andy Cedilnik b4bf41434c ENH: Only look for executable until found 2004-01-12 13:30:57 -05:00
Brad King e365b64ff6 ENH: Removing empty source file now that makefile dependencies should have updated. 2004-01-06 16:56:13 -05:00
Brad King fca398f961 ERR: Removed use of FILE command and using WRITE_FILE instead. We would still like CMake 1.6 to be able to build CMake CVS, and kwsys is used. 2004-01-05 11:02:38 -05:00
Brad King c14915697c ENH: Renamed KWSYS_IOS_HAVE_* macros to KWSYS_IOS_USE_* to be more readable in the C++ sources. 2003-12-30 17:15:51 -05:00
Brad King 1c8f885f9d ENH: Added GetExceptionString method to provide an error description when GetState returns Exception. 2003-12-30 16:23:16 -05:00
Brad King f48941f261 BUG: CollapseFullPath was calling SplitProgramPath before changing the working directory to in_base. 2003-12-30 13:38:32 -05:00
Brad King 242f4f2fc8 ERR: Removed ftime ambiguity created by poor C++ standard headers provided by Borland 5.5. 2003-12-29 13:14:26 -05:00
Ken Moreland 06bf73f9c3 Fixed a problem where ifstream was not the same as kwsys_ios::ifstream on
MSVC 6.0.
2003-12-24 10:07:42 -05:00
Brad King 032d1d8652 ENH: Merging changes from KWSys-IOS-bp to KWSys-IOS-b2t-1-mp to main tree. This introduces separate kwsys_ios and kwsys_stl macros needed to support all platforms. 2003-12-23 11:03:33 -05:00
Brad King 92bcdb8d66 ERR: std -> kwsys_std. 2003-12-17 08:30:07 -05:00
Brad King 802601b606 ENH: Added SetPipeShared method to allow stdout and stderr pipes to be shared with the parent process. 2003-12-16 17:20:01 -05:00
Brad King 8ca149d34f ENH: Added GetEnv method. 2003-12-16 15:55:18 -05:00
Brad King 40ea4b6761 ENH: Updated copyright. 2003-12-16 15:38:36 -05:00
Brad King e70aa1b3a2 ERR: SystemTools now depends on Directory. 2003-12-16 15:37:24 -05:00
Ken Martin cd5ec5ee1b is there any chance thiswill work on all platforms hmmm added removeAdirectory 2003-12-16 14:26:19 -05:00
Brad King ce8a34907a ENH: Updated copyright. 2003-12-15 16:30:46 -05:00
Brad King c9e9e8d121 STYLE: Fixed typo on comment. 2003-12-14 13:48:18 -05:00
Brad King 5dcbef7dfe ENH: Using CreateFile with FILE_FLAG_DELETE_ON_CLOSE to automatically delete the Win9x forwarding executable even if the parent process crashes. 2003-12-14 13:47:39 -05:00
Brad King 8da78710bc ENH: Added KWSYS_NAMESPACE_STRING macro. 2003-12-14 13:44:20 -05:00
Brad King 31d72f961b BUG: Fixed dllimport. 2003-12-14 13:03:44 -05:00
Brad King d3f1410be3 ERR: Added include of sys/stat.h for open functions mode bits. 2003-12-13 14:19:45 -05:00
Brad King 1f40a4205b ENH: Added SetPipeFile method to allow the process pipeline stdin, stdout, and stderr to be redirected from/to files. 2003-12-13 14:13:54 -05:00
Brad King dc96992e56 ENH: Code is now robust to New method returning NULL. 2003-12-13 10:36:22 -05:00
Brad King 4d68d005bc BUG: File comparison on windows must test the volume serial number as well as the file index. 2003-12-09 11:44:53 -05:00
Brad King 380ee8ca36 STYLE: Removed trailing whitespace. 2003-12-08 11:35:34 -05:00
Brad King b777b8656e ENH: Cleaned up pipe numbering. 2003-12-07 14:09:58 -05:00
Brad King bcfd5ce161 ERR: Need to include Configure.hxx to get kwsys_std definition. 2003-12-05 14:51:27 -05:00
Brad King ed853b5d70 ENH: Removed pipe selection argument from WaitForData method in kwsysProcess. This greatly simplifies its use. 2003-12-05 11:53:17 -05:00
Brad King 97b469537b STYLE: Removed trailing whitespace. 2003-12-05 11:37:28 -05:00
Brad King 9ce4e23715 BUG: Process startup-info struct dwFlags were being set incorrectly due to a change in statement order. 2003-12-05 11:19:43 -05:00