Home | History | Annotate | Download | only in src

Lines Matching refs:Trap

762 EXTERN short trap_exstat;	/* exit status before running a trap */
860 * trap handlers
862 typedef struct trap {
865 char *trap; /* trap command */
870 volatile sig_atomic_t set; /* trap pending */
871 } Trap;
873 /* values for Trap.flags */
875 #define TF_USER_SET BIT(1) /* user has (tried to) set trap */
882 #define TF_CHANGED BIT(8) /* used by runtrap() to detect trap changes */
892 #define SS_USER BIT(4) /* user is doing the set (ie, trap command) */
893 #define SS_SHTRAP BIT(5) /* trap for internal use (ALRM, CHLD, WINCH) */
895 #define ksh_SIGEXIT 0 /* for trap EXIT */
896 #define ksh_SIGERR NSIG /* for trap ERR */
898 EXTERN volatile sig_atomic_t trap; /* traps pending? */
899 EXTERN volatile sig_atomic_t intrsig; /* pending trap interrupts command */
901 extern Trap sigtraps[NSIG+1];
1750 Trap *gettrap(const char *, bool);
1756 void runtrap(Trap *, bool);
1759 void settrap(Trap *, const char *);
1762 int setsig(Trap *, sig_t, int);
1763 void setexecsig(Trap *, int);