2002-11-13 09:20:31 +08:00
|
|
|
#ifndef MALLOC_PROVIDED
|
2000-02-18 03:39:52 +08:00
|
|
|
/* malign.c -- a wrapper for memalign_r. */
|
|
|
|
|
|
|
|
#include <_ansi.h>
|
|
|
|
#include <reent.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <malloc.h>
|
|
|
|
|
|
|
|
#ifndef _REENT_ONLY
|
|
|
|
|
2017-12-04 10:53:22 +08:00
|
|
|
void *
|
2000-02-18 03:39:52 +08:00
|
|
|
_DEFUN (memalign, (align, nbytes),
|
2017-12-04 09:31:41 +08:00
|
|
|
size_t align,
|
2000-02-18 03:39:52 +08:00
|
|
|
size_t nbytes)
|
|
|
|
{
|
|
|
|
return _memalign_r (_REENT, align, nbytes);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
2002-11-13 09:20:31 +08:00
|
|
|
#endif
|