Home | History | Annotate | Download | only in src

Lines Matching refs:Trap

743 EXTERN short trap_exstat;	/* exit status before running a trap */
841 * trap handlers
843 typedef struct trap {
846 char *trap; /* trap command */
851 volatile sig_atomic_t set; /* trap pending */
852 } Trap;
854 /* values for Trap.flags */
856 #define TF_USER_SET BIT(1) /* user has (tried to) set trap */
863 #define TF_CHANGED BIT(8) /* used by runtrap() to detect trap changes */
873 #define SS_USER BIT(4) /* user is doing the set (ie, trap command) */
874 #define SS_SHTRAP BIT(5) /* trap for internal use (ALRM, CHLD, WINCH) */
876 #define ksh_SIGEXIT 0 /* for trap EXIT */
877 #define ksh_SIGERR NSIG /* for trap ERR */
879 EXTERN volatile sig_atomic_t trap; /* traps pending? */
880 EXTERN volatile sig_atomic_t intrsig; /* pending trap interrupts command */
882 extern Trap sigtraps[NSIG+1];
1789 Trap *gettrap(const char *, bool);
1795 void runtrap(Trap *, bool);
1798 void settrap(Trap *, const char *);
1801 int setsig(Trap *, sig_t, int);
1802 void setexecsig(Trap *, int);