Lines Matching defs:Trap
758 EXTERN short trap_exstat; /* exit status before running a trap */
856 * trap handlers
858 typedef struct trap {
861 char *trap; /* trap command */
866 volatile sig_atomic_t set; /* trap pending */
867 } Trap;
869 /* values for Trap.flags */
871 #define TF_USER_SET BIT(1) /* user has (tried to) set trap */
878 #define TF_CHANGED BIT(8) /* used by runtrap() to detect trap changes */
888 #define SS_USER BIT(4) /* user is doing the set (ie, trap command) */
889 #define SS_SHTRAP BIT(5) /* trap for internal use (ALRM, CHLD, WINCH) */
891 #define ksh_SIGEXIT 0 /* for trap EXIT */
892 #define ksh_SIGERR NSIG /* for trap ERR */
894 EXTERN volatile sig_atomic_t trap; /* traps pending? */
895 EXTERN volatile sig_atomic_t intrsig; /* pending trap interrupts command */
897 extern Trap sigtraps[NSIG+1];
1745 Trap *gettrap(const char *, bool);
1751 void runtrap(Trap *, bool);
1754 void settrap(Trap *, const char *);
1757 int setsig(Trap *, sig_t, int);
1758 void setexecsig(Trap *, int);