summaryrefslogtreecommitdiffstats
path: root/ProcessUNIX.c
Commit message (Collapse)AuthorAgeFilesLines
* KWSys 2021-05-07 (979d7db0)KWSys Upstream2021-05-071-4/+4
| | | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 979d7db0d534b25cc41f5defdc121dce0f9da10b (master). Upstream Shortlog ----------------- Ali Mohammad Pur (1): 1ea48581 ProcessUNIX: Fix kwsysProcessesSignalHandler() if !KWSYSPE_USE_SIGINFO Brad King (1): 8f3c4879 Status: Fix GetWindows return type Georg Schwab (2): fd2ec23d SystemTools: Implement FileIsSymlink using canonical reparse structure 3683e5ab SystemTools: Implement CreateSymlink and ReadSymlink on Windows
* KWSys 2021-04-29 (5655d533)KWSys Upstream2021-04-291-0/+4
| | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 5655d533a9a4fb59b87d364c896339f1d454d420 (master). Upstream Shortlog ----------------- Brad King (1): 6e59fd94 Process: Suppress NVHPC warning in FD_ZERO
* KWSys 2020-07-24 (c3054d90)KWSys Upstream2020-07-241-3/+3
| | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit c3054d90612cc4a396d6e2087b696fc0923de1e9 (master). Upstream Shortlog ----------------- Jack Guo (1): 22216d56 SystemTools: Fix Touch() on broken symlink when create==false Robert Maynard (1): 29096513 Process: Prefer normative terms to express subprocess failures Sean McBride (1): eb6820b6 Glob: Explicitly delete copy construction and assignment
* KWSys 2020-04-15 (5ada375f)KWSys Upstream2020-04-151-8/+10
| | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 5ada375fcf564e837672eecbca2d522105daebf1 (master). Upstream Shortlog ----------------- Ben Boeckel (3): 83b20b65 clang-tidy: address `readability-braces-around-statements` lint 535633fa clang-tidy: address `readability-isolate-declaration` lint de210648 clang-tidy: address `readability-else-after-return` lint
* KWSys 2020-04-10 (b62956f5)KWSys Upstream2020-04-101-96/+101
| | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit b62956f5d70fef750e8414342f1566a29e8e7899 (master). Upstream Shortlog ----------------- Ben Boeckel (6): ccab3808 clang-tidy: address readability-isolate-declaration lints 87b57076 clang-tidy: address readability-braces-around-statements lints 13b45a41 clang-tidy: address readability-else-after-return lints ebb48d58 clang-tidy: address google-readability-casting lint 09942f51 testSystemTools: add tests for SplitString 986519af SystemTools: handle splitting a string starting with the separator
* KWSys 2020-03-04 (6af2e592)KWSys Upstream2020-03-041-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 6af2e59217a7e10ed507da564a1445b60ac2a095 (master). Upstream Shortlog ----------------- Hans Johnson (17): 81d1e737 STYLE: Use modern path naming 28b8e6c2 STYLE: Convert CMake-language commands to lower case 6ce3d69a DOC: Update documentation for modern add_subdirectory. 8a7fe7ac STYLE: Remove redundant void argument lists 1c3e193d COMP: Use nullptr instead of 0 or NULL 2a4c1252 STYLE: Replace integer literals which are cast to bool. 0fe7214d STYLE: Make prototype match definition names 3b30d0ff STYLE: Make prototype match definition names 691d5612 PERF: readability container size empty 7be4043f STYLE: Prefer c++11 'using' to 'typedef' acc916ed COMP: Prefer const pointer when value does not change 4c7f64eb COMP: Prefer const member functions d07092a0 STYLE: Use default member initialization 6d20e7c9 STYLE: Prefer = default to explicitly trivial implementations 91429382 PERF: emplace_back method results in potentially more efficient code cc8fc323 STYLE: Use auto for variable type matches the type of the initializer 6621b069 STYLE: Use range-based loops from C++11 Julien Schueller (1): a1a261ac CMake: Fix psapi lib name on case-sensitive fs
* KWSys 2019-01-14 (1541d849)KWSys Upstream2019-01-141-1/+1
| | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 1541d8496d0ae0e7c10eabcedb55db95f72afa4a (master). Upstream Shortlog ----------------- Sean McBride (1): f44cbf93 Fixed clang -Wextra-semi-stmt warnings
* KWSys 2018-06-01 (8ef62b28)KWSys Upstream2018-06-011-41/+41
| | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 8ef62b289e0a99856893ef49106c2b2d94e9dd0c (master). Upstream Shortlog ----------------- Brad King (2): 6b9c233c clang-format.bash: update to clang-format-6.0 b7a341cf Empty commit at end of history preceding clang-format-6.0 style transition Kitware Robot (1): 828b6837 Revise C++ coding style using clang-format-6.0
* KWSys 2018-01-23 (0579db1c)KWSys Upstream2018-01-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 0579db1c97715f9936523dd473c0ed7613b68e68 (master). Upstream Shortlog ----------------- Ben Boeckel (1): 3e807fd6 cmake: specify source file extensions Brad King (1): 38855ca1 Set CMP0042 explicitly with CMake 3.0 and above Chuck Atkins (1): 4ca97fc6 SystemTools: Disable getpwnam for static linux builds Hans Johnson (1): 7d7f3b2d Configure: Add KWSYS_NULLPTR macro for C++ code Sankhesh Jhaveri (1): 20c458d0 Set CMP0022 policy to new to provide link interface definitions Sean McBride (1): c6829e4d Fixed a few comments, mostly regarding base 2 vs base 10 sizes luz.paz (1): 4b67f965 Remove superfluous double whitespace in appropriate places
* KWSys 2017-11-02 (54f0901a)KWSys Upstream2017-11-021-0/+5
| | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 54f0901ad1a1c545a1360a19b5c521857b5a66ec (master). Upstream Shortlog ----------------- Bryon Bean (1): 8e428c18 Process: Add function to kill process (and children) with pid
* KWSys 2017-10-12 (ef0ad34d)KWSys Upstream2017-10-131-0/+8
| | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit ef0ad34d280f0553fc4f6e7202a5e7d6241cdc9c (master). Upstream Shortlog ----------------- Rolf Eike Beer (2): 8717ac15 DynamicLoader: use std::string instead of strcpy() + strcat() 88d4dd4b CommandLineArguments: use std::string in GenerateHelp() Wouter Klouwen (1): 749b7506 ProcessUNIX: Use monotonic clock in kwsysProcessTimeGetCurrent() for POSIX
* KWSys 2017-10-10 (239bc737)KWSys Upstream2017-10-101-13/+7
| | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit 239bc737543886a72c5e9e3445d51e17f7e26abe (master). Upstream Shortlog ----------------- Matthias Maennich (5): 6599eda6 testRobustEncoding: restore format flags for std::cout before exiting 862562ce SystemInformation: fix potential off-by-one write 13e02b76 processUNIX: close intermediate file descriptor in error case 73c491e8 processUNIX: fix not null terminated buffer during error reporting ce55a255 testSystemTools: fix some copy'n'paste issues Rolf Eike Beer (5): 6ca15069 SystemTools: make Getcwd() more efficient on Windows 6d7eb3a1 CommandLineArguments: do not check variable before delete[] 3b8fefea remove pointer checks before calling free() cf8beae3 ProcessUNIX: use strdup() instead of open coding it 5d2aff9d ProcessWin32: use strdup() instead of open coding it
* KWSys 2017-08-11 (e1006189)KWSys Upstream2017-08-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit e100618908f7f7a41cbe623afa79ca0e4f17834a (master). Upstream Shortlog ----------------- Chuck Atkins (2): 993f0ea4 Add an option to split object and interface libs. b61faf89 Fix install rules and usage requirements for interface+object libs Justin Berger (2): 6d73752d Allow KWSYSPE_USE_SELECT macro to be overriden at compile time. da61baff Added cmake settable property to enable the macro Sean McBride (1): dfa13188 Fixed a couple of trivial clang -Wunused-macros warnings Shawn Waldon (1): da8a9e65 SystemTools: make GetFilenameName handle either kind of slash
* KWSys 2017-05-16 (fe1f22ce)KWSys Upstream2017-05-161-108/+125
| | | | | | | | | | | | | | | | | | | | Code extracted from: https://gitlab.kitware.com/utils/kwsys.git at commit fe1f22ceefdae18df33e5bab8483fec7a82d4cee (master). Upstream Shortlog ----------------- Adam Weisi (3): 8a799e36 Process: Improve definition ordering in header file 7d56ef24 Process: Save results from all children internally b7eba998 Process: Add APIs to get results of individual processes Ben Boeckel (2): cea71543 style: remove separator comments 874dc559 style: help clang-format near macros
* KWSys 2016-11-09 (18c65411)KWSys Upstream2016-11-091-1127/+951
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Code extracted from: http://public.kitware.com/KWSys.git at commit 18c654114de3aa65429542f95308720bc68f9231 (master). Upstream Shortlog ----------------- Brad King (14): 37306a1c FStream: Quiet unused argument warning 15e90a3c Sort includes to stabilize include order w.r.t. clang-format 26509227 Copyright.txt: Add notice of copyright by contributors fc42d3f2 Add temporary script to filter license notices c41c1bc4 Simplify KWSys per-source license notices 1d4c0b4a Remove temporary script that filtered license notices a4f5ef79 SystemInformation: Remove stray comment 8649a886 kwsysPrivate: Protect KWSYS_HEADER macro from clang-format 89b98af5 Configure clang-format for KWSys source tree 547dacad Add a script to run clang-format on the entire source tree aa94be0c CONTRIBUTING: Add a section on coding style 6604c4b6 Empty commit at end of history preceding clang-format style transition 2b3e2b1c Tell Git to not export 'clang-format' infrastructure 18c65411 FStream: Include Configure.hxx before other headers Kitware Robot (1): 6c973b46 Revise C++ coding style using clang-format
* KWSys 2016-03-09 (36d8666f)KWSys Upstream2016-03-091-0/+11
| | | | | | | | | | | | | | Code extracted from: http://public.kitware.com/KWSys.git at commit 36d8666f44a75a6debb92c86c20f25d929d79cd1 (master). Upstream Shortlog ----------------- Zack Galbreath (1): 36d8666f Process: Add function to reset the start time of a process
* KWSys 2016-02-22 (4847aedd)KWSys Upstream2016-02-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | Code extracted from: http://public.kitware.com/KWSys.git at commit 4847aedde22b0026accbb71e5480ed353a330e02 (master). Upstream Shortlog ----------------- Ben Boeckel (1): de83c4d4 SystemTools: support deleting junction points Chuck Atkins (1): 3e1b7395 SystemInformation: Ignore buffers and cache when reporting host memory use Costy Petrisor (1): 9fe15333 Update hidden includes to support CMake header dependency scanning Zack Galbreath (1): 4847aedd Process: Allow timeout to be changed after child starts
* KWSys 2016-01-11 (e8bf616e)KWSys Upstream2016-01-111-2/+2
| | | | | | | | | | | | | | | | | | | | Code extracted from: http://public.kitware.com/KWSys.git at commit e8bf616e3556368bf19dbebcd3529a89011ebacb (master). Upstream Shortlog ----------------- Brad King (1): e8bf616e SystemTools: Fix GetShortPath buffer sizing Jan van Dorsten (1): cfb2477d SystemTools: Simplify GetShortPath de-quoting step Robert Maynard (1): 8ef9773d Don't use clang diagnostic pragma's when compiling with ICC on OSX.
* KWSys 2015-12-01 (9596e98d)KWSys Robot2015-12-011-1/+1
| | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 9596e98d | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' a7e5360f..9596e98d Dmitry Marakasov (1): b86a2a3e Process: Fix off-by-one when adding two times Marek Vasut (1): ddfa8019 CPU: Add NIOS2 support Rolf Eike Beer (2): 0adafb51 SystemTools: use FindProgram() overload that checks for directory 9596e98d SystemTools: move some code around that is used only on Windows-like platforms
* KWSys 2015-07-30 (f63febb7)KWSys Robot2015-07-311-50/+307
| | | | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ f63febb7 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' c9336bcf..f63febb7 Brad King (1): 83b4a6b8 Process: Fix conversion warning in testProcess.c James Johnston (7): 4cd8846c Process: Remove trailing whitespace in ProcessUNIX.c b1c44c58 Process: Refactor sleeping code in testProcess.c. faff2ab0 Process: Wait for children to terminate on Ctrl+C. ef517b19 Process: Added initial support for process groups. 906c2cae Process: Added test cases for testing Ctrl+C and process groups. 52874e6a Process: Fix leaked file descriptor in ProcessUNIX f63febb7 Process: Fix error message for startup failure on Windows
* KWSys 2015-05-05 (34fceb50)KWSys Robot2015-05-071-2/+7
| | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 34fceb50 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 8c8b2273..34fceb50 Brad King (1): 34fceb50 Process: Add option to merge stdout/stderr
* KWSys 2015-05-05 (8c8b2273)KWSys Robot2015-05-051-162/+193
| | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 8c8b2273 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' c2387a4b..8c8b2273 Brad King (1): 8c8b2273 Process: Refactor child pipe creation
* KWSys 2015-01-09 (425fa73e)KWSys Robot2015-01-101-2/+2
| | | | | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 425fa73e | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 5a15cb3b..425fa73e Ben Boeckel (1): 425fa73e Add missing malloc return value casts Simon Gomizelj (1): 2f0165f1 Terminal: Add xterm-termite to VT100 color support whitelist Stephen Kelly (3): e4fe1d1a SystemTools: Refactor selection of Windows directory APIs af86ac7d SystemTools: Fix build with SunCC/stlport. d30c9b03 Workaround SolarisStudio bug with libstdc++. Change-Id: Ib8fbe15d1ee072ac8d8506d92c8883056b224a89
* KWSys 2014-08-07 (4d526097)KWSys Robot2014-08-111-0/+2
| | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 4d526097 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' e787837a..4d526097 Brad King (2): 4791701a SystemTools: Remove ConvertWindowsCommandLineToUnixArguments method 4d526097 Add assert() to quiet Clang scan-build warnings Change-Id: I15e4ad710a8ad01f96761a89f2c1517f3c2aa835
* KWSys 2014-05-19 (c282e64f)KWSys Robot2014-05-191-0/+6
| | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ c282e64f | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 6074f33f..c282e64f Brad King (2): 2e00d252 SystemTools: Port cygwin path conversion to modern API c282e64f Process: Workaround child kill trouble on Cygwin Change-Id: I39a3ca47fbb4065eff922d94e6d7019c417ed75c
* KWSys 2013-12-19 (88165c5e)KWSys Robot2013-12-191-1/+1
| | | | | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 88165c5e | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 1010d0e3..88165c5e Clinton Stimpson (2): ab6f8c36 FStream: Fix rdbuf() return and use use of FStream in SystemTools. 88165c5e Encoding: Fix bug in kwsysEncoding_DupToNarrow. Rolf Eike Beer (2): d2bcbe11 SystemInformation: extract CPU information on Linux/Sparc b2fd7da5 ProcessUNIX: close /proc entry before starting recursion Ådne Hovda (1): a02a1ad2 SystemInformation: Fix compilation on HP-UX 11.11 hppa Change-Id: I225e0517379d88612f18215b43c7d6a9daad6326
* KWSys 2013-03-21 (2d263bc3)KWSys Robot2013-03-221-0/+6
| | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 2d263bc3 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 5c34ed2e..2d263bc3 Paul Kunysch (1): 2d263bc3 Process: Increase FD_SETSIZE on Cygwin Sean McBride (1): 13f5badd SystemInformation: Replace __GNUG__ with __GNUC__ Change-Id: I2d29f6d7e9bbc34f7a9b40394a7ee05f3c537396
* KWSys 2013-01-31 (5b0d1bd9)KWSys Robot2013-02-011-1/+1
| | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 5b0d1bd9 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 6fa1c99f..5b0d1bd9 Alan Hourihane (2): e81e2b72 DynamicLoader: Implement on Atari FreeMINT 5c4dcb2b ProcessUNIX: No select on Atari FreeMINT Sean McBride (2): bff2ea07 Glob: Fix clang -Wdocumentation warning 5b0d1bd9 Fix clang -Weverything warnings Change-Id: I8b342bea8bc9c7b92a856ddc948e1b56f5e74b98
* KWSys 2013-01-14 (6fa1c99f)KWSys Robot2013-01-141-2/+3
| | | | | | | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ 6fa1c99f | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 608d6b47..6fa1c99f Brad King (1): 84827cc1 Process: Avoid argv[0]==NULL from parsing empty command line Rolf Eike Beer (8): e041cd66 SystemInformation: factor out QueryMemoryBySysconf() ea850fa0 SystemInformation: factor out QueryProcessorBySysconf() 57f06d49 SystemInformation: count processors with sysconf() on Solaris c6057a06 SystemInformation: fix "Multi-character character constant" 5a27bd4f SystemInformation: make IsHyperThreadingSupported() return bool 342c0ad2 SystemInformation: query memory size with sysconf() on Solaris f0b857c1 SystemInformation: cache result of IsHyperThreadingSupported() ab0c2a09 SystemInformation: try using assembler with BorlandC Change-Id: I072371ed35eed892a5ef62a9e9e6cad734e961d9
* KWSys 2013-01-07 (fc60c8b8)KWSys Robot2013-01-081-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ fc60c8b8 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' 8ce09af5..fc60c8b8 Brad King (3): cb5f835f SystemTools: Fix MakeDirectory with colon in path 1643507a IOStream: Fix check for compiler 'long long' support 34177aec SystemTools: Fix MakeDirectory after recent cleanup Rolf Eike Beer (24): 4da9894d SystemInformation: Clean up QuerySolarisInfo() 01392358 SystemInformation: don't attribute i386 Solaris systems to Sun 3db65ac1 SystemInformation: wrap the call to CPUID in a function 61bd9b42 SystemInformation: use the __cpuid compiler intrinsic if present 5932e7c0 SystemInformation: query memory size on Cygwin using sysconf() ea5612ed SystemInformation: count memory with _SC_PAGESIZE and _SC_PHYS_PAGES 3aca6642 SystemInformation: query memory size, CPU count, and CPU speed on BSD 3572c54d SystemInformation: count CPUs on HP-UX e6771b34 SystemInformation: determine CPU type on HP-UX 640210e5 SystemInformation: use /proc/cpuinfo only when present 5bdcfd10 SystemInformation: query total memory on AIX de69d547 SystemInformation: use intrinsic for RDTSC if supported 9808d4e7 SystemInformation: get CPU speed on Windows when RDTSC fails f4c625b5 tests: avoid truncation of testSystemInformation output in CDash 03d6fbe5 SystemInformation: get x86 CPU features from /proc/cpuinfo f8e917c1 SystemInformation: remove the #define CPUID_INSTRUCTION 59c4b5c5 SystemInformation: split Windows code out of QueryMemory() 200ee91f SystemInformation: split HP-UX code out of QueryMemory() 88217703 SystemInformation: split Linux code out of QueryMemory() 9e317872 SystemInformation: split AIX code out of QueryMemory() 349cee5b SystemInformation: remove useless zeroing from QueryMemory() 7271926e SystemInformation: split Cygwin code out of QueryMemory() 6da78ad1 SystemInformation: make QueryMemory() return bool 182179e9 Haiku no longer defines __BEOS__ Stephen Kelly (1): 247b8a3c SystemTools: Rename MakeCnidentifier() to MakeCidentifier() Change-Id: Ib95b5bddab7ecc0a4025ab29792426acf57e5623
* KWSys 2012-10-16 (b7a97ac3)KWSys Robot2012-10-311-0/+1
| | | | | | | | | | | | | | | | | | | | Extract upstream KWSys using the following shell commands. $ git archive --prefix=upstream-kwsys/ b7a97ac3 | tar x $ git shortlog --no-merges --abbrev=8 --format='%h %s' bab53989..b7a97ac3 Brad King (3): f9db7eab SystemInformation: Fix helper definition order a1e83e42 SystemInformation: Expose helper functions only where needed b7a97ac3 SystemInformation: Drop unused LoadLines on OS X Burlen Loring (1): 6072e63b SystemInformation: support for resource limits Sean McBride (2): a536d833 ProcessUNIX: Suppress warning about uninteresting return code 00852081 SystemInformation: Fix sloppy use of sysctlbyname() API Change-Id: Iae8af129a021435ef4e6daef255e312c99d7b773
* KWSys 2012-05-02 (719638e2)KWSys Robot2012-10-011-0/+2753
Extract upstream KWSys using the following shell code. $ sha1=719638e233b560afb0d9a0afdcf23469dc1827fe && git archive --prefix=KWSys-snapshot/ $sha1 | tar x