#include <stdarg.h>
#include <stdlib.h>
#include <limits.h>
+#include "compat.h"
#define INIT_SZ 128
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
+#include "compat.h"
int
daemon(int nochdir, int noclose)
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include "compat.h"
#define MINBUF 128
#undef malloc
#include <stdlib.h>
#include <sys/types.h>
+#include "compat.h"
/* Allocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
#undef realloc
#include <stdlib.h>
#include <sys/types.h>
+#include "compat.h"
/* Reallocate an N-byte block of memory from the heap.
If N is zero, allocate a 1-byte block. */
/* -*- mode: c; c-file-style: "openbsd" -*- */
+#include "compat.h"
+
void
setproctitle(const char *fmt, ...)
{
#include <sys/types.h>
#include <string.h>
+#include "compat.h"
/*
* Copy src to string dst of size siz. At most siz-1 characters
#include <stdlib.h>
#include <string.h>
+#include "compat.h"
/*
* Similar to `strdup()` but copies at most n bytes.
/* -*- mode: c; c-file-style: "openbsd" -*- */
#include <string.h>
+#include "compat.h"
/*
* Determine the length of a fixed-size string. This is really a
#include <errno.h>
#include <limits.h>
#include <stdlib.h>
+#include "compat.h"
#define INVALID 1
#define TOOSMALL 2