OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [syscalls/] [syssbrk.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 39 lampret
/* connector for sbrk */
2
 
3
#include <reent.h>
4
#include <unistd.h>
5
 
6
extern void *_sbrk_r (struct _reent *, size_t);
7
extern void *_sbrk (size_t);
8
 
9
void *
10
sbrk (incr)
11
     size_t incr;
12
{
13
#ifdef REENTRANT_SYSCALLS_PROVIDED
14
  return _sbrk_r (_REENT, incr);
15
#else
16
  return _sbrk (incr);
17
#endif
18
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.