changeset 10852:024e032be5f2

Add comments.
author Bruno Haible <bruno@clisp.org>
date Sat, 06 Dec 2008 16:50:32 +0100
parents d31da80e6c50
children d3523c6712b4
files ChangeLog lib/c-stack.h
diffstat 2 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2008-12-06  Bruno Haible  <bruno@clisp.org>
+
+	* lib/c-stack.h (c_stack_action): Clarify possible side effects.
+	Suggested by Eric Blake.
+
 2008-12-06  Bruno Haible  <bruno@clisp.org>
 
 	Fix a c-stack test failure on MacOS X.
--- a/lib/c-stack.h
+++ b/lib/c-stack.h
@@ -36,6 +36,9 @@
    ACTION must be async-signal-safe.  ACTION together with its callees
    must not require more than SIGSTKSZ bytes of stack space.  Also,
    ACTION should not call longjmp, because this implementation does
-   not guarantee that it is safe to return to the original stack.  */
+   not guarantee that it is safe to return to the original stack.
+
+   This function may install a handler for the SIGSEGV signal or for the SIGBUS
+   signal or exercise other system dependent exception handling APIs.  */
 
 extern int c_stack_action (void (* /*action*/) (int));