-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpanic.h
More file actions
46 lines (33 loc) · 1.24 KB
/
panic.h
File metadata and controls
46 lines (33 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/*
*
* mooproxy - a smart proxy for MUD/MOO connections
* Copyright 2001-2011 Marcel Moreaux
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 dated June, 1991.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef MOOPROXY__HEADER__PANIC
#define MOOPROXY__HEADER__PANIC
#define PANIC_SIGNAL 1
#define PANIC_MALLOC 2
#define PANIC_REALLOC 3
#define PANIC_STRDUP 4
#define PANIC_STRNDUP 5
#define PANIC_VASPRINTF 6
#define PANIC_SELECT 7
#define PANIC_ACCEPT 8
/* Signal handler. Basically calls panic(). */
extern void sighandler_panic( int sig );
/* Panic. Try to write a helpful message to stderr, crash-file, and any
* connected client. After that, terminate.
* Reason holds the reason, (u)extra holds extra information specific to
* the panic cause specified in reason. */
extern void panic( int reason, long extra, unsigned long uextra );
#endif /* ifndef MOOPROXY__HEADER__PANIC */