3 * By Daniel Borkmann <daniel@netyack.org>
4 * Copyright 2009, 2010 Daniel Borkmann.
5 * Subject to the GPL, version 2.
13 extern __hidden
void *xmalloc(size_t size
);
14 extern __hidden
void *xvalloc(size_t size
);
15 extern __hidden
void *xzmalloc(size_t size
);
16 extern __hidden
void *xmallocz(size_t size
);
17 extern __hidden
void *xmalloc_aligned(size_t size
, size_t alignment
);
18 extern __hidden
void *xmemdupz(const void *data
, size_t len
);
19 extern __hidden
void *xrealloc(void *ptr
, size_t nmemb
, size_t size
);
20 extern __hidden
void xfree(void *ptr
);
21 extern __hidden
char *xstrdup(const char *str
);
22 extern __hidden
char *xstrndup(const char *str
, size_t size
);
23 extern __hidden
int xdup(int fd
);
25 #endif /* XMALLOC_H */