#ifndef __SYS_UTIL_H__ #define __SYS_UTIL_H__ #if HAVE_CONFIG_H #include "config.h" #endif /* HAVE_CONFIG_H */ #if HAVE_STDLIB_H #include #endif /* HAVE_STDLIB_H */ /* These are wrappers for the memory management functions * If a memory allocation fails cgdb will exit * They act identical to the POSIX calls */ void *xcalloc(size_t nmemb, size_t size); void *xmalloc(size_t size); void *xrealloc(void *ptr, size_t size); char *xstrdup(const char *s); int xclose(int fd); #endif