1 /*- 2 * Copyright (c) 1992, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Christos Zoulas of Cornell University. 7 * 8 * %sccs.include.redist.c% 9 * 10 * @(#)sig.h 8.1 (Berkeley) 06/04/93 11 */ 12 13 /* 14 * el.sig.h: Signal handling functions 15 */ 16 #ifndef _h_el_sig 17 #define _h_el_sig 18 19 #include <signal.h> 20 21 #include "histedit.h" 22 23 /* 24 * Define here all the signals we are going to handle 25 * The _DO macro is used to iterate in the source code 26 */ 27 #define ALLSIGS \ 28 _DO(SIGINT) \ 29 _DO(SIGTSTP) \ 30 _DO(SIGSTOP) \ 31 _DO(SIGQUIT) \ 32 _DO(SIGHUP) \ 33 _DO(SIGTERM) \ 34 _DO(SIGCONT) \ 35 _DO(SIGWINCH) 36 37 typedef sig_t *el_signal_t; 38 39 protected void sig_end __P((EditLine*)); 40 protected int sig_init __P((EditLine*)); 41 protected void sig_set __P((EditLine*)); 42 protected void sig_clr __P((EditLine*)); 43 44 #endif /* _h_el_sig */ 45