154234Sbostic /*- 2*61275Sbostic * Copyright (c) 1992, 1993 3*61275Sbostic * The Regents of the University of California. All rights reserved. 454234Sbostic * 554234Sbostic * This code is derived from software contributed to Berkeley by 654234Sbostic * Christos Zoulas of Cornell University. 754234Sbostic * 854234Sbostic * %sccs.include.redist.c% 954234Sbostic * 10*61275Sbostic * @(#)sig.h 8.1 (Berkeley) 06/04/93 1154234Sbostic */ 1254234Sbostic 1354234Sbostic /* 1454234Sbostic * el.sig.h: Signal handling functions 1554234Sbostic */ 1654234Sbostic #ifndef _h_el_sig 1754234Sbostic #define _h_el_sig 1854234Sbostic 1954234Sbostic #include <signal.h> 2054234Sbostic 2154246Smarc #include "histedit.h" 2254234Sbostic 2354234Sbostic /* 2454234Sbostic * Define here all the signals we are going to handle 2554234Sbostic * The _DO macro is used to iterate in the source code 2654234Sbostic */ 2754234Sbostic #define ALLSIGS \ 2854234Sbostic _DO(SIGINT) \ 2954234Sbostic _DO(SIGTSTP) \ 3054234Sbostic _DO(SIGSTOP) \ 3154234Sbostic _DO(SIGQUIT) \ 3254234Sbostic _DO(SIGHUP) \ 3354234Sbostic _DO(SIGTERM) \ 3454234Sbostic _DO(SIGCONT) \ 3554234Sbostic _DO(SIGWINCH) 3654234Sbostic 3754234Sbostic typedef sig_t *el_signal_t; 3854234Sbostic 3954234Sbostic protected void sig_end __P((EditLine*)); 4054234Sbostic protected int sig_init __P((EditLine*)); 4154234Sbostic protected void sig_set __P((EditLine*)); 4254234Sbostic protected void sig_clr __P((EditLine*)); 4354234Sbostic 4454234Sbostic #endif /* _h_el_sig */ 45