]> git.meshlink.io Git - meshlink/blobdiff - lib/xalloc.h
Do not use the C library's daemon() call.
[meshlink] / lib / xalloc.h
index 3f8d779253c6f36828b7df6a075dae8871c66bbb..3579efceb95e1260ca73478446585cf3dad6f2f1 100644 (file)
@@ -1,3 +1,5 @@
+#include <sys/types.h>
+
 #ifndef PARAMS
 # if defined PROTOTYPES || (defined __STDC__ && __STDC__)
 #  define PARAMS(Args) Args
@@ -17,5 +19,8 @@ extern char *const xalloc_msg_memory_exhausted;
 extern void (*xalloc_fail_func) ();
 
 void *xmalloc PARAMS ((size_t n));
+void *xmalloc_and_zero PARAMS ((size_t n));
 void *xcalloc PARAMS ((size_t n, size_t s));
 void *xrealloc PARAMS ((void *p, size_t n));
+
+char *xstrdup PARAMS ((char *s));