source: rtems/cpukit/libcsupport/src/__brk.c @ ac7d5ef0

4.104.114.84.95
Last change on this file since ac7d5ef0 was ac7d5ef0, checked in by Joel Sherrill <joel.sherrill@…>, on 05/11/95 at 17:39:37

Initial revision

  • Property mode set to 100644
File size: 834 bytes
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
30void * __sbrk(int incr)
31{
32  errno = EINVAL;
33  return (void *)0;
34}
35
36int __brk( const void *endds )
37{
38  errno = EINVAL;
39  return -1;
40}
Note: See TracBrowser for help on using the repository browser.