- Dec 01, 2015
-
-
Microseconds range from 0 to 999999, so 1000000 is an overflow which should be processed as well. Change-Id: I59873504987d6aa416e87aa7f5cd208983217ace
-
- Nov 30, 2015
-
-
The NIOS2 CPU is little-endian. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Ley Foon Tan <lftan@altera.com> Cc: Thomas Chou <thomas@wytron.com.tw> Cc: Walter Goossens <waltergoossens@home.nl> Change-Id: Ifd1bc890b2fb74168b934641c70800a029f7f0b8
-
- Oct 16, 2015
-
-
See http://bixense.com/clicolors/ for documentation of this convention. This is useful e.g. for build servers or IDE outputs. Change-Id: I648edb4e09deda12a33328a7248dd3daf920be38
-
- Oct 06, 2015
-
-
Brad King authored
Teach the Touch and FileTimeCompare methods to use the `st_mtimespec` member of `struct stat` on OS X. Change-Id: Ib7dcca41eee571af23509536fe4768a68d98a81a
-
Brad King authored
Construct the access time component-wise at runtime rather than in an initializer list. Change-Id: I0cdcb341b2b9e49506ebe6363729b4a662e38307
-
Brad King authored
Do not expose our platform introspection result publicly. Change-Id: I9929f31293adcb628b32d9d7f11b120c44046354
-
Change-Id: I1375f56aacc561714d2cb0095478a763079ee657
-
- Oct 02, 2015
-
-
Brad King authored
Include the <shellapi.h> header to get CommandLineToArgvW even when <windows.h> does not include it due to WIN32_LEAN_AND_MEAN. Change-Id: If42241621c30b76c7b49cd64e044a19403f9da09
-
- Sep 28, 2015
-
-
The GetPath method appends paths to an output vector and also converts paths to forward slashes. However, the method should not modify entries in the output vector that existed prior to the call. Fix it to only fix slashes in the entries it added to the vector. Also add a test case covering this behavior. Change-Id: Ie098c3eddbe63ed59f0d393aa6c43ea6c395011d
-
- Sep 25, 2015
-
-
Teach these functions to copy directories as directories instead of files. Create the destination directory and set permissions, but do not recurse into the directory structure because these functions are meant for individual filesystem entries. Change-Id: I20fae2e159f86285c02c3fd894609e2e51cafdac
-
- Sep 17, 2015
-
-
Ben Boeckel authored
Change-Id: I3cc74292e44eb13e8d7c278b67d7270119e2ae4f
-
- Sep 11, 2015
-
-
Change-Id: I552e0840b5c84187b67a781621c09b485d3e6048
-
We pass a OSVERSIONINFOEXA structure so call GetVersionExA explicitly to avoid ever calling GetVersionExW with a structure of the wrong size by mistake. Change-Id: I892ae0497ef3ca4b38cd2c1c1870d165b0bd8713
-
- Aug 28, 2015
-
-
Brad King authored
Change-Id: Ie06816e1a2a0537c23fb646985a8017087dcf702
-
Brad King authored
Change-Id: I0da93a55af243fe798b9dd5bda4ee30c1bc3fcf9
-
Brad King authored
Drop the KWSYS_STL_HAS_* checks needed only for hashtable compatibility with old STL versions. Change-Id: I164a40669881439f5853a72c60ab2065498a69c0
-
Brad King authored
Drop "kwsys/stl/*" and "kwsys_stl::" and use the standard headers and namespace instead. Drop the now-unused KWSYS_STL_HAVE_STD check. Change-Id: I6105fd32cd8f0e487e03f58927976e824a53f0d8
-
Brad King authored
Remove the KWSYS_STL_STRING_HAVE_{ISTREAM,OSTREAM,NEQ_CHAR} checks and drop their uses. Change-Id: I1e95dbbd724a7e08db67f71533da381b9d943f53
-
Brad King authored
Remove the checks for KWSYS_IOS_USE_ANSI and KWSYS_IOS_HAVE_STD and uses of the results. Change-Id: I67d756a70a08636175a9d131c6b3e27a3f74b175
-
Brad King authored
Change-Id: I930fdf45832e09b01b653a21ed0be159bebbf45d
-
Brad King authored
Change-Id: Icdc68acbac4b393ff753598dff331ac22df68b73
-
Brad King authored
Use the standard headers and namespace instead. We no longer support compilers without them. Change-Id: Iafb19d28462e9302df06eecc8ae42b48a9577a21
-
- Aug 24, 2015
-
-
James Johnston authored
If honor_umask is set, the umask is queried and applied to the given permissions when calling SetPermissions. Change-Id: I302231a2ae7f0c4610eb47fdb256fa02934ecd8c
-
James Johnston authored
Added a new TestFileAccess function that can be used to test for access to a file or directory using the requested combination of permissions. This is basically a wrapper of the POSIX access() function. Change-Id: I3e1769a2438cc2047a97850c5f312e36ed695799
-
James Johnston authored
The FileExists function always ensures that a file is readable on POSIX systems by using access() with R_OK. This was due to bug #809. Publicly state in the header file that this is being done. Also simplify the implementation so that redundant code handling the isFile parameter is eliminated. Change-Id: Ie07bec7aa5dd2bca07bb3244c01c0a29587aa437
-
James Johnston authored
This is necessary to satisfy a warning in Modules/Platform/CYGWIN.cmake. Change-Id: If5b5a661d3b82f4f3542ed34e96e4ccff4cbce8d
-
James Johnston authored
Change-Id: I53978f9da16eef6652566a59d8569fed07fe33a4
-
- Aug 21, 2015
-
-
Brad King authored
Pass flags to the SunPro compiler to improve the level of C++ standard support beyond the default. Do this only in a standalone build so that host projects can set flags for us. Change-Id: Ic9a84debfa939caf00b7ad99887793e885c35371
-
- Aug 07, 2015
-
-
Apply KWSYS_PROPERTIES_C to our C-only library, not the main library. Change-Id: I550196e6c6bdf613abfa7c7a19ec0b36d7f09553
-
- Aug 03, 2015
-
-
Teach testProcess-1 to stress-test kwsysProcess for leaks that lead to failure by running the test many times. Change-Id: I1906b935f4096161f30f418918653087f91dde16
-
Change-Id: Id632329f3593da977ce52de42ad39af4e6fb01dd
-
Change-Id: Iddfc4048d412ea9ecf1546802d6faca645c7ff36
-
Some operating systems allow directories to be opened and read like files while others do not. Simply check for a directory type first. Change-Id: Ic970f662d5aa887ace4a8f166ede7e0d1531d0d6
-
Fix the following error reported by valgrind memcheck tool: ==31549== 256 bytes in 1 blocks are definitely lost in loss record 1 of 1 ==31549== at 0x4C2B800: operator new[](unsigned long) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==31549== by 0x44F3AA: kwsys::SystemTools::DetectFileType(char const*, unsigned long, double) (in .../kwsysTestsCxx) ==31549== by 0x43D75E: CheckFileOperations() (in .../kwsysTestsCxx) ==31549== by 0x43FAC5: testSystemTools(int, char**) (in .../kwsysTestsCxx) ==31549== by 0x434A2B: main (in .../kwsysTestsCxx) Change-Id: I42db9774bf30889b67921a538e00c1bf519a2719
-
- Jul 30, 2015
-
-
Since commit faff2ab0 (Process: Wait for children to terminate on Ctrl+C, 2015-06-30) we do not report the GetLastError() from CreateProcessW() failure. Refactor kwsysProcessCleanup to pass the error code in so that we can always call GetLastError() immediately after a failure. Change-Id: I2b7950560c8bde2e29070c87f4927c51dca32e39
-
- Jul 23, 2015
-
-
Brad King authored
Store and pass the interruptDelay parameter as 'unsigned int' so it does not have to be converted to pass to testProcess_sleep. Otherwise some compilers warn about the signed->unsigned conversion. Change-Id: I1edf6dbc852231834a5de82c5b14f84ac8018c1f
-
- Jul 22, 2015
-
-
kwsysProcess leaked a file descriptor every time a process would start. This was causing exhaustion of available file descriptors on some operating systems (e.g. Mac OS X). Change-Id: I78eed0755f9766065c36460ffab468b2d7d1df12
-
- Jul 15, 2015
-
-
Two new tests were added to testProcess: * Test 9 is constructed of the root test process, a child process, and a grandchild process. The grandchild ignores all Ctrl+C signals and then sleeps. The child runs the grandchild normally. The root process runs the child in a new process group, sends it a Ctrl+C signal, and then lets the process expire to prove that the child was blocked waiting for the uninterruptable grandchild to die. * Test 10 is constructed of the root test process, a child process, and a grandchild process. The grandchild sleeps and processes signals normally. The child runs the grandchild in a new process group. The root process runs the child in a new process group as well, sends it a Ctrl+C, and then verifies that: (1) the child does indeed terminate with an interrupt signal, (2) the child did not expire, proving that it retransmitted the signal to the sleeping grandchild before waiting for the grandchild to terminate. Change-Id: Iba5bee546a82eb61a41d4194341e9382a00279d4
-
kwsysProcess_SetOption now allows you to specify a new kwsysProcess_Option_CreateProcessGroup option, which creates the process in a new process group (Windows/UNIX) and a new session (UNIX). Child process groups receive signals separately from their parents. This allowed for the introduction of the new kwsysProcess_Interrupt function, which allows one to safely request the child process in its own group to terminate. The Ctrl+C handler also manually sends that signal to child process groups, since it's no longer automatic. Change-Id: Id0a420ad65f1b1c1d299ac0eb95fbb8b50a52409
-