source: rtems/c/src/lib/libbsp/shared/sbrk.c @ c34f94f7

4.115
Last change on this file since c34f94f7 was c499856, checked in by Chris Johns <chrisj@…>, on 03/20/14 at 21:10:47

Change all references of rtems.com to rtems.org.

  • Property mode set to 100644
File size: 675 bytes
Line 
1/*
2 *  sbrk.c
3 *
4 *  If the BSP wants to dynamically allocate the memory for the
5 *  C Library heap (malloc) and/or be able to extend the heap,
6 *  then this routine must be functional.  This is the default
7 *  implementation which raises an error.
8 *
9 *  COPYRIGHT (c) 1989-1999.
10 *  On-Line Applications Research Corporation (OAR).
11 *
12 *  The license and distribution terms for this file may be
13 *  found in the file LICENSE in this distribution or at
14 *  http://www.rtems.org/license/LICENSE.
15 */
16
17#include <rtems.h>
18
19#include <signal.h>
20#include <errno.h>
21#include <sys/types.h>
22#include <unistd.h>
23
24void * sbrk(ptrdiff_t incr)
25{
26  errno = ENOMEM;
27  return (void *)-1;
28}
Note: See TracBrowser for help on using the repository browser.