aboutsummaryrefslogtreecommitdiff
path: root/malloc/arena.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2004-09-08 08:12:39 +0000
committerUlrich Drepper <drepper@redhat.com>2004-09-08 08:12:39 +0000
commit06d6611aacdfcbc0bea3033b59b6bb2e35491fef (patch)
treec3aa81b51a11f7129fae9753fd6fe065d725fb58 /malloc/arena.c
parent590b40f7ec801ea1b4be47112a016ed369041e64 (diff)
downloadglibc-06d6611aacdfcbc0bea3033b59b6bb2e35491fef.tar
glibc-06d6611aacdfcbc0bea3033b59b6bb2e35491fef.tar.gz
glibc-06d6611aacdfcbc0bea3033b59b6bb2e35491fef.tar.bz2
glibc-06d6611aacdfcbc0bea3033b59b6bb2e35491fef.zip
Update.
2004-09-08 Ulrich Drepper <drepper@redhat.com> * malloc/arena.c: Remove __MALLOC_P uses. * malloc/malloc.c: Likewise. * malloc/mtrace.c: Remove __P uses. * malloc/mcheck-init.c: Likewise.
Diffstat (limited to 'malloc/arena.c')
-rw-r--r--malloc/arena.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/malloc/arena.c b/malloc/arena.c
index fb7b92f318..16574e1f7d 100644
--- a/malloc/arena.c
+++ b/malloc/arena.c
@@ -1,5 +1,5 @@
/* Malloc implementation for multiple threads without lock contention.
- Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Wolfram Gloger <wg@malloc.de>, 2001.
@@ -134,15 +134,14 @@ int __malloc_initialized = -1;
/* atfork support. */
-static __malloc_ptr_t (*save_malloc_hook) __MALLOC_P ((size_t __size,
- __const __malloc_ptr_t));
+static __malloc_ptr_t (*save_malloc_hook) (size_t __size,
+ __const __malloc_ptr_t);
# if !defined _LIBC || !defined USE_TLS || (defined SHARED && !USE___THREAD)
-static __malloc_ptr_t (*save_memalign_hook) __MALLOC_P ((size_t __align,
- size_t __size,
- __const __malloc_ptr_t));
+static __malloc_ptr_t (*save_memalign_hook) (size_t __align, size_t __size,
+ __const __malloc_ptr_t);
# endif
-static void (*save_free_hook) __MALLOC_P ((__malloc_ptr_t __ptr,
- __const __malloc_ptr_t));
+static void (*save_free_hook) (__malloc_ptr_t __ptr,
+ __const __malloc_ptr_t);
static Void_t* save_arena;
/* Magic value for the thread-specific arena pointer when
@@ -216,7 +215,7 @@ free_atfork(Void_t* mem, const Void_t *caller)
malloc/free internally (e.g. in LinuxThreads). */
static void
-ptmalloc_lock_all __MALLOC_P((void))
+ptmalloc_lock_all (void)
{
mstate ar_ptr;
@@ -238,7 +237,7 @@ ptmalloc_lock_all __MALLOC_P((void))
}
static void
-ptmalloc_unlock_all __MALLOC_P((void))
+ptmalloc_unlock_all (void)
{
mstate ar_ptr;
@@ -263,7 +262,7 @@ ptmalloc_unlock_all __MALLOC_P((void))
installed for the child. */
static void
-ptmalloc_unlock_all2 __MALLOC_P((void))
+ptmalloc_unlock_all2 (void)
{
mstate ar_ptr;
@@ -329,7 +328,7 @@ next_env_entry (char ***position)
/* Set up basic state so that _int_malloc et al can work. */
static void
-ptmalloc_init_minimal __MALLOC_P((void))
+ptmalloc_init_minimal (void)
{
#if DEFAULT_TOP_PAD != 0
mp_.top_pad = DEFAULT_TOP_PAD;
@@ -373,7 +372,7 @@ __libc_malloc_pthread_startup (bool first_time)
#endif
static void
-ptmalloc_init __MALLOC_P((void))
+ptmalloc_init (void)
{
#if __STD_C
const char* s;