[llvm-commits] CVS: llvm/include/llvm/System/Signals.h

Chris Lattner lattner at cs.uiuc.edu
Mon Aug 1 19:13:53 PDT 2005



Changes in directory llvm/include/llvm/System:

Signals.h updated: 1.14 -> 1.15
---
Log message:

add a new function proto


---
Diffs of the changes:  (+9 -0)

 Signals.h |    9 +++++++++
 1 files changed, 9 insertions(+)


Index: llvm/include/llvm/System/Signals.h
diff -u llvm/include/llvm/System/Signals.h:1.14 llvm/include/llvm/System/Signals.h:1.15
--- llvm/include/llvm/System/Signals.h:1.14	Thu Apr 21 15:48:15 2005
+++ llvm/include/llvm/System/Signals.h	Mon Aug  1 21:13:42 2005
@@ -36,6 +36,15 @@
   /// @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
 






More information about the llvm-commits mailing list