- Oct 09, 2012
-
-
Burlen Loring authored
Add methods to report host memory total, host memory available, process memory available, host memory used, and process memory used. In this context memory is unavailable if there are resource limits in place that would prevent its use. Such resource limits assumed to be applied on a per host basis both to cooperatively operating process groups, such as mpi programms running in parallel, and to individual processes. When reporting host memory available consult an application specified environment variable. When reporting process memory available consult unix resource rlimits and an application specified environment variable. The environmant variables provide a means of communicating resource limits that are being applied in a non-standard way. Change-Id: Ifb3b0fdaab8db0ab87140fa2dcafad3c51e2d874
-
- Oct 01, 2012
- Sep 29, 2012
-
-
Brad King authored
Cast StacktraceSignalHandler to extern "C" to avoid the warning: SystemInformation.cxx, line 3048: Warning (Anachronism): Assigning void(*)(int,siginfo*,void*) to extern "C" void(*)(int,siginfo*,void*) on the Sun compiler. Change-Id: I8f8ac99656bc8ee6f604ea69c415a093699ca86d
-
Brad King authored
Fix interaction between local variables and conditional code in methods SystemInformationImplementation::GetFullyQualifiedDomainName SystemInformationImplementation::GetMemoryTotal SystemInformationImplementation::GetMemoryUsed SystemInformationImplementation::GetProcessId to avoid assigning values to local variables that are never used. While at it, fix GetMemoryUsed() to not leak the OpenProcess handle when GetProcessMemoryInfo fails. Change-Id: I582b70c7b4795df6b97bdeafc6328001dc5ce3ee
-
Brad King authored
Change-Id: I8788a5c8d8a8e9116675b1692b9ce102a943fc13
-
Brad King authored
Change-Id: Ib700bc38f9bc18ae2bb899b9c84c9cec91f9cfdb
-
Brad King authored
Change-Id: Ia10c74f423e0c7264ef989135aabf2f2b6f64911
-
Brad King authored
Use either GlobalMemoryStatus or GlobalMemoryStatusEx on any Windows compiler. Use Psapi only where it is available. Change-Id: I66ab965906ab0151eb52ed4fc345b29c466b556a
-
- Sep 27, 2012
-
-
Brad King authored
Change-Id: I52102945c67c902bc8578363b0d4712081a7fa1f
-
Brad King authored
Move general UNIX includes out of __linux and __APPLE__ blocks to anywhere _WIN32 is not defined. Fix preprocessing rules to implement GetFullyQualifiedDomainName only where it is known to work. Change-Id: I2147d38359af169069fa1a9d516614a92902563c
-
Support probing of the current process memory usage in KB (linux,win,mac), the total physical memory in KB (linux,win,mac), and the model name field of the cpuinfo (Linux only). Add a method to return the host's FQDN (non-AIX), and methods to test for OS type (Windows, Apple, Linux). Change-Id: Iedb238f4ca49d5f13385a71a592ec67cec73b29c
-
Brad King authored
Configure GitSetup scripts for KWSys. Run them from a single SetupForDevelopment.sh script. Change-Id: Ic4f02175fd65e2f4fe5688e43313766c2b23458f
-
Brad King authored
Add GitSetup/ directory using subtree merge from the general GitSetup repository "setup" branch. Change-Id: Ibbdf355c1c28eada01d02a785533d0d82c25205a
-
Brad King authored
Add a script implementing our standard "git gerrit-push" alias. When invoked, first check that the current branch is a named topic. Then fetch 'master' from the 'gerrit' remote repository so the local repository can compute a minimal pack to push. Finally, push the topic to the 'gerrit' remote as "refs/for/master/$topic".
-
- Sep 19, 2012
-
-
Brad King authored
-
- Sep 18, 2012
-
-
Change-Id: Ia49de4dfa022f9f284733e8b42c22c987b145bde
-
Brad King authored
Commit "KWSys: Fix SystemTools environment memory handling" (2012-04-26) added a _WIN32 case inside !KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H to dllimport the "environ" global. Howver, KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H is true on every Windows toolchain we support so the case is never reached. Furthermore, even if it were reached the use of dllimport is incorrect because the toolchain might not be compiling with a dynamic runtime library. Remove the unused incorrect line and supporting conditionals. Change-Id: If2b24fcbec18a711e4fbc28c5d027506d14f9ccb
-
- Sep 17, 2012
-
-
Brad King authored
Define macros _CRT_NONSTDC_NO_DEPRECATE _CRT_SECURE_NO_DEPRECATE _CRT_SECURE_NO_WARNINGS _SCL_SECURE_NO_DEPRECATE for all translation units in KWSys. Drop definitions from Configure.h that are now redundant. Change-Id: I326a1edb6c5a8ab977ecd2370eed6fcdf4775208
-
- Sep 14, 2012
-
-
Brad King authored
Change-Id: I08fd8c6ed7e9ba16216f1e8c52285f2f8e6be7fe
-
- Sep 10, 2012
-
-
Brad King authored
Add a .gitattributes line to match both "config.sample" and any config file added by the containing project.
-
- Jun 08, 2012
-
-
Brad King authored
Configure a separate pushurl only if it is different from the main url.
-
- May 18, 2012
-
-
Brad King authored
Honor the $username placeholder in the 'gerrit.url' configuration value. Configure a separate pushurl only if it is different from the main url.
-
- May 02, 2012
-
-
Brad King authored
The hash_fun.hxx header is configured whether FundamentalType is enabled or not and so cannot depend on it. Run the relevant platform tests whether or not FundamentalType is on and configure the result directly into hash_fun. While at it, remove the dependence of SystemInformation on FundamentalType too since it needs only information that we now always compute.
-
- Apr 26, 2012
-
-
Brad King authored
When the topic stage has already been configured present the current configuration and prompt for optional reconfiguration. While at it, make the topic stage remote name configurable by the project.
-
Brad King authored
The SystemTools::PutEnv function tries to provide the "putenv" API without leaking memory. However, the kwsysDeletingCharVector singleton frees memory that may still be referenced by the environment table, having been placed there by putenv. If any static destruction or processing by an external tool happens after the singleton is destroyed and accesses the environment it will read invalid memory. Replace use of putenv with setenv/unsetenv when available. The latter manage internal copies of the values passed instead of referencing the original memory. When setenv/unsetenv are not available use putenv with a singleton that removes its values from the environment before freeing their memory. This requires an "unputenv" implementation. On at least some platforms it must be written in terms of "putenv" because other APIs are not available and direct modification of the "environ" global is not safe (e.g. on Windows there is interaction with "wenviron"). Fortunately either putenv("A=") or putenv("A") will remove "A" from the environment on these platforms. On other platforms fall back to direct manipulation of "environ". Also add UnPutEnv to the API and add a test for the behavior of both.
-
- Apr 23, 2012
-
-
Brad King authored
KWSys is no longer shared in projects via a server-side directory symlink in CVS. An automated nightly date stamp commit can no longer be shared by multiple projects directly. It needs a per-project replay robot so the nightly commits end up needing N+1 robots instead of N. Remove the DateStamp feature because it is no longer useful or maintained by nightly commits.
-
- Mar 02, 2012
-
-
Brad King authored
Add the "export-ignore" attribute to all such files. Remove the suggestion from the README since this should not be a responsibility of the including project.
-
- Feb 09, 2012
-
-
Brad King authored
-
Brad King authored
Interactively prompt the user for ~/.ssh/config setup.
-
Brad King authored
-
Brad King authored
Interactively prompt the user with Gerrit setup instructions.
-
Brad King authored
Fetch the hooks right out of the local clone if possible. Otherwise fall back to a project-configured remote repository.
-
Brad King authored
Prompt the user to configure user.name and user.email interactively.
-
Brad King authored
-
- Feb 08, 2012
-
-
Brad King authored
-
- Dec 15, 2011
-
-
Brad King authored
Fix a crash which occurs when SystemTools::GetPath attempts to process an empty environment variable. Author: Vladimir Panteleev <vladimir@thecybershadow.net>
-
- Nov 13, 2011
- Nov 01, 2011
-
-
Brad King authored
CommandLineArguments.cxx: remark #181: argument is incompatible with corresponding format string conversion SystemInformation.cxx: remark #193: zero used for undefined preprocessing identifier "_WIN32" warning #177: variable "Regebx" was declared but never referenced SystemTools.cxx(375): remark #444: destructor for base class "std::vector<char*>" is not virtual class kwsysDeletingCharVector : private kwsys_stl::vector<char*> Author: Hans Johnson <hans-johnson@uiowa.edu> Change-Id: Ibc899c3ba14990158ef7bbabace4b435b22495c3
-