1. 12 Dec, 2014 2 commits
  2. 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
  3. 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
  4. 12 Nov, 2014 1 commit
  5. 11 Nov, 2014 1 commit
  6. 31 Oct, 2014 1 commit
  7. 16 Oct, 2014 10 commits
  8. 14 Oct, 2014 1 commit
    • Ben Boeckel's avatar
      Avoid if() quoted auto-dereference · 9bf03363
      Ben Boeckel authored
      When testing CMAKE_C_COMPILER_ID values, do not explicitly dereference
      or quote the variable.  We want if() to auto-dereference the variable
      and not its value.  While at it, use STREQUAL instead of MATCHES.
      Change-Id: I7098fb6474500605b0fe78d764dd2d8afe385f50
  9. 02 Oct, 2014 1 commit
  10. 25 Sep, 2014 1 commit
    • Brad King's avatar
      Suppress deprecation warnings for GetVersionEx · 29ffaf43
      Brad King authored
      Visual Studio 12 (2013) deprecated GetVersionEx:
        warning C4996: 'GetVersionExW': was declared deprecated
      in favor of either "versionhelpers.h" or VerifyVersionInfo, neither of
      which exist in some of the older compilers we support.  Rather than
      try to port conditionally to VerifyVersionInfo, simply suppress the
      warning for now.
      Change-Id: I85a6547c7dc25a104d4fe9b4034efdc5cea215ef
  11. 19 Sep, 2014 1 commit
    • Sean McBride's avatar
      SystemInformation: Fix clang -Wtautological-pointer-compare warning · 6aa1f800
      Sean McBride authored and Brad King's avatar Brad King committed
      warning: comparison of array 'unameInfo.release' not equal to a null
               pointer is always true [-Wtautological-pointer-compare]
        if( unameInfo.release!=0 && strlen(unameInfo.release)>=3 )
            ~~~~~~~~~~^~~~~~~  ~
      Indeed an array declared as 'char foo[x]' can never be NULL.
      Removed check against null.
      Change-Id: I0352ad50049d926e78b9ecc796493e898b1bfdb7
  12. 08 Sep, 2014 2 commits
  13. 06 Sep, 2014 1 commit
  14. 11 Aug, 2014 1 commit
  15. 07 Aug, 2014 2 commits
  16. 04 Aug, 2014 1 commit
  17. 30 Jul, 2014 4 commits
  18. 18 Jul, 2014 1 commit
  19. 17 Jul, 2014 1 commit
    • Bob E's avatar
      SystemInformation: No SA_RESTART on QNX · 697b1401
      Bob E authored and Brad King's avatar Brad King committed
      QNX not support SA_RESTART signal:
       /* #define SA_RESTART 0x0040 (not supported yet) */
      Use it in SystemInformation only if it is defined.
      Change-Id: I4a00179fe3f288bb524e002ba37094c73a8a8b08
  20. 10 Jul, 2014 1 commit
  21. 02 Jul, 2014 1 commit
  22. 01 Jul, 2014 1 commit
    • Chuck Atkins's avatar
      SystemTools: Use extended paths on Windows for > 256 length · 8f991ab0
      Chuck Atkins authored and Brad King's avatar Brad King committed
      Many Windows filesystem calls (but not all) have a MAX_PATH limitation
      of 260 characters (drive letter, colon, backslash, 256 char path, null).
      This is especially problematic for interacting with large highly nested
      build trees (the boost C++ libraries, for example). This limitation can
      be overcome by using extended length paths instead.  By converting
      local filesystem and network paths to extended length paths before
      passing them to the underlying APIs the maximum path length can be as
      large as 32767 characters. The new ConvertToWindowsExtendedPath
      function will convert "E:/a.txt" to "\\?\E:\a.txt" and "\\Foo\a.txt" to
      See also the MSDN article on "Naming Files, Paths, and Namespaces":
      This also adds a hidden CMake option, KWSYS_TEST_SYSTEMTOOLS_LONG_PATHS,
      which, when set to TRUE, will enable the extended length path tests.
      This is off by default since if something does go awry, the resulting
      leftovers could be difficult to delete manually.
      Change-Id: Ib7ac1f657241ed389169678d1c078c0d836f1c7b
  23. 03 Jun, 2014 1 commit
    • Chuck Atkins's avatar
      SystemTools: Refactor test file and directory locations · 97817ce7
      Chuck Atkins authored
      The full path for files used by SystemTools tests were preconfigured
      in a generated header file by CMake variables.  This begins to get
      unwieldy and clutters the CMake files once more variables and files
      get added.  In preperation for more file and directory tests being
      added, the preconfigured variables are now just the source and binary
      directories for which all tests can base themselves off of.
      Change-Id: Iae9e11592a3c040ce2e9cc90dbd1ccedfc3129ea
  24. 02 Jun, 2014 1 commit
    • Chuck Atkins's avatar
      Directory: Make sure the /* suffix uses correct slashes · e4bba930
      Chuck Atkins authored
      When applying the /* wildcard suffix to a directory, make sure the
      direction of the slash getting appended is consistent with the other
      slashes in the path, i.e. /foo/bar and /foo/bar/ become /foo/bar/* and
      similarly \foo\bar and \foo\bar\ become \foo\bar\*.
      Change-Id: I44fcf7e97be65923a37aaed615ba5f4012756893
  25. 19 May, 2014 1 commit
    • Brad King's avatar
      Process: Workaround child kill trouble on Cygwin · c282e64f
      Brad King authored
      When we kill a child we send SIGSTOP first so that we can traverse its
      child processes recursively.  On unwinding the recursion we then send
      SIGKILL.  Current Cygwin has trouble when both signals are sent in quick
      succession by the parent process.  Add a usleep(1) after sending the
      first signal to give up our time slice and give Cygwin a chance to
      process the first signal before sending the second.
      Change-Id: I75ab55cf969a0ea6104a9798c761c0ba1fcd1dbc