aboutsummaryrefslogtreecommitdiffstats
path: root/tools/xenstore/utils.h
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-01 12:05:42 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-08-01 12:05:42 +0100
commit019e22bb40852a517dd5b678dba6ef660c606a15 (patch)
tree797da2004702cdff148115f3dbd2df533486640e /tools/xenstore/utils.h
parent613140dc23eb7185d1420c3c9ba8367ab6c9e739 (diff)
downloadxen-019e22bb40852a517dd5b678dba6ef660c606a15.tar.gz
xen-019e22bb40852a517dd5b678dba6ef660c606a15.tar.bz2
xen-019e22bb40852a517dd5b678dba6ef660c606a15.zip
xenstored: Remove unused util code.
Signed-off-by: Keir Fraser <keir@xensource.com>
Diffstat (limited to 'tools/xenstore/utils.h')
-rw-r--r--tools/xenstore/utils.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/tools/xenstore/utils.h b/tools/xenstore/utils.h
index df82c1c5ef..ce14f3a408 100644
--- a/tools/xenstore/utils.h
+++ b/tools/xenstore/utils.h
@@ -21,39 +21,12 @@ static inline bool strends(const char *a, const char *b)
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
-#define ___stringify(x) #x
-#define __stringify(x) ___stringify(x)
-
-/* Convenient wrappers for malloc and realloc. Use them. */
-#define new(type) ((type *)malloc_nofail(sizeof(type)))
-#define new_array(type, num) realloc_array((type *)0, (num))
-#define realloc_array(ptr, num) ((__typeof__(ptr))_realloc_array((ptr), sizeof((*ptr)), (num)))
-
-void *malloc_nofail(size_t size);
-void *realloc_nofail(void *ptr, size_t size);
-void *_realloc_array(void *ptr, size_t size, size_t num);
-
void barf(const char *fmt, ...) __attribute__((noreturn));
void barf_perror(const char *fmt, ...) __attribute__((noreturn));
-/* This version adds one byte (for nul term) */
-void *grab_file(const char *filename, unsigned long *size);
-void release_file(void *data, unsigned long size);
-
-/* Signal handling: returns fd to listen on. */
-int signal_to_fd(int signal);
-void close_signal(int fd);
-
void xprintf(const char *fmt, ...);
#define eprintf(_fmt, _args...) xprintf("[ERR] %s" _fmt, __FUNCTION__, ##_args)
-#define iprintf(_fmt, _args...) xprintf("[INF] %s" _fmt, __FUNCTION__, ##_args)
-
-#ifdef DEBUG
-#define dprintf(_fmt, _args...) xprintf("[DBG] %s" _fmt, __FUNCTION__, ##_args)
-#else
-#define dprintf(_fmt, _args...) ((void)0)
-#endif
/*
* Mux errno values onto returned pointers.