diff options
Diffstat (limited to 'trap.h')
-rw-r--r-- | trap.h | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,6 +1,6 @@ /* trap.h -- data structures used in the trap mechanism. */ -/* Copyright (C) 1993-2009 Free Software Foundation, Inc. +/* Copyright (C) 1993-2010 Free Software Foundation, Inc. This file is part of GNU Bash, the Bourne Again SHell. @@ -49,6 +49,9 @@ #define DSIG_SIGPREFIX 0x01 /* don't alllow `SIG' PREFIX */ #define DSIG_NOCASE 0x02 /* case-insensitive comparison */ +/* A value which can never be the target of a trap handler. */ +#define IMPOSSIBLE_TRAP_HANDLER (SigHandler *)initialize_traps + #define signal_object_p(x,f) (decode_signal (x,f) != NO_SIG) #define TRAP_STRING(s) \ @@ -85,14 +88,17 @@ extern void free_trap_strings __P((void)); extern void reset_signal_handlers __P((void)); extern void restore_original_signals __P((void)); +extern void get_all_original_signals __P((void)); + extern char *signal_name __P((int)); extern int decode_signal __P((char *, int)); extern void run_interrupt_trap __P((void)); extern int maybe_call_trap_handler __P((int)); +extern int signal_is_special __P((int)); extern int signal_is_trapped __P((int)); extern int signal_is_ignored __P((int)); -extern int signal_is_special __P((int)); +extern int signal_is_hard_ignored __P((int)); extern void set_signal_ignored __P((int)); extern int signal_in_progress __P((int)); |