New api for signal handling for LLVM tools
authorChris Lattner <sabre@nondot.org>
Thu, 18 Apr 2002 19:53:34 +0000 (19:53 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 18 Apr 2002 19:53:34 +0000 (19:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2301 91177308-0d34-0410-b5e6-96231b3b80d8

include/Support/Signals.h [new file with mode: 0644]
include/llvm/System/Signals.h [new file with mode: 0644]

diff --git a/include/Support/Signals.h b/include/Support/Signals.h
new file mode 100644 (file)
index 0000000..34e55b6
--- /dev/null
@@ -0,0 +1,18 @@
+//===- Support/Signals.h - Signal Handling support ---------------*- C++ -*--=//
+//
+// This file defines some helpful functions for dealing with the possibility of
+// unix signals occuring while your program is running.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SUPPORT_SIGNALS_H
+#define SUPPORT_SIGNALS_H
+
+#include <string>
+
+// RemoveFileOnSignal - This function registers signal handlers to ensure that
+// if a signal gets delivered that the named file is removed.
+//
+void RemoveFileOnSignal(const std::string &Filename);
+
+#endif
diff --git a/include/llvm/System/Signals.h b/include/llvm/System/Signals.h
new file mode 100644 (file)
index 0000000..34e55b6
--- /dev/null
@@ -0,0 +1,18 @@
+//===- Support/Signals.h - Signal Handling support ---------------*- C++ -*--=//
+//
+// This file defines some helpful functions for dealing with the possibility of
+// unix signals occuring while your program is running.
+//
+//===----------------------------------------------------------------------===//
+
+#ifndef SUPPORT_SIGNALS_H
+#define SUPPORT_SIGNALS_H
+
+#include <string>
+
+// RemoveFileOnSignal - This function registers signal handlers to ensure that
+// if a signal gets delivered that the named file is removed.
+//
+void RemoveFileOnSignal(const std::string &Filename);
+
+#endif