1f5ff0f7cSBrian Somers /*- 2f5ff0f7cSBrian Somers * Copyright (c) 1997 3f5ff0f7cSBrian Somers * Brian Somers <brian@awfulhak.demon.co.uk>. All rights reserved. 4f5ff0f7cSBrian Somers * 5f5ff0f7cSBrian Somers * Redistribution and use in source and binary forms, with or without 6f5ff0f7cSBrian Somers * modification, are permitted provided that the following conditions 7f5ff0f7cSBrian Somers * are met: 8f5ff0f7cSBrian Somers * 1. Redistributions of source code must retain the above copyright 9f5ff0f7cSBrian Somers * notice, this list of conditions and the following disclaimer. 10f5ff0f7cSBrian Somers * 2. Redistributions in binary form must reproduce the above copyright 11f5ff0f7cSBrian Somers * notice, this list of conditions and the following disclaimer in the 12f5ff0f7cSBrian Somers * documentation and/or other materials provided with the distribution. 13f5ff0f7cSBrian Somers * 3. Neither the name of the University nor the names of its contributors 14f5ff0f7cSBrian Somers * may be used to endorse or promote products derived from this software 15f5ff0f7cSBrian Somers * without specific prior written permission. 16f5ff0f7cSBrian Somers * 17f5ff0f7cSBrian Somers * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 18f5ff0f7cSBrian Somers * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19f5ff0f7cSBrian Somers * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20f5ff0f7cSBrian Somers * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21f5ff0f7cSBrian Somers * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22f5ff0f7cSBrian Somers * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23f5ff0f7cSBrian Somers * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24f5ff0f7cSBrian Somers * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25f5ff0f7cSBrian Somers * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26f5ff0f7cSBrian Somers * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27f5ff0f7cSBrian Somers * SUCH DAMAGE. 28f5ff0f7cSBrian Somers * 29f5ff0f7cSBrian Somers * $Id: sig.h,v 1.5 1997/02/25 14:05:13 brian Exp $ 30f5ff0f7cSBrian Somers * 31f5ff0f7cSBrian Somers * TODO: 32f5ff0f7cSBrian Somers * 33f5ff0f7cSBrian Somers */ 34f5ff0f7cSBrian Somers 35f5ff0f7cSBrian Somers typedef void (*sig_type)(int); 36f5ff0f7cSBrian Somers 37f5ff0f7cSBrian Somers /* Call this instead of signal() */ 38f5ff0f7cSBrian Somers extern sig_type pending_signal __P((int, sig_type)); 39f5ff0f7cSBrian Somers 40f5ff0f7cSBrian Somers /* Call this when you want things to *actually* happen */ 41f5ff0f7cSBrian Somers extern void handle_signals __P((void)); 42