diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2004-08-31 18:13:52 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2004-08-31 18:13:52 +0000 |
commit | d808bcaefe573140d851271d7a90df7f8a7c98fc (patch) | |
tree | b6eecca1b4f10ccbd28b1c21f6c8f35e7d65b449 | |
parent | 0132bd4dc15dbc6122a709ec49e39cab21c52aff (diff) |
Initial commit for platform independent system configuration support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16128 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/System/SysConfig.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/include/llvm/System/SysConfig.h b/include/llvm/System/SysConfig.h new file mode 100644 index 0000000000..8f89c5ccb6 --- /dev/null +++ b/include/llvm/System/SysConfig.h @@ -0,0 +1,30 @@ +//===- llvm/System/SysConfig.h - System Configuration ----------*- C++ -*-===// +// +// The LLVM Compiler Infrastructure +// +// This file was developed by Reid Spencer and is distributed under the +// University of Illinois Open Source License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// +// +// This file declares the SysConfig utilities for platform independent system +// configuration (both globally and at the process level). +// +//===----------------------------------------------------------------------===// + +#ifndef LLVM_SYSTEM_SYSCONFIG_H +#define LLVM_SYSTEM_SYSCONFIG_H + +namespace llvm { +namespace sys { + + /// This function makes the necessary calls to the operating system to prevent + /// core files or any other kind of large memory dumps that can occur when a + /// program fails. + /// @brief Prevent core file generation. + void PreventCoreFiles(); + +} // End sys namespace +} // End llvm namespace + +#endif |