Debian Codegraph @

netax25/daemon.h

raw
1 /* LIBAX25 - Library for AX.25 programs
2 * Copyright (C) 1997-1999 Jonathan Naylor, Tomi Manninen, Jean-Paul Roubelat
3 * and Alan Cox.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, see
17 * <https://www.gnu.org/licenses/>.
18 */
19 /*
20 * Function to convert a running process into a "proper" daemon.
21 */
22
23 #ifndef _DAEMON_H
24 #define _DAEMON_H
25
26 #ifndef TRUE
27 #define TRUE 1
28 #endif
29
30 #ifndef FALSE
31 #define FALSE 0
32 #endif
33
34 #ifdef __cplusplus
35 extern "C" {
36 #endif
37
38 /*
39 * The argument is whether to ignore the death of child processes. The function
40 * return non-zero if all was OK, else zero if there was a problem.
41 */
42 extern int daemon_start(int);
43
44 #ifdef __cplusplus
45 }
46 #endif
47
48 #endif