1. 07 May, 2014 17 commits
  2. 12 Mar, 2014 1 commit
  3. 28 Feb, 2014 1 commit
  4. 19 Dec, 2013 1 commit
  5. 21 Nov, 2013 1 commit
    • Brad King's avatar
      SystemTools: Avoid unused function warnings · 1010d0e3
      Brad King authored
      The WindowsFileExists function was originally created to avoid
      duplication by the Cygwin and Windows implementations of FileExists.
      Now that we use the ANSI API on Cygwin and the Wide API on Windows, one
      of the two overloads is always left unused.  Drop the helper functions
      and inline the implementations at their respective (single) call sites.
      Change-Id: I4d25f98b8b11f0fdce2f360f5f425e0b159b22e5
  6. 31 Oct, 2013 1 commit
  7. 08 Oct, 2013 1 commit
    • Adrien Destugues's avatar
      SystemTools: Remove outdated preprocessor checks for Haiku · 2b303bd7
      Adrien Destugues authored and Brad King's avatar Brad King committed
      Haiku does not define __BEOS__ anymore, so there is no need to guard
      these BeOS specific workaround for Haiku.  The workarounds themselves
      are not needed for Haiku as it has much better POSIX compatibility than
      BeOS did.
      Change-Id: I91a1598df764abe0febc9c3828e8bfd47e089cee
  8. 06 Aug, 2013 2 commits
  9. 24 Jul, 2013 1 commit
  10. 10 Jul, 2013 1 commit
    • Brad King's avatar
      SystemTools: Implement IsSubDirectory without loop · beef6819
      Brad King authored
      The loop condition "while ( path.size() > dir.size() )" assumes that
      eventually path will be no longer than dir but "c:/" will always be
      longer than "/" and loop forever.  Simplify the implementation to avoid
      the loop and the assumption.
      Change-Id: I5613c7554ebd05b12cfe4882ac3bec4ecaa6e0ae
      CMake-Issue: 14283
  11. 24 Jun, 2013 1 commit
    • Cory Quammen's avatar
      SystemTools: MakeDirectory() reports failure if path is file · 3d1d4e7c
      Cory Quammen authored
      If the path passed to MakeDirectory() pointed to an existing file (not
      directory), it would return true indicating that the directory was
      successfully created even though creation of the directory failed.
      Now it returns true only when the existing path is a directory and
      returns false otherwise.
      Change-Id: Ieb3e6352d63868c824df35f19187a8d396f75296
  12. 03 Jun, 2013 1 commit
  13. 31 May, 2013 1 commit
    • Brad King's avatar
      SystemTools: Touch with better than 1s resolution if possible · dccf7725
      Brad King authored
      On Windows use CreateFile (with FILE_FLAG_BACKUP_SEMANTICS so it works
      for directories), GetSystemTimeAsFileTime, and SetFileTime to touch.  On
      other platforms prefer utimensat, then utimes, then utime.
      Change-Id: Ie85fe3766661803e66f39975a147cd6f7320ea59
      CMake-Issue: 14020
  14. 28 May, 2013 1 commit
    • Brad King's avatar
      SystemTools: Fix FileIsDirectory with long paths · 9fd64779
      Brad King authored
      Allocate a buffer large enough to hold the input path when removing a
      trailing slash.  Use a local stack buffer when it is large enough and
      fall back to heap allocation otherwise.
      Change-Id: Ibc4b4c96c7b0fafae9f4b5cd7ea894bdd605a098
  15. 06 May, 2013 1 commit
  16. 25 Apr, 2013 1 commit
  17. 05 Feb, 2013 1 commit
    • Brad King's avatar
      SystemTools: Do not abort with no current directory · 5c34ed2e
      Brad King authored
      Remove the abort() from the internal Getcwd implementation.  All callers
      check the return value already.  Fix one caller's "else" behavior to
      avoid crashing.
      Change-Id: I3450c4942ffa108b2313877c9472820f6b465baa
  18. 31 Jan, 2013 1 commit
  19. 07 Jan, 2013 1 commit
    • Brad King's avatar
      SystemTools: Fix MakeDirectory after recent cleanup · 34177aec
      Brad King authored
      The parent commit removed a useless if condition but forgot to leave
      behind the behavior from either path.  Add the missing assignment from
      the original else block.
      Change-Id: I810cce08eb295ff2ba8c2eeff7631178b49c6725
  20. 06 Jan, 2013 1 commit
  21. 02 Jan, 2013 2 commits
  22. 29 Nov, 2012 1 commit