This is both to ensure function signature consistency, and to
eliminate GCC's "no previous declaration for _____" warnings.
#include "error.h"
#include "log.h"
#include "string.h"
+#include "daemon.h"
/**
* Do the usual stuff to become a daemon.
#include "log.h"
#include "error.h"
#include "string.h"
+#include "exec.h"
/**
* Spawn a new process using execvp().
* Licensed under the GPL v2. For licencing details see COPYING.
*/
+#include <stdio.h>
#include <unistd.h>
#include <assert.h>
#include <string.h>
#include <sys/stat.h>
#include <fcntl.h>
-
#include "gcc-compat.h"
#include "error.h"
#include "string.h"
+#include "fd.h"
/**
* Call a function for each subdirectory of the current working directory.
#include "log.h"
#include "gcc-compat.h"
#include "error.h"
+#include "ipc.h"
#if (defined(__GNUC__) && defined(__i386__))
#define get16bits(d) (*((const uint16_t *) (d)))
#include "log.h"
#include "string.h"
#include "fd.h"
+#include "signal.h"
static int signal_pipe[2];
#include "error.h"
#include "string.h"
#include "log.h"
+#include "time.h"
/**
* Convert struct timeval to milliseconds.