1. 27 May, 2015 1 commit
    • Brad King's avatar
      SystemTools: Teach RemoveFile to tolerate missing file · 61e0419f
      Brad King authored
      Some use cases may have a race condition such that the file to be
      removed disappears before we remove it.  Detect when removal fails due
      to the file already missing and tolerate it without failing.
      On Windows this requires using DeleteFileW instead of _wunlink because
      the latter does not seem to always update errno.  Try to delete before
      checking permissions because getting permissions will fail if the file
      is missing.
      Change-Id: If1922a15d742daca6d252c594284800d60cc1fce
  2. 18 May, 2015 1 commit
    • Matt McCormick's avatar
      cmake: Set CMP0056 to NEW · 9a6b7c3f
      Matt McCormick authored
      When Android is compiled with "-static" in CMAKE_EXE_LINKER_FLAGS, only the
      shared version of libc has utimensat.  By setting CMP0056 to NEW,
      CMAKE_EXE_LINKER_FLAGS is passed to the try_compile in KWSYS_PLATFORM_CXX_TEST
      so KWSYS_CXX_HAS_UTIMENSAT gets the correct result.
      Change-Id: Ia5ff7abaafb92e043927b57c5f2858259195235f
  3. 12 May, 2015 1 commit
  4. 05 May, 2015 2 commits
    • Brad King's avatar
      Process: Add option to merge stdout/stderr · 34fceb50
      Brad King authored
      When enabled, ignore all stderr pipe configuration options and
      just give the child a copy of stdout as its stderr.
      Change-Id: I87a64657cc701b706da78f7bfc56ad0071383372
    • Brad King's avatar
      Process: Refactor child pipe creation · 8c8b2273
      Brad King authored
      Consolidate logic to prepare stdin/stdout/stderr in the same way
      before starting any processes.  This will simplify alternative
      approaches to select the child pipes.
      Change-Id: I36175a8cfc2578543103297420908a539ad71a3a
  5. 04 May, 2015 1 commit
  6. 19 Apr, 2015 1 commit
    • Brad King's avatar
      Glob: Add explicit assignment operator to Message member · 4f39791b
      Brad King authored
       Glob.hxx:58:5: warning: definition of implicit copy assignment operator
        for 'Message' is deprecated because it has a user-declared copy
        constructor [-Wdeprecated]
           Message(const Message& msg) :
      Change-Id: Id6d28d9e5b4ed556556a5add10881f1bcd4525b7
  7. 16 Apr, 2015 1 commit
    • Brad King's avatar
      Tell Git to export '.gitattributes' · 1ea01a46
      Brad King authored
      Since we do not package the KWSys source tree directly and always
      merge snapshots of its content into other project subtrees, we
      should carry the .gitattributes file into the other projects to
      that the attributes apply in their source trees too.
      Change-Id: I039b151443486d24ff798fa0c677b62620cec0b7
  8. 10 Apr, 2015 1 commit
  9. 18 Mar, 2015 2 commits
  10. 17 Mar, 2015 1 commit
  11. 10 Mar, 2015 1 commit
  12. 03 Mar, 2015 2 commits
    • Domen Vrankar's avatar
      Glob: Add support for directory listing · 4890f30c
      Domen Vrankar authored
      Glob now supports listing of directories in recursive mode and disabling
      listing of directories in non recursive mode.  In recursive mode when
      directory listing is enabled directory symlinks are also listed.  For
      backward compatibility there is a separate flag for recursive and
      non-recursive globbing mode as this functionality was previously
      Change-Id: I6099c0c568a04caf7c9a36a5d476390371115790
    • Domen Vrankar's avatar
      Glob: Handle symlink cycles in directory paths · 5d6204e9
      Domen Vrankar authored
      Prevent cyclic recursion of type "a/b/c -> a" when glob recurse is used
      with follow symlinks so that each directory symbolic link is traversed
      only once and skipped on revisit.
      Change-Id: I6f52489198d692c3c0b0d94986db0e664d050342
  13. 27 Feb, 2015 1 commit
  14. 25 Feb, 2015 2 commits
    • Domen Vrankar's avatar
      Glob: Remove addition of extra '/' · 1b75ad3d
      Domen Vrankar authored
      When globing non recursive with for example '/a/*/*' the result
      contained '//' instead of a single slash between directories.
      Change-Id: I6adb672cde6e327c8fda6e29ff7d3b8ae5c7cb6b
    • Domen Vrankar's avatar
      Glob: Remove dead code · 7c9a970a
      Domen Vrankar authored
      In RecurseDirectory and ProcessDirectory a "fullname" variable is
      computed but not used.  Remove it altogether.
      Change-Id: I97493f7a34f1a600715c8301ccd6377c3422212f
  15. 24 Feb, 2015 1 commit
  16. 23 Jan, 2015 1 commit
  17. 20 Jan, 2015 2 commits
  18. 09 Jan, 2015 4 commits
    • Ben Boeckel's avatar
      Add missing malloc return value casts · 425fa73e
      Ben Boeckel authored
      Clang 3.5.0 errors out on the implicit void* -> T* cast.
      Change-Id: Ie0b0dd25a32e1a5692900d9f1035a423a056c413
    • Stephen Kelly's avatar
      Workaround SolarisStudio bug with libstdc++. · d30c9b03
      Stephen Kelly authored
      Using iostream and cxxabi.h together causes a compile failure
       .../CC-gcc/include/c++/4.8.2/cxxabi.h", line 131: Error: Only one of a
       set of overloaded functions can be extern "C".
      See https://community.oracle.com/thread/3644901 for details.
      This only happens if the iostream include is before the cxxabi include.
      The available solutions are: re-order the includes in
      SystemInformation.cxx, skip the test for KWSYS_CXX_HAS_CXXABI, or cause
      it to fail by adding the include.  Do the latter for now.
      Change-Id: Ia1a6a6fca12eb9a42f4a4be5252f22fb6e74a318
    • Stephen Kelly's avatar
      SystemTools: Fix build with SunCC/stlport. · af86ac7d
      Stephen Kelly authored
      The <fcntl.h> header needs to be included before <string> is included
      when using stlport. Otherwise:
      "SystemTools.cxx", line 1240: Error: UTIME_OMIT is not defined.
      "SystemTools.cxx", line 1240: Error: UTIME_NOW is not defined.
      "SystemTools.cxx", line 1241: Error: AT_FDCWD is not defined.
      Change-Id: I3441ae3a7007c53ad97dea42ec48fedca8cc010c
    • Stephen Kelly's avatar
      SystemTools: Refactor selection of Windows directory APIs · e4fe1d1a
      Stephen Kelly authored
      Change-Id: I08ee07db55b21ab886658d2ae50a82775180f037
  19. 08 Jan, 2015 1 commit
  20. 23 Dec, 2014 1 commit
  21. 18 Dec, 2014 1 commit
  22. 16 Dec, 2014 1 commit
    • Brad King's avatar
      Directory: Work around PGI problem with Linux Large File Support · cc4046a8
      Brad King authored
      The "/usr/include/dirent.h" header on Linux uses a glibc __REDIRECT
      to map readdir to readdir64, but that is defined only when using
      a GNU-like compiler.  Otherwise it defines readdir to readdir64
      via the C preprocessor, but forgets to define dirent to dirent64.
      The fix in commit 2f3c4192 (add support for the Portland Compiler to
      CMake, 2007-09-17) does not seem to work on all machines.  Instead try
      to map dirent to dirent64 whenever the preprocessor defines readdir to
      readdir64 with PGI and glibc.
      Change-Id: I6d4fc4cb48e5481f6ac8ed3928c0eb6c6ef0564d
  23. 15 Dec, 2014 1 commit
  24. 12 Dec, 2014 2 commits
  25. 10 Dec, 2014 1 commit
    • Jean-Christophe Fillion-Robin's avatar
      SystemInformation: Improve Get(Available/Total)VirtualMemory for windows · c38ba638
      Jean-Christophe Fillion-Robin authored
      Currently kwsys can only return ullTotalVirtual, which is not
      a very useful value, as memory allocation will fail if we exhaust
      the ullTotalPageFile limit.
      For example, on a windows workstation, GlobalMemoryStatusEx
      ullTotalVirtual = 128TB
      ullTotalPageFile = 16GB
      This commit updates the function Get(Available/Total)VirtualMemory to
      use page file size.
      Change-Id: I461e5f0a975432c31fc7370efe8467c61fea1bb3
  26. 14 Nov, 2014 1 commit
    • Brad King's avatar
      SharedForward: Hard-code the ldpath buffer size to below VS 14 limit · dec9c30b
      Brad King authored
      Visual Studio 14 (2015) complains if a static character array is
      declared with more than 65535 elements.  This limit should be large
      enough for SharedForward clients, so just hard-code that instead of
      trying to compute a limit.
      Change-Id: Ib24195b0d0972bdabaf5a18b93a1a9b8c43dc773
  27. 12 Nov, 2014 1 commit
  28. 11 Nov, 2014 1 commit
  29. 31 Oct, 2014 1 commit
  30. 16 Oct, 2014 2 commits