trap.h revision 50471
160786Sps/*-
260786Sps * Copyright (c) 1991, 1993
360786Sps *	The Regents of the University of California.  All rights reserved.
460786Sps *
560786Sps * This code is derived from software contributed to Berkeley by
660786Sps * Kenneth Almquist.
760786Sps *
860786Sps * Redistribution and use in source and binary forms, with or without
960786Sps * modification, are permitted provided that the following conditions
1060786Sps * are met:
1160786Sps * 1. Redistributions of source code must retain the above copyright
1260786Sps *    notice, this list of conditions and the following disclaimer.
1360786Sps * 2. Redistributions in binary form must reproduce the above copyright
1460786Sps *    notice, this list of conditions and the following disclaimer in the
1560786Sps *    documentation and/or other materials provided with the distribution.
1660786Sps * 3. All advertising materials mentioning features or use of this software
1760786Sps *    must display the following acknowledgement:
1860786Sps *	This product includes software developed by the University of
1960786Sps *	California, Berkeley and its contributors.
2060786Sps * 4. Neither the name of the University nor the names of its contributors
2160786Sps *    may be used to endorse or promote products derived from this software
2260786Sps *    without specific prior written permission.
2360786Sps *
2460786Sps * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2560786Sps * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2660786Sps * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2760786Sps * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
2860786Sps * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
2960786Sps * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3060786Sps * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3160786Sps * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3260786Sps * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3360786Sps * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3460786Sps * SUCH DAMAGE.
3560786Sps *
3660786Sps *	@(#)trap.h	8.3 (Berkeley) 6/5/95
3760786Sps * $FreeBSD: head/bin/sh/trap.h 50471 1999-08-27 23:15:48Z peter $
3860786Sps */
3960786Sps
4060786Spsextern int pendingsigs;
4160786Spsextern int in_dotrap;
4260786Sps
4360786Spsint trapcmd __P((int, char **));
4460786Spsvoid clear_traps __P((void));
4560786Spsvoid setsignal __P((int));
4660786Spsvoid ignoresig __P((int));
4760786Spsvoid onsig __P((int));
4860786Spsvoid dotrap __P((void));
4960786Spsvoid setinteractive __P((int));
5060786Spsvoid exitshell __P((int));
5160786Sps