aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/Support/Signals.h18
-rw-r--r--include/llvm/System/Signals.h18
2 files changed, 36 insertions, 0 deletions
diff --git a/include/Support/Signals.h b/include/Support/Signals.h
new file mode 100644
index 0000000000..34e55b651f
--- /dev/null
+++ b/include/Support/Signals.h
@@ -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
index 0000000000..34e55b651f
--- /dev/null
+++ b/include/llvm/System/Signals.h
@@ -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