fgms 0.11.8
The
FlightGear MultiPlayer Server
project
fgt_error.h
Go to the documentation of this file.
1 /*
2  * error.h - headers for error handlling functions
3  *
4  * Author: Gabor Toth <tgbp@freemail.hu>
5  * License: GPL
6  *
7  * $Log: error.h,v $
8  * Revision 1.2 2006/05/10 21:22:34 koversrac
9  * Comment with author and license has been added.
10  *
11  */
12 
13 #include "fgt_common.h"
14 #include <stdarg.h> /* ANSI C header file */
15 #ifndef _MSC_VER
16 #include <syslog.h> /* for syslog() */
17 #endif // !_MSC_VER
18 
19 extern int daemon_proc; /* set nonzero by daemon_init() */
20 
21 /* Nonfatal error related to system call
22  * Print message and return */
23 
24 extern void err_ret(const char *fmt, ...) ;
25 
26 
27 /* Fatal error related to system call
28  * Print message and terminate */
29 
30 extern void err_sys(const char *fmt, ...) ;
31 
32 
33 /* Fatal error related to system call
34  * Print message, dump core, and terminate */
35 
36 extern void err_dump(const char *fmt, ...) ;
37 
38 
39 /* Nonfatal error unrelated to system call
40  * Print message and return */
41 
42 extern void err_msg(const char *fmt, ...) ;
43 
44 
45 /* Fatal error unrelated to system call
46  * Print message and terminate */
47 
48 extern void err_quit(const char *fmt, ...) ;
49 
50 
51 /* Print message and return to caller
52  * Caller specifies "errnoflag" and "level" */
53 
54 extern void err_doit(int errnoflag, int level, const char *fmt, va_list ap) ;
55 
56 
57 extern void debug(int level,char *str);
58 
void err_doit(int errnoflag, int level, const char *fmt, va_list ap)
Definition: fgt_error.c:154
void err_quit(const char *fmt,...)
Definition: fgt_error.c:141
void err_dump(const char *fmt,...)
Definition: fgt_error.c:114
void debug(int level, char *str)
Definition: fgt_error.c:196
void err_sys(const char *fmt,...)
Definition: fgt_error.c:101
int daemon_proc
Definition: fgt_error.c:24
void err_ret(const char *fmt,...)
Definition: fgt_error.c:88
void err_msg(const char *fmt,...)
Definition: fgt_error.c:128