113c14a5aSbostic /*- 2*5da099d4Sbostic * Copyright (c) 1992, 1993 3*5da099d4Sbostic * The Regents of the University of California. All rights reserved. 413c14a5aSbostic * 513c14a5aSbostic * This code is derived from software contributed to Berkeley by 613c14a5aSbostic * Christos Zoulas of Cornell University. 713c14a5aSbostic * 813c14a5aSbostic * %sccs.include.redist.c% 913c14a5aSbostic * 10*5da099d4Sbostic * @(#)sig.h 8.1 (Berkeley) 06/04/93 1113c14a5aSbostic */ 1213c14a5aSbostic 1313c14a5aSbostic /* 1413c14a5aSbostic * el.sig.h: Signal handling functions 1513c14a5aSbostic */ 1613c14a5aSbostic #ifndef _h_el_sig 1713c14a5aSbostic #define _h_el_sig 1813c14a5aSbostic 1913c14a5aSbostic #include <signal.h> 2013c14a5aSbostic 21965a069bSmarc #include "histedit.h" 2213c14a5aSbostic 2313c14a5aSbostic /* 2413c14a5aSbostic * Define here all the signals we are going to handle 2513c14a5aSbostic * The _DO macro is used to iterate in the source code 2613c14a5aSbostic */ 2713c14a5aSbostic #define ALLSIGS \ 2813c14a5aSbostic _DO(SIGINT) \ 2913c14a5aSbostic _DO(SIGTSTP) \ 3013c14a5aSbostic _DO(SIGSTOP) \ 3113c14a5aSbostic _DO(SIGQUIT) \ 3213c14a5aSbostic _DO(SIGHUP) \ 3313c14a5aSbostic _DO(SIGTERM) \ 3413c14a5aSbostic _DO(SIGCONT) \ 3513c14a5aSbostic _DO(SIGWINCH) 3613c14a5aSbostic 3713c14a5aSbostic typedef sig_t *el_signal_t; 3813c14a5aSbostic 3913c14a5aSbostic protected void sig_end __P((EditLine*)); 4013c14a5aSbostic protected int sig_init __P((EditLine*)); 4113c14a5aSbostic protected void sig_set __P((EditLine*)); 4213c14a5aSbostic protected void sig_clr __P((EditLine*)); 4313c14a5aSbostic 4413c14a5aSbostic #endif /* _h_el_sig */ 45