sig.h (1574) | sig.h (84260) |
---|---|
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 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)sig.h 8.1 (Berkeley) 6/4/93 | 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 * Redistribution and use in source and binary forms, with or without --- 20 unchanged lines hidden (view full) --- 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * 36 * @(#)sig.h 8.1 (Berkeley) 6/4/93 |
37 * $NetBSD: sig.h,v 1.2 1997/01/11 06:48:11 lukem Exp $ 38 * $FreeBSD: head/lib/libedit/sig.h 84260 2001-10-01 08:41:27Z obrien $ |
|
37 */ 38 39/* 40 * el.sig.h: Signal handling functions 41 */ 42#ifndef _h_el_sig | 39 */ 40 41/* 42 * el.sig.h: Signal handling functions 43 */ 44#ifndef _h_el_sig |
43#define _h_el_sig | 45#define _h_el_sig |
44 45#include <signal.h> 46 47#include "histedit.h" 48 49/* 50 * Define here all the signals we are going to handle 51 * The _DO macro is used to iterate in the source code 52 */ | 46 47#include <signal.h> 48 49#include "histedit.h" 50 51/* 52 * Define here all the signals we are going to handle 53 * The _DO macro is used to iterate in the source code 54 */ |
53#define ALLSIGS \ 54 _DO(SIGINT) \ 55 _DO(SIGTSTP) \ 56 _DO(SIGSTOP) \ 57 _DO(SIGQUIT) \ 58 _DO(SIGHUP) \ 59 _DO(SIGTERM) \ 60 _DO(SIGCONT) \ 61 _DO(SIGWINCH) | 55#define ALLSIGS \ 56 _DO(SIGINT) \ 57 _DO(SIGTSTP) \ 58 _DO(SIGSTOP) \ 59 _DO(SIGQUIT) \ 60 _DO(SIGHUP) \ 61 _DO(SIGTERM) \ 62 _DO(SIGCONT) \ 63 _DO(SIGWINCH) |
62 | 64 |
63typedef sig_t *el_signal_t; | 65typedef sig_t *el_signal_t; |
64 | 66 |
65protected void sig_end __P((EditLine*)); 66protected int sig_init __P((EditLine*)); 67protected void sig_set __P((EditLine*)); 68protected void sig_clr __P((EditLine*)); | 67protected void sig_end(EditLine*); 68protected int sig_init(EditLine*); 69protected void sig_set(EditLine*); 70protected void sig_clr(EditLine*); |
69 70#endif /* _h_el_sig */ | 71 72#endif /* _h_el_sig */ |