[llvm-commits] CVS: llvm/lib/System/Unix/SysConfig.cpp
Reid Spencer
reid at x10sys.com
Tue Aug 31 10:53:52 PDT 2004
Changes in directory llvm/lib/System/Unix:
SysConfig.cpp updated: 1.1 -> 1.2
---
Log message:
Actually define PreventCoreFiles in the sys namespace.
---
Diffs of the changes: (+1 -3)
Index: llvm/lib/System/Unix/SysConfig.cpp
diff -u llvm/lib/System/Unix/SysConfig.cpp:1.1 llvm/lib/System/Unix/SysConfig.cpp:1.2
--- llvm/lib/System/Unix/SysConfig.cpp:1.1 Tue Aug 31 12:43:29 2004
+++ llvm/lib/System/Unix/SysConfig.cpp Tue Aug 31 12:53:41 2004
@@ -16,13 +16,11 @@
#include <sys/resource.h>
namespace llvm {
-using namespace sys;
-
// Some LLVM programs such as bugpoint produce core files as a normal part of
// their operation. To prevent the disk from filling up, this configuration item
// does what's necessary to prevent their generation.
-void PreventCoreFiles() {
+void sys::PreventCoreFiles() {
struct rlimit rlim;
rlim.rlim_cur = rlim.rlim_max = 0;
int res = setrlimit(RLIMIT_CORE, &rlim);
More information about the llvm-commits
mailing list