summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-02 02:13:42 +0000
committerChris Lattner <sabre@nondot.org>2005-08-02 02:13:42 +0000
commita429d007574818a8108d71a44c970a64ac8c80b4 (patch)
tree06c1af0097779289bdb581dbc4c8037c73e9e611
parent9ef129421027221908ce159774f62755d1c4061f (diff)
downloadbcm5719-llvm-a429d007574818a8108d71a44c970a64ac8c80b4.tar.gz
bcm5719-llvm-a429d007574818a8108d71a44c970a64ac8c80b4.zip
add a new function proto
llvm-svn: 22577
-rw-r--r--llvm/include/llvm/System/Signals.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/include/llvm/System/Signals.h b/llvm/include/llvm/System/Signals.h
index 588214eb4e6..f29fae9ab54 100644
--- a/llvm/include/llvm/System/Signals.h
+++ b/llvm/include/llvm/System/Signals.h
@@ -36,6 +36,15 @@ namespace sys {
/// @brief Print a stack trace if a fatal signal occurs.
void PrintStackTraceOnErrorSignal();
+ /// This function registers a function to be called when the user "interrupts"
+ /// the program (typically by pressing ctrl-c). When the user interrupts the
+ /// program, the specified interrupt function is called instead of the program
+ /// being killed, and the interrupt function automatically disabled. Note
+ /// that interrupt functions are not allowed to call any non-reentrant
+ /// functions. An null interrupt function pointer disables the current
+ /// installed function.
+ /// @brief Register a function to be called when ctrl-c is pressed.
+ void SetInterruptFunction(void (*IF)());
} // End sys namespace
} // End llvm namespace
OpenPOWER on IntegriCloud