libdaemon  0.14
daemon.h
Go to the documentation of this file.
1 #ifndef foodaemonhfoo
2 #define foodaemonhfoo
3 
4 /***
5  This file is part of libdaemon.
6 
7  Copyright 2003-2008 Lennart Poettering
8 
9  libdaemon is free software; you can redistribute it and/or modify
10  it under the terms of the GNU Lesser General Public License as
11  published by the Free Software Foundation, either version 2.1 of the
12  License, or (at your option) any later version.
13 
14  libdaemon is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with libdaemon. If not, see
21  <http://www.gnu.org/licenses/>.
22 ***/
23 
29 #include <libdaemon/dfork.h>
30 #include <libdaemon/dlog.h>
31 #include <libdaemon/dpid.h>
32 #include <libdaemon/dsignal.h>
33 #include <libdaemon/dexec.h>
34 #include <libdaemon/dnonblock.h>
35 
36 #endif
dlog.h
Contains a robust API for logging messages.
dpid.h
Contains an API for manipulating PID files.
dnonblock.h
Contains a single function used to change a file descriptor to non-blocking mode using fcntl().
dsignal.h
Contains the API for serializing signals to a pipe for usage with select() or poll().
dfork.h
Contains an API for doing a daemonizing fork().
dexec.h
Contains a robust API for running sub processes with STDOUT and STDERR redirected to syslog.