source: rtems/c/src/exec/libcsupport/src/__brk.c @ 4ca27cf

4.104.114.84.95
Last change on this file since 4ca27cf was 88d594a, checked in by Joel Sherrill <joel.sherrill@…>, on 05/24/95 at 21:39:42

Fully tested on all in-house targets

  • Property mode set to 100644
File size: 906 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 *  __brk.c,v 1.2 1995/05/09 20:24:28 joel Exp
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
32void * __sbrk(int incr)
33{
34  errno = EINVAL;
35  return (void *)0;
36}
37
38int __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.