4.104.114.84.95
Last change
on this file since 0836603 was
3235ad9,
checked in by Joel Sherrill <joel.sherrill@…>, on 08/23/95 at 19:30:23
|
Support for variable length names added to Object Handler. This supports
both fixed length "raw" names and strings from the API's point of view.
Both inline and macro implementations were tested.
|
-
Property mode set to
100644
|
File size:
868 bytes
|
Line | |
---|
1 | #if !defined(RTEMS_UNIX) |
---|
2 | |
---|
3 | /* |
---|
4 | * RTEMS "Broken" __brk/__sbrk Implementation |
---|
5 | * |
---|
6 | * NOTE: sbrk is BSP provided. |
---|
7 | * |
---|
8 | * |
---|
9 | * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * All rights assigned to U.S. Government, 1994. |
---|
12 | * |
---|
13 | * This material may be reproduced by or for the U.S. Government pursuant |
---|
14 | * to the copyright license under the clause at DFARS 252.227-7013. This |
---|
15 | * notice must appear in all copies of this file and its derivatives. |
---|
16 | * |
---|
17 | * $Id$ |
---|
18 | */ |
---|
19 | |
---|
20 | #include <rtems.h> |
---|
21 | |
---|
22 | #include <signal.h> |
---|
23 | #include <errno.h> |
---|
24 | #include <sys/types.h> |
---|
25 | #ifdef RTEMS_NEWLIB |
---|
26 | #include <reent.h> |
---|
27 | #endif |
---|
28 | #include <unistd.h> |
---|
29 | |
---|
30 | /* we use RTEMS for memory management. We don't need sbrk */ |
---|
31 | |
---|
32 | void * __sbrk(int incr) |
---|
33 | { |
---|
34 | errno = EINVAL; |
---|
35 | return (void *)0; |
---|
36 | } |
---|
37 | |
---|
38 | int __brk( const void *endds ) |
---|
39 | { |
---|
40 | errno = EINVAL; |
---|
41 | return -1; |
---|
42 | } |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.