- May 27, 2015
-
-
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
-
- May 18, 2015
-
-
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
-
- May 12, 2015
-
-
Brad King authored
MIPS machines are biendian hence they can run both big endian kernels e.g. Debian mips architecture, and little endian kernels e.g. Debian mipsel architecture. Use predefined macros to distinguish them. Change-Id: I75fccd3cb1ef7915c8754ebbb64cb52a948b4ad8 Reported-by:
Mathieu Malaterre <malat@debian.org> Inspired-by:
Modestas Vainius <modax@debian.org>
-
- May 05, 2015
-
-
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 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
-
- May 04, 2015
-
-
Brad King authored
Suggested-by:
Gerhard Grimm <gerhard.grimm@detec.com> Change-Id: I22bf9a8e14c5c3862f6422ec2d8cc4da645a5a0d
-
- Apr 19, 2015
-
-
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
-
- Apr 16, 2015
-
-
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
-
- Apr 10, 2015
-
-
Brad King authored
Change-Id: Ic8f5dec4fbada46d68ed02b5916b61998966d85e
-
- Mar 18, 2015
-
-
Change-Id: I6b54e7adee6cf92f4b525c49a732efca2193185a
-
Change-Id: Iaa8fda477e06f32f8a1fd7305374d9c6d192a521
-
- Mar 17, 2015
-
-
Brad King authored
Change-Id: If0017ff59c6a3b14add76aba4aa782d1635895b8 Reported-by:
Sean McBride <sean@rogue-research.com>
-
- Mar 10, 2015
-
-
Brad King authored
Match the linkage of the data they reference. Suggested-by:
Mark Millard <markmi@dsl-only.net> Change-Id: I379cf9bb4519a87651ad05c1dfc2a6bfd43ec0ff
-
- Mar 03, 2015
-
-
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 inconsistent. Change-Id: I6099c0c568a04caf7c9a36a5d476390371115790
-
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
-
- Feb 27, 2015
-
-
On some stream libraries failbit is not set when trying to read past EOF. Instead, always exit the copy loop when gcount() is zero. Change-Id: Ied2a6a366ade185426c34ef58795e66472dc71dc
-
- Feb 25, 2015
-
-
When globing non recursive with for example '/a/*/*' the result contained '//' instead of a single slash between directories. Change-Id: I6adb672cde6e327c8fda6e29ff7d3b8ae5c7cb6b
-
In RecurseDirectory and ProcessDirectory a "fullname" variable is computed but not used. Remove it altogether. Change-Id: I97493f7a34f1a600715c8301ccd6377c3422212f
-
- Feb 24, 2015
-
-
Allow the caller to specify a pointer to a string to receive the error message on failure. Change-Id: Ibe537812bd18cd9cbac7bf735546a276c259402d
-
- Jan 23, 2015
-
-
Brad King authored
In Directory::GetNumberOfFilesInDirectory add a missing check for NULL. Change-Id: I6946eec913e60f786a419264555ec800f9b34d38
-
- Jan 20, 2015
-
-
Brad King authored
The MS standard library basic_istream and basic_ostream destructors have an exception specification macro _NOEXCEPT. Use it when we define our basic_ifstream and basic_ofstream destructors to match their parent class. Change-Id: I35e944f50fbea8c5a0c2a1a9b9389f59b63ac455
-
- Jan 09, 2015
-
-
Clang 3.5.0 errors out on the implicit void* -> T* cast. Change-Id: Ie0b0dd25a32e1a5692900d9f1035a423a056c413
-
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
-
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
-
Change-Id: I08ee07db55b21ab886658d2ae50a82775180f037
-
- Jan 08, 2015
-
-
Change-Id: I20b5dbb5504e43744ba95a1c5b0901858ea29735
-
- Dec 23, 2014
-
-
Brad King authored
Ensure the Encode/Decode APIs can deal with any buffer that can fit in memory. Change-Id: I3ecc50d5b9419a36f95b0888c71e0309a8cb674a
-
- Dec 18, 2014
-
-
Change-Id: I5436d155c6a56475c81b599b13d26ebf3a77b257
-
- Dec 16, 2014
-
-
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
-
- Dec 15, 2014
-
-
Brad King authored
Also link to the file from the README.txt file. Change-Id: I7dd74ce2a6d575a5503755d1aba2983907ccb7c9
-
- Dec 12, 2014
-
-
Brad King authored
-
More explicitly indicate which functions are used only on Windows. Change-Id: I64130e7f92c3f41941f4ca1e1eebc006ab10ed32
-
- Dec 10, 2014
-
-
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 returns: ullTotalVirtual = 128TB ullTotalPageFile = 16GB This commit updates the function Get(Available/Total)VirtualMemory to use page file size. Change-Id: I461e5f0a975432c31fc7370efe8467c61fea1bb3
-
- Nov 14, 2014
-
-
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
-
- Nov 12, 2014
-
-
Change-Id: Icf6dac5ff42987673e4c06bf69e7482fff83f6ea
-
- Nov 11, 2014
-
-
Add a check for supported flag when querying for system memory on AIX 5.1. Change-Id: I8fd898f025384c3f1551475abec2cf92607b7ca1
-
- Oct 31, 2014
-
-
Brad King authored
Change-Id: I8e9efb7db5056b86692cd83a3ba9240778fc63de
-
- Oct 16, 2014
-
-
Ben Boeckel authored
Change-Id: Ic681ae0bb027505d3dd957aed3d14b3c21c0f7c0
-
Ben Boeckel authored
Change-Id: Ia432795be0db4593c9a7588ead75ce8f542dcda1
-