projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use struct addrinfo in connection_t to hold all host data such as IP
[tinc]
/
lib
/
xalloc.h
diff --git
a/lib/xalloc.h
b/lib/xalloc.h
index
3f8d779
..
caf0f37
100644
(file)
--- a/
lib/xalloc.h
+++ b/
lib/xalloc.h
@@
-1,3
+1,5
@@
+#include <sys/types.h>
+
#ifndef PARAMS
# if defined PROTOTYPES || (defined __STDC__ && __STDC__)
# define PARAMS(Args) Args
#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));
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));
void *xcalloc PARAMS ((size_t n, size_t s));
void *xrealloc PARAMS ((void *p, size_t n));
+
+char *xstrdup PARAMS ((const char *s));