summaryrefslogtreecommitdiff
path: root/cutils.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-09 13:47:45 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-06-09 13:47:45 +0000
commit17e2377abf16c3951d7d34521ceade4d7dc31d01 (patch)
treec6e540f435401b092933145541df335748b5fd58 /cutils.c
parent82e671d9ecdf1422780e56182e9c228071493a22 (diff)
downloadqemu-17e2377abf16c3951d7d34521ceade4d7dc31d01.tar.gz
qemu-17e2377abf16c3951d7d34521ceade4d7dc31d01.tar.bz2
qemu-17e2377abf16c3951d7d34521ceade4d7dc31d01.zip
Prevent guest reusing host memory allocations.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4710 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'cutils.c')
-rw-r--r--cutils.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/cutils.c b/cutils.c
index 738d5265d7..9ef2fa627c 100644
--- a/cutils.c
+++ b/cutils.c
@@ -95,38 +95,3 @@ time_t mktimegm(struct tm *tm)
t += 3600 * tm->tm_hour + 60 * tm->tm_min + tm->tm_sec;
return t;
}
-
-void *get_mmap_addr(unsigned long size)
-{
- return NULL;
-}
-
-void qemu_free(void *ptr)
-{
- free(ptr);
-}
-
-void *qemu_malloc(size_t size)
-{
- return malloc(size);
-}
-
-void *qemu_mallocz(size_t size)
-{
- void *ptr;
- ptr = qemu_malloc(size);
- if (!ptr)
- return NULL;
- memset(ptr, 0, size);
- return ptr;
-}
-
-char *qemu_strdup(const char *str)
-{
- char *ptr;
- ptr = qemu_malloc(strlen(str) + 1);
- if (!ptr)
- return NULL;
- strcpy(ptr, str);
- return ptr;
-}