1 diff --git a/start-stop-daemon/start-stop-daemon.8 b/start-stop-daemon/start-stop-daemon.8
2 index de2d35c3..de666e65 100644
3 --- a/start-stop-daemon/start-stop-daemon.8
4 +++ b/start-stop-daemon/start-stop-daemon.8
6 .\" You should have received a copy of the GNU General Public License
7 .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
9 -.TH start\-stop\-daemon 8 "2017-07-04" "Debian Project" "dpkg suite"
10 +.TH start\-stop\-daemon 8 "2017-08-12" "CRUX 3.3" "core services"
13 start\-stop\-daemon \- start and stop system daemon programs
14 diff --git a/start-stop-daemon/start-stop-daemon.c b/start-stop-daemon/start-stop-daemon.c
15 index 81357504..f586fd91 100644
16 --- a/start-stop-daemon/start-stop-daemon.c
17 +++ b/start-stop-daemon/start-stop-daemon.c
19 * Changes by Ian Jackson: added --retry (and associated rearrangements).
26 #include <dpkg/macros.h>
28 +# define VERSION "20170812"
29 +# define CRUX "CRUX 3.3"
31 +# define HAVE_SYS_PARAM_H
32 +# define HAVE_SYS_SYSCALL_H
33 +# define HAVE_SYS_SYSCTL_H
34 +# define HAVE_SYS_USER_H
35 +# define HAVE_STDDEF_H
36 +# define HAVE_ERROR_H
39 +# define HAVE_CLOCK_MONOTONIC
40 +# define HAVE_GETDTABLESIZE
41 +# define HAVE_IOPRIO_SET
44 +# define DPKG_ATTR_NORET __attribute__((noreturn))
45 +# define DPKG_ATTR_PRINTF(X)
51 #if defined(__linux__)
54 #define HAVE_IOPRIO_SET
58 +# define array_count(x) (sizeof(x) / sizeof((x)[0]))
61 #define IOPRIO_CLASS_SHIFT 13
62 #define IOPRIO_PRIO_VALUE(class, prio) (((class) << IOPRIO_CLASS_SHIFT) | (prio))
63 #define IO_SCHED_PRIO_MIN 0
64 @@ -327,8 +355,7 @@ xstrndup(const char *str, size_t n)
66 timespec_gettime(struct timespec *ts)
68 -#if defined(_POSIX_TIMERS) && _POSIX_TIMERS > 0 && \
69 - defined(_POSIX_MONOTONIC_CLOCK) && _POSIX_MONOTONIC_CLOCK > 0
70 +#ifdef HAVE_CLOCK_MONOTONIC
71 if (clock_gettime(CLOCK_MONOTONIC, ts) < 0)
72 fatal("clock_gettime failed");
74 @@ -646,9 +673,9 @@ usage(void)
78 - printf("start-stop-daemon %s for Debian\n\n", VERSION);
80 - printf("Written by Marek Michalkiewicz, public domain.\n");
81 + printf("start-stop-daemon " VERSION " for " CRUX "\n\n"
82 + "Written by Marek Michalkiewicz, public domain.\n"
83 + "Adjusted for " CRUX ".\n");
86 static void DPKG_ATTR_NORET