repo.or.cz
/
newlib-cygwin.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git]
/
newlib
/
libc
/
stdlib
/
malign.c
blob
480060c433e945c99fc0ce6a4b9d1e14e7116081
1
#ifndef MALLOC_PROVIDED
2
/* malign.c -- a wrapper for memalign_r. */
3
4
#include <_ansi.h>
5
#include <reent.h>
6
#include <stdlib.h>
7
#include <malloc.h>
8
9
#ifndef _REENT_ONLY
10
11
void
*
12
memalign
(
size_t
align
,
13
size_t
nbytes
)
14
{
15
return
_memalign_r
(
_REENT
,
align
,
nbytes
);
16
}
17
18
#endif
19
#endif