Commit Graph

2616 Commits

Author SHA1 Message Date
Andy Cedilnik 1e04844de9 COMP: Attempt to fix problem with building on SGI 2005-04-19 18:26:40 -04:00
Brad King c98bd6249a BUG: When killing a child all the pipe read ends should be closed. This will allow a child that is blocking while waiting to write to the pipe to wake up and receive the kill signal properly on cygwin. 2005-04-19 11:52:25 -04:00
Brad King f362d6e2ef BUG: Expanded difference in timeouts between tests 4 and 5 so that 5 does not timeout while waiting for 4 to timeout. This should fix the intermittent failure of test 5 on cygwin. ENH: When a mismatch is reported it now reports what it was as well as what it should have been. 2005-04-19 10:52:32 -04:00
Brad King eebd1fb2dc BUG: For some reason the non-template allocator test compiles on VS6 even though its allocator is a template. Adding ::size_type to be sure it accesses a member of the allocator. 2005-04-15 18:57:15 -04:00
Brad King c290726b8f BUG: Fix iterator traits test to use a real iterator instead of int*. 2005-04-15 18:49:21 -04:00
Brad King 78d1491173 BUG: Cannot use Win32 implementation for cygwin processes because then cygwin paths to executables like /usr/bin/ls are not found. 2005-04-15 16:10:26 -04:00
Brad King bddade9696 COMP: Added KWSYS_CXX_HAS_CSTDDEF try-compile to KWSys to provide kwsys/cstddef header (to get size_t for hash_fun.hxx). 2005-04-15 16:00:44 -04:00
Brad King cc996274f8 COMP: Replaced kwsys_stl with @KWSYS_NAMESPACE@_stl to properly use the configured namespace. 2005-04-15 15:30:28 -04:00
Sebastien Barre ecc142ee33 ENH: move convenience method to get OS name and version from KWApp to KWSys. 2005-04-15 15:18:51 -04:00
Brad King 66095be685 BUG: Added missing variable initialization that was accidentally removed on the previsous commit. 2005-04-15 13:56:23 -04:00
Brad King 370a39ce4b ENH: Changing kwsysProcess implementation on Cygwin to use the Win32 implementation instead of the UNIX implementation. This makes dealing with misbehaving children work better. The KWSys Win32 process implementaion is more robust than the Cygwin implementation (partly because it doesn't have to exactly reproduce the POSIX api). 2005-04-15 13:35:26 -04:00
Brad King 6c68c81475 ENH: Added KWSys try-compiles KWSYS_STL_HAS_ITERATOR_TRAITS, KWSYS_STL_HAS_ITERATOR_CATEGORY, KWSYS_STL_HAS___ITERATOR_CATEGORY, and KWSYS_STL_HAS_ALLOCATOR_NONTEMPLATE to get the hash table to compile on old HP and Sun compilers. 2005-04-15 09:54:03 -04:00
Brad King df994e53fe COMP: Replacing _Select1st with a specialized hash_select1st that avoids requiring the stl pair to have first_type defined. The old HP STL does not define first_type and second_type in its pair. 2005-04-15 09:05:05 -04:00
Brad King 7f706ecc98 ENH: Added KWSYS_CXX_HAS_ARGUMENT_DEPENDENT_LOOKUP try-compile to KWSys. Needed to optionally bring hash table comparison operators into the global namespace when argument dependent lookup is not supported. 2005-04-15 08:59:30 -04:00
Brad King d3a69766df COMP: Removed extra variable initializations to avoid Borland warnings. 2005-04-15 08:25:53 -04:00
Brad King 4fe07aa481 COMP: Remove friend templates and always use template friends (possibly with <>). Needed to work-around Sun CC bug. 2005-04-13 23:04:23 -04:00
Brad King caac6c78b4 COMP: Disable MSVC debug symbol truncation warning. 2005-04-13 23:03:26 -04:00
Brad King 21d54eea8d STYLE: Renaming kwsys-hash test to kwsys-testhash for consistency with other tests. 2005-04-13 16:58:30 -04:00
Brad King 79c0487de9 COMP: Removing return value from test6. It is an infinite loop, so the return causes warnings. It will never return anyway. 2005-04-13 16:55:47 -04:00
Brad King 7297496a34 ENH: Removing old test1.c Process execution example. It is fully replaced by testProcess. 2005-04-13 16:47:19 -04:00
Brad King caf54b2093 COMP: Adding work-around for CMake dependency scanning limitation. Any configured header included by KWSYS_HEADER() in a .c or .cxx file in kwsys itself must use this hack to get dependencies. 2005-04-13 16:46:09 -04:00
Brad King 5e02b5ec96 BUG: Only do ~ test if HOME variable is defined. 2005-04-13 16:05:01 -04:00
Brad King 3a7920d461 BUG: Avoid error diagnostic popups on windows for test that crashes on purpose. 2005-04-13 15:57:22 -04:00
Brad King be1084b524 COMP: Added KWSYS_STL_HAS_ALLOCATOR_MAX_SIZE_ARGUMENT check for non-standard argument to stl allocator<>::max_size method. Needed for kwsys hashtable to compile on Sun CC. 2005-04-13 15:39:03 -04:00
Brad King 551b28d501 BUG: allocator<>::rebind<> test should use kwsys_stl::allocator, not std::allocator. 2005-04-13 15:29:22 -04:00
Brad King 5bebcea6e7 COMP: Fix for Sun CC stl allocator signature of allocate method. 2005-04-13 15:22:32 -04:00
Brad King 81f7bc9cdb BUG: When constructing the bucket vector type the allocator given must have been rebound to _Node* already because GCC 3.4's vector type does not rebind it. 2005-04-13 15:04:39 -04:00
Brad King bf70e83397 BUG: Fix GetFilenameName to not use uninitialized search position in win32 version. 2005-04-13 14:37:30 -04:00
Brad King 772b121a14 BUG: Fixed member template test to not produce a test program that crashes when it runs. 2005-04-13 14:13:05 -04:00
Andy Cedilnik bddcf4ec97 ENH: Speedup improvements 2005-04-13 13:59:48 -04:00
Andy Cedilnik 4a390c174c ENH: Do kwsys testing as part of cmake testing, command line arguments are not experimental and add simple test for systemtools 2005-04-13 13:57:24 -04:00
Bill Hoffman 3778d89cb9 BUG: fix insert for 64 bit 2005-04-13 09:54:37 -04:00
Brad King 743ab3a05f ENH: Adding SGI hash_map and hash_set implementation ported from STL to KWSys. This also adds try-compiles for KWSYS_STL_HAS_ALLOCATOR_REBIND, KWSYS_CXX_HAS_FULL_SPECIALIZATION, KWSYS_CXX_HAS_MEMBER_TEMPLATES, and KWSYS_CXX_HAS_NULL_TEMPLATE_ARGS. 2005-04-13 08:08:54 -04:00
Brad King 1713c3fd19 ENH: Added __HPACC_USING_MULTIPLIES_IN_FUNCTIONAL fix from vtkstd. 2005-04-13 08:05:56 -04:00
Brad King 85f82c2092 COMP: Fixed ambiguous call to insert method of string. 2005-04-12 13:33:58 -04:00
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
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
Brad King ddd3190387 ERR: Added missing static storage class specifier for kwsysProcessCreate. 2003-12-04 13:56:00 -05:00
Brad King cee49e74cf ERR: Some platforms define stdin, stdout, and stderr as macros. Renaming these symbols to StdIn, StdOut, and StdErr. 2003-12-03 13:37:21 -05:00
Brad King ad8bc4b1a4 ENH: Merged changes from KWSys-MultiProcess-bp to KWSys-MultiProcess-b2t-1-mp to main tree. This introduces support for process pipelines. 2003-12-03 09:20:05 -05:00
Brad King 9ec524def6 STYLE: Removed trailing whitespace. 2003-11-28 09:48:42 -05:00
Brad King 37bbb27bfa ERR: Removed extra variable assignments. 2003-11-04 09:00:18 -05:00
Brad King 8f8cc16ea3 BUG: Removed CloseHandle in case of error in DuplicateHandle. According to documentation, DuplicateHandle will close the source handle regardless of error condition. 2003-11-04 08:56:12 -05:00
Bill Hoffman 96e8cd82c7 ENH: put the system path after the paths specified on to the FIND command 2003-10-09 15:52:29 -04:00
Bill Hoffman e15ebb6255 ENH: remove /tmp_mnt in collapse full path 2003-09-18 11:05:01 -04:00
Bill Hoffman a413160fec ENH: add the unix makefile generator as an option from the windows GUI, this builds with mingw, cygwin, and combinations of make cl, bcc32 2003-08-21 16:22:23 -04:00
Bill Hoffman 3935711e01 ENH: remove warning and unneeded cast 2003-08-17 12:24:06 -04:00
Brad King beda09a96b ENH: Made error message consistent between win9x and non-win9x version of error reporting. 2003-08-13 18:08:07 -04:00
Brad King ef603d12f9 ENH: Treating SIGBUS as a fault by default. 2003-08-13 14:21:39 -04:00
Andy Cedilnik 4bad15e4b2 ENH: Cast into apropriate type to remove warning 2003-08-07 15:39:07 -04:00
Brad King 7b9663e5e8 Fixed indentation 2003-08-06 13:41:34 -04:00
Brad King 07865fd113 BUG: Need to provide stdin to child processes. 2003-08-06 09:27:56 -04:00
Brad King 59d886d0f4 ENH: Added show/hide window support. 2003-08-05 15:10:33 -04:00
Brad King 27289e3267 ENH: Added SetOption/GetOption methods for platform-specific options. 2003-08-05 14:27:47 -04:00
Brad King 878b5792b9 BUG: Can't close stdin. 2003-08-05 13:53:30 -04:00
Brad King e99e9baca4 BUG: Added missing zero-initialization of struct sigaction. 2003-08-05 11:34:39 -04:00
Brad King 5ffb75bc6c BUG: GetErrorString should return ErrorMessage buffer, not the pipe buffer. 2003-08-05 09:07:54 -04:00
Brad King dda94a9693 ERR: Generated source files need access to kwsysPrivate.h. Just copy it to the build tree. 2003-07-10 14:46:48 -04:00
Brad King d715fba1cb ENH: Added use of KWSYS_HEADER macro in c and cxx files to include kwsys headers through their configured namespace. 2003-07-10 14:32:30 -04:00
Brad King 36880845b6 ERR: Using strncpy instead of snprintf for portability. 2003-07-09 16:18:14 -04:00
Andy Cedilnik 6566ba20ac ENH: Fix example 2003-07-08 09:21:45 -04:00
Brad King b85f000e26 ERR: Removed useless set. 2003-07-07 22:41:46 -04:00
Andy Cedilnik 197368d9e7 ENH: Add optional argument to GetLineFromStream which can let the caller know whether there was a new line character at the end of the line that was just read 2003-07-07 17:45:51 -04:00
Brad King 78edd51671 ENH: Made call to FormatMessage more robust. 2003-07-07 09:38:14 -04:00
Brad King b5fec4a3c8 ENH: Implemented SetWorkingDirectory method. 2003-07-07 09:12:34 -04:00
Brad King 2b8bfb3b5d ENH: Implemented SetWorkingDirectory method on Windows. 2003-07-07 09:10:08 -04:00
Andy Cedilnik 125b795637 ENH: Start working on Working Directory support 2003-07-07 08:36:40 -04:00
Brad King 179abe7ffe ENH: Using GetTempPath instead of TEMP environment variable to get a location to write the Win9x forwarding executable. 2003-07-06 20:40:51 -04:00
Brad King 33566642a0 BUG: Argument parsers do not always remove double quotes from around an argument that has no spaces. 2003-07-03 18:33:53 -04:00
Brad King edcaaabe99 BUG: Install target for standard header wrappers must point at the std subdirectory in the installation. 2003-07-03 07:58:07 -04:00
Brad King f24a0f17ea ERR: Added cast to remove warning. We know the length of the string will not be beyond 2^31. 2003-07-02 08:35:30 -04:00
Brad King cee10ceebd ERR: Added casts to remove type conversion warnings. Pointer differences can be 64-bit, but unsigned long is 32-bit on many platforms. We know we are not traversing more data than can be handled by an unsigned long, though, because the length argument is an unsigned long. 2003-07-01 13:32:28 -04:00
Brad King 6b1770932e ERR: Should use %p to pass HANDLE values on a command line, not %d. 2003-07-01 13:27:42 -04:00
Brad King 84b6583fca ERR: Removed unreachable code. 2003-07-01 13:27:22 -04:00
Brad King 83aa7b6b0b ERR: Reduced requirements on preprocessor for export macro due to limitations of Mac preprocessor. The preprocessor can be fixed by using -no-cpp-precomp, but we don't want to require that option for every source file that includes our headers. 2003-07-01 11:40:34 -04:00
Brad King 11de69901e ERR: Added explicit cast from size_t to int. We know that the data will not be out of range. 2003-07-01 08:54:42 -04:00
Andy Cedilnik 1f5defbdcf ERR: Remove warnings on Windows 2003-06-30 10:44:35 -04:00
Brad King ef76ed76f8 ENH: Added DLL support. 2003-06-30 10:30:38 -04:00
Brad King 6eb6225e2a Removing old file. 2003-06-30 10:07:11 -04:00
Brad King d24b9feaf3 ENH: Updated comments for doxygen. 2003-06-30 08:49:09 -04:00
Brad King f590483a0b BUG: Should define KWSYS_IN_BASE64_C, not KWSYS_IN_PROCESS_C. 2003-06-30 08:48:53 -04:00
Brad King a519a99114 ENH: Using FOREACH to shorten enabling of C components. 2003-06-30 08:48:31 -04:00
Andy Cedilnik 0f1af706b5 ENH: Initial import of Base64 2003-06-29 21:42:48 -04:00
Brad King 7456fc360e ENH: Updated documentation to describe enabling of classes. 2003-06-26 13:39:35 -04:00
Brad King a778cd0f3d ERR: Fixed use of non-constant initializer. 2003-06-25 09:32:38 -04:00
Brad King 915972ff44 ERR: Fixed conversion warning. 2003-06-25 08:29:44 -04:00
Bill Lorensen 78ecb7f33f ERR: portability. 2003-06-24 21:37:02 -04:00
Ken Martin 7f34d64b0a compiler fix 2003-06-24 16:35:59 -04:00
Ken Martin e315bff47b performance improvements 2003-06-24 15:23:34 -04:00
Brad King 51eb9596bc ERR: std->kwsys_std. 2003-06-24 09:02:46 -04:00
Brad King b2368399d9 ERR: Fixed documentation to read RegularExpression instead of cmRegularExpression. 2003-06-23 14:05:23 -04:00
Brad King 26d638c5d5 ENH: Removed cmake-specific functions. 2003-06-23 08:56:22 -04:00
Brad King be1fd8bfb5 BUG: Need include regular expression to match all files. 2003-06-23 08:56:03 -04:00
Brad King 653cb84f66 ENH: Changed configuration of header directory to specify it without the namespace. 2003-06-20 14:10:28 -04:00
Brad King c21ad62987 ENH: Added full configuration of namespace even for Configure.hxx macro definitions. 2003-06-19 18:57:11 -04:00
Brad King f72483c66a Tool to dump macros for redefining C header namespaces. 2003-06-18 17:28:22 -04:00
Brad King 322f906638 ENH: Added test for Process implementation. 2003-06-18 17:27:36 -04:00
Brad King 30f4c011b0 BUG: Must return Exception status correctly. 2003-06-18 17:27:10 -04:00
Brad King 5b6920ed16 Removed Exception_Abort because there is no windows version. Also made ExitValue consistent with windows when a signal kills the process. 2003-06-18 17:19:44 -04:00
Brad King f5bbacaa5c Removed Exception_Abort because there is no windows version. Also removed stray typedef keywords. 2003-06-18 17:19:16 -04:00
Brad King 7e80f2f874 ENH: Added documentation to interface. Finished process exit code interpretation implementation prototype. 2003-06-18 17:06:21 -04:00
Brad King 751509cf10 ERR: Added error check for malloc of process control structure. 2003-06-12 16:18:07 -04:00
Brad King ef5214c6c5 ERR: Using GetCurrentProcessId instead of _getpid so we don't need to include the system process.h header. Also creating pipe threads with 1K stacks to save memory. 2003-06-12 15:58:30 -04:00
Brad King f8d19a24a5 ENH: EXECUTABLE_OUTPUT_PATH is now always set to get around cmake 1.6.7 dependency problems. Moved default header directory inside the build tree instead of up one level. User projects can now set the header directory. 2003-06-11 10:21:31 -04:00
Brad King 6effa1c7b0 ERR: Added custom command that takes advantage of new syntax. 2003-06-11 09:45:07 -04:00
Brad King bd2590ddb5 ERR: Removed unused variables. 2003-06-11 09:44:48 -04:00
Brad King 9c1afa85e9 ERR: Added work-around for cmake 1.6.7 bug in borland makefile generator. 2003-06-10 17:39:44 -04:00
Brad King dc7f5c426f BUG: Need to add ANSI C flags for some platforms. 2003-06-10 16:56:13 -04:00
Brad King 1e77222b04 ERR: Added static specifier to static function definitions to quiet warnings on HP compiler. 2003-06-10 16:55:50 -04:00
Brad King 68a9683d0d BUG: Don't show a console application's window. 2003-06-10 16:15:16 -04:00
Brad King 6e23bcb50f ENH: Added use of process execution. 2003-06-10 15:50:45 -04:00
Brad King 96ccaed54d ENH: Added Process execution implementation. 2003-06-10 15:46:31 -04:00
Brad King 89cf5d538c ENH: Moved disabling of warnings to after kwsys includes. 2003-06-10 15:45:25 -04:00
Brad King c447874091 ENH: Disabled warning 4786. 2003-06-10 15:44:51 -04:00
Brad King 128e63aaf7 ERR: Removed use of std::string != operator due to bug in SGI compiler's library. 2003-05-13 09:50:43 -04:00
Brad King 10c9e5b991 ERR: Test for ansi streams may need to use iosfwd for test because some compilers provide an iostream header that is old streams. 2003-05-13 09:42:52 -04:00
Brad King 0c641ebc32 ERR: Added forward declarations of system functions for como compiler. 2003-05-13 08:38:49 -04:00
Brad King 3651096aad ENH: Added KWSYS_FORCE_OLD_STREAMS option to force use of non-ansi stream headers even if they are available. 2003-05-12 13:43:03 -04:00
Brad King a63e6b5af3 ENH: Removed old (unused) StandardIncludes header. 2003-05-12 13:33:21 -04:00
Brad King 249d29030e ERR: Need to move forward declarations of non-ansi streams into std namespace when it is available. 2003-05-12 13:27:00 -04:00
Brad King b910480e32 ENH: Added wrappers around the std stream headers to make them look like ansi streams on all platforms. 2003-05-12 13:15:49 -04:00
Brad King 1d719af47b BUG: Need to invert test result for ansi string stream. 2003-05-08 16:48:13 -04:00
Brad King 43419192cb ENH: Reduced header dependencies and cleaned up inclusion of standard headers. 2003-05-08 14:46:23 -04:00
Brad King 332f402191 ENH: Setup for testing as a stand-alone project. 2003-05-08 14:17:26 -04:00
Julien Jomier d0374eccad FIX: warnings, disabling 4786 2003-04-23 17:24:49 -04:00
Kent Williams 0870efbe46 took out an orphan endif 2003-04-11 18:05:57 -04:00
Kent Williams ac440aa321 remove redundant function and eliminate need for strcasecmp 2003-04-11 16:22:57 -04:00
Brad King 5e04f6cbb4 ENH: Added documentation for ITK. 2003-04-11 13:36:16 -04:00
Bill Lorensen a4f49798c4 ERR: Borland fix for stricmp. ERR: removed itk dependencies. 2003-04-11 07:27:32 -04:00
Kent Williams 756653cbb8 Removed platform-specific functions from Code/IO/itkIOCommon, fixed code to use kwsys/SystemTools 2003-04-10 13:41:15 -04:00
Brad King 55e7d082e9 ERR: Removed unused parameter and truncated debug symbol warnings. 2003-04-10 09:03:46 -04:00
Brad King 52141fb615 ERR: Fixed typo. cmRegularExpression -> RegularExpression. 2003-04-08 13:14:29 -04:00
Brad King 7dff3a7f69 ENH: Added kwsys library for platform-independent system tools. 2003-04-08 13:10:44 -04:00