1
1

* need to expose posix_memalign so that the one in our ptmalloc2 is used

instead of the one in libc.  Thanks to Gleb Natapov for tracking this
  down.

This commit was SVN r8418.
Этот коммит содержится в:
Brian Barrett 2005-12-08 18:06:52 +00:00
родитель 66629c0974
Коммит 0348d02875

Просмотреть файл

@ -5501,12 +5501,13 @@ int mALLOPt(param_number, value) int param_number; int value;
*/
#ifdef _LIBC
/* OMPI: Need to expose our own posix_memalign, or the wrong one will
be used */
# include <sys/param.h>
/* We need a wrapper function for one of the additions of POSIX. */
int
__posix_memalign (void **memptr, size_t alignment, size_t size)
posix_memalign (void **memptr, size_t alignment, size_t size)
{
void *mem;
__malloc_ptr_t (*hook) __MALLOC_PMT ((size_t, size_t,
@ -5534,6 +5535,7 @@ __posix_memalign (void **memptr, size_t alignment, size_t size)
return ENOMEM;
}
#ifdef _LIBC
weak_alias (__posix_memalign, posix_memalign)
strong_alias (__libc_calloc, __calloc) weak_alias (__libc_calloc, calloc)