/*************************************************************************
 *  TinyFugue - programmable mud client
 *  Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2002, 2003 Ken Keys
 *
 *  TinyFugue (aka "tf") is protected under the terms of the GNU
 *  General Public License.  See the file "COPYING" for details.
 ************************************************************************/
/* $Id: signals.h,v 35004.16 2003/06/09 02:00:43 hawkeye Exp $ */

#ifndef SIGNALS_H
#define SIGNALS_H

extern void init_signals(void);
extern void process_signals(void);
extern int  shell_status(int result);
extern int  shell(const char *cmd);
extern int  suspend(void);
extern int  interrupted(void);
extern void crash(int internal, const char *fmt,
    const char *file, int line, long n) NORET;
extern void close_all(void); /* defined in socket.c */

#define core(fmt, file, line, n)	crash(TRUE, fmt, file, line, n)
#define error_exit(fmt, file, line, n)	crash(FALSE, fmt, file, line, n)

#endif /* SIGNALS_H */
