1 #ifndef XMALLOC_H 2 #define XMALLOC_H 3 #include <sys/types.h> 4 5 __attribute__((noreturn)) 6 void memory_exhausted(void); 7 void *xmalloc(size_t size); 8 void *xrealloc(void *ptr, size_t size); 9 char *xstrdup(const char *p); 10 11 #endif 12