diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-30 08:07:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-30 08:07:51 +0000 |
commit | d3290b09fb926897995def06733b22d468cc84eb (patch) | |
tree | 2f45973640794d36644e7928b2768bc2a8c9da20 /malloc | |
parent | 20792f9946b2ef0c9e6b75f4243d4404850ecd38 (diff) | |
download | glibc-d3290b09fb926897995def06733b22d468cc84eb.tar.gz |
(mEMALIGn): Define alias __memalign_internal. (__posix_memalign): Use __memalign_internal instead of memalign.
Diffstat (limited to 'malloc')
-rw-r--r-- | malloc/malloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/malloc/malloc.c b/malloc/malloc.c index 4d1773a3b8..0586a0cb7f 100644 --- a/malloc/malloc.c +++ b/malloc/malloc.c @@ -1,5 +1,5 @@ -/* Malloc implementation for multiple threads without lock contention. - Copyright (C) 1996,1997,1998,1999,2000,01,02 Free Software Foundation, Inc. + /* Malloc implementation for multiple threads without lock contention. + Copyright (C) 1996-2002, 2003 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Wolfram Gloger <wg@malloc.de> and Doug Lea <dl@cs.oswego.edu>, 2001. @@ -3474,6 +3474,7 @@ public_mEMALIGn(size_t alignment, size_t bytes) ar_ptr == arena_for_chunk(mem2chunk(p))); return p; } +strong_alias (public_mEMALIGn, __memalign_internal) Void_t* public_vALLOc(size_t bytes) @@ -5353,7 +5354,7 @@ __posix_memalign (void **memptr, size_t alignment, size_t size) if (alignment % sizeof (void *) != 0 || !powerof2 (alignment) != 0) return EINVAL; - mem = __libc_memalign (alignment, size); + mem = __memalign_internal (alignment, size); if (mem != NULL) { *memptr = mem; |