- Nov 01, 2017
-
-
9e0b4d1a SystemTools: set default MakeDirectory permissions mode Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !63
-
90886a99 Process: Fix tests under ubsan 7a4cca11 Process: Refactor test compile flag addition Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !64
-
- Oct 31, 2017
-
-
Brad King authored
UBsan causes our test crash to abort instead. Switch the test to explicitly abort when sanitizers are in use.
-
Brad King authored
-
Domen Vrankar authored
MakeDirectory can create an entire directory structure so it's convenient that we can set the default directory permissions for directories that did not exist beforehand.
-
- Oct 17, 2017
-
-
b4507c9c Remove dead code from Configure.h.in Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !62
-
- Oct 16, 2017
-
-
Remove code that gives the preprocessor trouble when `_FILE_OFFSET_BITS` is not defined, e.g. on 32-bit machines. It was behind `#if 0` anyway.
-
- Oct 12, 2017
-
-
88d4dd4b CommandLineArguments: use std::string in GenerateHelp() Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !60
-
8717ac15 DynamicLoader: use std::string instead of strcpy() + strcat() Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !59
-
749b7506 ProcessUNIX: Use monotonic clock in kwsysProcessTimeGetCurrent() for POSIX Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !57
-
- Oct 11, 2017
-
-
Rolf Eike Beer authored
-
Rolf Eike Beer authored
-
Wouter Klouwen authored
While a process is running, it is possible for other processes such as NTP to alter the system clock in large jumps. To make the measurement of how long a process has taken to run impervious to such large jumps it is helpful to use a monotonic clock. This is a clock that takes an arbitrary starting point that does not change. clock_gettime() is a POSIX method that implements this clock. This is not available on all platforms, so this commit adds a check for its presence. If the monotonic timer is available, use that in kwsysProcessTimeGetCurrent(), otherwise falls back to previous non-monotonic behaviour.
-
- Oct 10, 2017
-
-
5d2aff9d ProcessWin32: use strdup() instead of open coding it cf8beae3 ProcessUNIX: use strdup() instead of open coding it Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !56
-
3b8fefea remove pointer checks before calling free() 6d7eb3a1 CommandLineArguments: do not check variable before delete[] Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !55
-
ce55a255 testSystemTools: fix some copy'n'paste issues 73c491e8 processUNIX: fix not null terminated buffer during error reporting 13e02b76 processUNIX: close intermediate file descriptor in error case 862562ce SystemInformation: fix potential off-by-one write Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !54
-
6599eda6 testRobustEncoding: restore format flags for std::cout before exiting Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !53
-
- Oct 07, 2017
-
-
Rolf Eike Beer authored
-
Rolf Eike Beer authored
-
- Oct 06, 2017
-
-
Rolf Eike Beer authored
-
Rolf Eike Beer authored
-
- Oct 05, 2017
-
-
Matthias Männich authored
-
Matthias Männich authored
-
Matthias Männich authored
-
Matthias Männich authored
in case readlink uses the complete buffer (1024) it will truncate the result and return 1024 assigned to ll. the subsequent buf[ll] will then be out of bounds. the fix assumes, that a truncated result is as useful as experiencing an error during readlink, hence falling back to /proc/self/exe.
-
6ca15069 SystemTools: make Getcwd() more efficient on Windows Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !52
-
Matthias Männich authored
-
- Oct 04, 2017
-
-
Rolf Eike Beer authored
Only do one conversion attempt and write that directly to the target buffer. Do the uppercasing of the drive letter only in the ASCII domain, not in wide chars.
-
- Sep 30, 2017
-
-
41c93d97 Remove unnecessary testIOS Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !51
-
a5046656 SystemTool: remove unused Convert*MacroString() caaef6bb testSystemTools: avoid strcpy() Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !50
-
- Sep 29, 2017
-
-
Rolf Eike Beer authored
-
-
- Sep 21, 2017
-
-
aa9f3a82 macOS: Account for deployment target when checking for utimensat Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !49
-
- Sep 20, 2017
-
-
Brad King authored
The SDK for macOS 10.13 adds `utimensat`, but the symbol is not available at runtime on older macOS versions. Check the deployment target before using the symbol. Issue: cmake/cmake#17101
-
- Sep 14, 2017
-
-
c8cfe4e0 SystemTools: Drop SplitProgramFromArgs function Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !48
-
- Sep 11, 2017
-
-
Brad King authored
This was used only by CMake's get_filename_components() command, which has now been re-implemented independently. The operation is not well-defined (string parsing should not depend on filesystem content), so remove it.
-
- Sep 01, 2017
-
-
80652055 Directory: Use Windows Extended Paths Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !47
-
- Aug 11, 2017
-
-
da61baff Added cmake settable property to enable the macro 6d73752d Allow KWSYSPE_USE_SELECT macro to be overriden at compile time. Acked-by:
Kitware Robot <kwrobot@kitware.com> Merge-request: !43
-