Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / vsftpd / utility.h
blobaae30520efc089a40f5b98732ab3fd96282d4d11
1 #ifndef VSF_UTILITY_H
2 #define VSF_UTILITY_H
4 struct mystr;
6 /* die()
7 * PURPOSE
8 * Terminate execution of the process, due to an abnormal (but non-bug)
9 * situation.
10 * PARAMETERS
11 * p_text - text string describing why the process is exiting
13 void die(const char* p_text);
15 /* die2()
16 * PURPOSE
17 * Terminate execution of the process, due to an abnormal (but non-bug)
18 * situation.
19 * PARAMETERS
20 * p_text1 - text string describing why the process is exiting
21 * p_text2 - text to safely concatenate to p_text1
23 void die2(const char* p_text1, const char* p_text2);
25 /* bug()
26 * PURPOSE
27 * Terminate execution of the process, due to a suspected bug, trying to emit
28 * the reason this happened down the network in FTP response format.
29 * PARAMETERS
30 * p_text - text string describing what bug trap has triggered
31 * */
32 void bug(const char* p_text);
34 /* vsf_exit()
35 * PURPOSE
36 * Terminate execution of the process, writing out the specified text string
37 * in the process.
38 * PARAMETERS
39 * p_text - text string describing why the process is exiting
41 void vsf_exit(const char* p_text);
43 #endif