4.104.114.84.95
Line | |
---|
1 | /* |
---|
2 | * RTEMS "Broken" __brk/__sbrk Implementation |
---|
3 | * |
---|
4 | * NOTE: sbrk is BSP provided. |
---|
5 | * |
---|
6 | * |
---|
7 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
8 | * On-Line Applications Research Corporation (OAR). |
---|
9 | * All rights assigned to U.S. Government, 1994. |
---|
10 | * |
---|
11 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
12 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
13 | * notice must appear in all copies of this file and its derivatives. |
---|
14 | * |
---|
15 | * $Id$ |
---|
16 | */ |
---|
17 | |
---|
18 | #include <rtems.h> |
---|
19 | |
---|
20 | #include <signal.h> |
---|
21 | #include <errno.h> |
---|
22 | #include <sys/types.h> |
---|
23 | #ifdef RTEMS_NEWLIB |
---|
24 | #include <reent.h> |
---|
25 | #endif |
---|
26 | #include <unistd.h> |
---|
27 | |
---|
28 | /* we use RTEMS for memory management. We don't need sbrk */ |
---|
29 | |
---|
30 | void * __sbrk(int incr) |
---|
31 | { |
---|
32 | errno = EINVAL; |
---|
33 | return (void *)0; |
---|
34 | } |
---|
35 | |
---|
36 | int __brk( const void *endds ) |
---|
37 | { |
---|
38 | errno = EINVAL; |
---|
39 | return -1; |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.