diff options
author | Ondřej Surý <ondrej@sury.org> | 2013-07-15 15:09:06 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2013-07-15 15:09:06 +0200 |
commit | 6e7e890bcdb1f3bf11945312644eeda1a8ebae89 (patch) | |
tree | b463f966fa943ab0511cd2027a24ba52332a901e /src/knot/knot.h | |
parent | 471dbb903327afe2a65897131d01d04e50adcda9 (diff) | |
parent | 93f582ba0ad3d1f69b796b70660ccfd1530303f1 (diff) | |
download | knot-6e7e890bcdb1f3bf11945312644eeda1a8ebae89.tar.gz |
Merge tag 'upstream/1.3.0_rc4'
Upstream version 1.3.0~rc4
Diffstat (limited to 'src/knot/knot.h')
-rw-r--r-- | src/knot/knot.h | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/src/knot/knot.h b/src/knot/knot.h index fb0f9fd..0f517a9 100644 --- a/src/knot/knot.h +++ b/src/knot/knot.h @@ -30,36 +30,20 @@ #include <signal.h> #include <stdint.h> -/* - * Common types and constants. - */ - -#define PROJECT_EXENAME "knotd" -#define PROJECT_EXEC SBINDIR "/" PROJECT_EXENAME /*!< \brief Project executable. */ -#define PID_FILE "knot.pid" /*!< \brief Server PID file name. */ - -/* - * Server. - */ +#include "common/print.h" +#include "common/log.h" +#include "common/errcode.h" +#include "knot/other/debug.h" #define CPU_ESTIMATE_MAGIC 0 /*!< \brief Extra threads to the number of cores.*/ #define DEFAULT_THR_COUNT 2 /*!< \brief Default thread count. */ -#define TCP_BACKLOG_SIZE 10 /*!< \brief TCP listen backlog size. */ +#define TCP_BACKLOG_SIZE 10 /*!< \brief TCP listen backlog size. */ #define XFR_THREADS_COUNT 3 /*!< \brief Number of threads for XFR handler. */ #define RECVMMSG_BATCHLEN 64 /*!< \brief Define for recvmmsg() batch size. */ ///*! \brief If defined, the statistics module will be enabled. */ //#define STAT_COMPILE -/* - * Common includes. - */ - -#include "common/print.h" -#include "common/log.h" -#include "common/errcode.h" -#include "knot/other/debug.h" - /* Workarounds for clock_gettime() not available on some platforms. */ #ifdef HAVE_CLOCK_GETTIME #define time_now(x) clock_gettime(CLOCK_MONOTONIC, (x)) |