about summary refs log tree commit diff
path: root/malloc/hooks.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-01-31 18:49:22 -0500
committerUlrich Drepper <drepper@gmail.com>2012-01-31 18:49:22 -0500
commit3b49edc04bae4ba33b0a3f1a402ba0ae2352766c (patch)
tree11fecd571cb82fc0365ab7bc9270a3cf7a03c3dc /malloc/hooks.c
parent41b81892f11fe1353123e892158b53de73863d62 (diff)
downloadglibc-3b49edc04bae4ba33b0a3f1a402ba0ae2352766c.tar.gz
glibc-3b49edc04bae4ba33b0a3f1a402ba0ae2352766c.tar.xz
glibc-3b49edc04bae4ba33b0a3f1a402ba0ae2352766c.zip
Cleanups of malloc
Remove ugly names and unnecessary wrappers.
Diffstat (limited to 'malloc/hooks.c')
-rw-r--r--malloc/hooks.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/malloc/hooks.c b/malloc/hooks.c
index e38644d35c..2414d7dda8 100644
--- a/malloc/hooks.c
+++ b/malloc/hooks.c
@@ -30,7 +30,7 @@ malloc_hook_ini(size_t sz, const __malloc_ptr_t caller)
 {
   __malloc_hook = NULL;
   ptmalloc_init();
-  return public_mALLOc(sz);
+  return __libc_malloc(sz);
 }
 
 static void*
@@ -39,7 +39,7 @@ realloc_hook_ini(void* ptr, size_t sz, const __malloc_ptr_t caller)
   __malloc_hook = NULL;
   __realloc_hook = NULL;
   ptmalloc_init();
-  return public_rEALLOc(ptr, sz);
+  return __libc_realloc(ptr, sz);
 }
 
 static void*
@@ -47,7 +47,7 @@ memalign_hook_ini(size_t alignment, size_t sz, const __malloc_ptr_t caller)
 {
   __memalign_hook = NULL;
   ptmalloc_init();
-  return public_mEMALIGn(alignment, sz);
+  return __libc_memalign(alignment, sz);
 }
 
 /* Whether we are using malloc checking.  */
@@ -389,13 +389,13 @@ struct malloc_save_state {
 };
 
 void*
-public_gET_STATe(void)
+__malloc_get_state(void)
 {
   struct malloc_save_state* ms;
   int i;
   mbinptr b;
 
-  ms = (struct malloc_save_state*)public_mALLOc(sizeof(*ms));
+  ms = (struct malloc_save_state*)__libc_malloc(sizeof(*ms));
   if (!ms)
     return 0;
   (void)mutex_lock(&main_arena.mutex);
@@ -440,7 +440,7 @@ public_gET_STATe(void)
 }
 
 int
-public_sET_STATe(void* msptr)
+__malloc_set_state(void* msptr)
 {
   struct malloc_save_state* ms = (struct malloc_save_state*)msptr;
   size_t i;