Home | History | Annotate | Download | only in src

Lines Matching refs:Trap

616 trap */
707 * trap handlers
709 typedef struct trap {
712 char *trap; /* trap command */
717 volatile sig_atomic_t set; /* trap pending */
718 } Trap;
720 /* values for Trap.flags */
722 #define TF_USER_SET BIT(1) /* user has (tried to) set trap */
729 #define TF_CHANGED BIT(8) /* used by runtrap() to detect trap changes */
739 #define SS_USER BIT(4) /* user is doing the set (ie, trap command) */
740 #define SS_SHTRAP BIT(5) /* trap for internal use (ALRM, CHLD, WINCH) */
742 #define ksh_SIGEXIT 0 /* for trap EXIT */
743 #define ksh_SIGERR NSIG /* for trap ERR */
745 EXTERN volatile sig_atomic_t trap; /* traps pending? */
746 EXTERN volatile sig_atomic_t intrsig; /* pending trap interrupts command */
748 extern Trap sigtraps[NSIG+1];
1649 Trap *gettrap(const char *, int);
1655 void runtrap(Trap *, bool);
1658 void settrap(Trap *, const char *);
1661 int setsig(Trap *, sig_t, int);
1662 void setexecsig(Trap *, int);