aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/syscalls/syssbrk.c
blob: 79b876321cbb0ba93a13043fcffb6df736e9f297 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* connector for sbrk */

#include <reent.h>
#include <unistd.h>

extern void *_sbrk_r (struct _reent *, ptrdiff_t);
extern void *_sbrk (ptrdiff_t);

void *
sbrk (ptrdiff_t incr)
{
  return _sbrk_r (_REENT, incr);
}