Paul Eggert 88ead75505 (__attribute__): New macro.
(EOVERFLOW): Define if not defined.(stack_t): Define to struct sigaltstack if not defined or declared.
Include <sys/resource.h>, <ucontext.h> if available.
Include <stdio.h> if DEBUG.
Do not include <inttypes.h> or <stdint.h>.
(c_stack_die): Remove info and context args.  All uses changed.
(segv_action): Likewise.
(alternate_signal_stack): Change uintmax_t to long, to ease porting.
(get_stack_location, min_address_from_argv, max_address_from_argv,
null_action): New functions.
(stack_base, stack_size): New vars.
(segv_handler): context arg may not be used.
Use global stack_base, stack_size if
! HAVE_XSI_STACK_OVERFLOW_HEURISTIC.
Add debug code.
Invoke die (rather than segv_action) to exit.
(c_stack_action): Accept new argv arg, and simpler handler arg.
All uses changed.  Move code into new functions above.
Allow null action.
[! (defined SA_ONSTACK && defined _SC_PAGESIZE)]: Assume all segvs
are stack overflows.
(main) [DEBUG]: Describe what output should be like.
2002-06-11 05:53:54 +00:00
..
2002-06-11 05:53:54 +00:00
2002-02-28 04:28:07 +00:00
2002-02-28 04:28:07 +00:00
2002-02-28 04:28:07 +00:00
2002-02-28 04:28:07 +00:00
2001-07-07 04:55:38 +00:00
2001-10-27 00:37:40 +00:00
2001-07-06 04:44:39 +00:00
2001-11-23 13:28:32 +00:00
2001-08-23 17:25:08 +00:00
2001-11-04 01:21:33 +00:00
2001-08-23 17:25:08 +00:00
2002-05-10 11:20:06 +00:00
2002-03-12 06:34:28 +00:00
2001-11-23 13:28:32 +00:00
2001-11-23 13:28:32 +00:00
2001-11-23 13:28:32 +00:00
2002-03-11 08:00:47 +00:00
2001-11-23 13:28:32 +00:00
2002-02-16 05:30:19 +00:00
2002-02-16 05:30:19 +00:00
2001-11-23 13:28:32 +00:00
2001-12-11 08:11:35 +00:00
2001-12-03 13:56:28 +00:00
2001-11-23 13:28:32 +00:00
2002-01-05 21:13:09 +00:00
2000-08-07 15:48:18 +00:00
2002-02-28 04:28:07 +00:00
2001-12-22 01:48:53 +00:00