From: Chris Lattner Date: Thu, 18 Apr 2002 19:53:34 +0000 (+0000) Subject: New api for signal handling for LLVM tools X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=922a392565130d658f34abb65f5b710e600a1a83;p=oota-llvm.git New api for signal handling for LLVM tools git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2301 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/Support/Signals.h b/include/Support/Signals.h new file mode 100644 index 00000000000..34e55b651f7 --- /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 + +// 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 00000000000..34e55b651f7 --- /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 + +// 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