summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2008-12-06 16:50:32 +0100
committerBruno Haible <bruno@clisp.org>2008-12-06 16:50:32 +0100
commitc41616494e7cea6a738d8850f490c8935febf364 (patch)
tree88cb31c48c531b70b68733146b8f3363bf5ec74b
parent67461c3ae4e118020b974b6632156494a9a7ce40 (diff)
downloadgnulib-c41616494e7cea6a738d8850f490c8935febf364.tar.gz
Add comments.
-rw-r--r--ChangeLog5
-rw-r--r--lib/c-stack.h5
2 files changed, 9 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d37da3ba80..f6ed8158c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
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.
* m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
diff --git a/lib/c-stack.h b/lib/c-stack.h
index 8c06541fd6..e1e0a6e448 100644
--- 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));