1 /************************************************************************* 2 * TinyFugue - programmable mud client 3 * Copyright (C) 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2002, 2003, 2004, 2005, 2006-2007 Ken Keys 4 * 5 * TinyFugue (aka "tf") is protected under the terms of the GNU 6 * General Public License. See the file "COPYING" for details. 7 ************************************************************************/ 8 /* $Id: signals.h,v 35004.21 2007/01/13 23:12:39 kkeys Exp $ */ 9 10 #ifndef SIGNALS_H 11 #define SIGNALS_H 12 13 extern void init_signals(void); 14 extern void init_exename(char *name); 15 extern void process_signals(void); 16 extern int shell_status(int result); 17 extern int shell(const char *cmd); 18 extern int suspend(void); 19 extern int interrupted(void); 20 extern void crash(int internal, const char *fmt, 21 const char *file, int line, long n) NORET; 22 extern void close_all(void); /* defined in socket.c */ 23 extern const char *checkstring(const char *s); 24 25 #define core(fmt, file, line, n) crash(TRUE, fmt, file, line, n) 26 #define error_exit(fmt, file, line, n) crash(FALSE, fmt, file, line, n) 27 28 #endif /* SIGNALS_H */ 29