4.104.114.84.95
Rev | Line | |
---|
[b584751] | 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 | * |
---|
[60b791ad] | 9 | * COPYRIGHT (c) 1989-1998. 1997. |
---|
[b584751] | 10 | * On-Line Applications Research Corporation (OAR). |
---|
[03f2154e] | 11 | * Copyright assigned to U.S. Government, 1994. |
---|
[b584751] | 12 | * |
---|
[98e4ebf5] | 13 | * The license and distribution terms for this file may be |
---|
| 14 | * found in the file LICENSE in this distribution or at |
---|
[03f2154e] | 15 | * http://www.OARcorp.com/rtems/license.html. |
---|
[b584751] | 16 | * |
---|
| 17 | * $Id$ |
---|
| 18 | */ |
---|
| 19 | |
---|
| 20 | #include <rtems.h> |
---|
| 21 | |
---|
| 22 | #include <signal.h> |
---|
| 23 | #include <errno.h> |
---|
| 24 | #include <sys/types.h> |
---|
| 25 | #include <unistd.h> |
---|
| 26 | |
---|
| 27 | void * sbrk(size_t incr) |
---|
| 28 | { |
---|
| 29 | errno = ENOMEM; |
---|
| 30 | return (void *)-1; |
---|
| 31 | } |
---|
| 32 | |
---|
Note: See
TracBrowser
for help on using the repository browser.