source: rtems/c/src/lib/libbsp/i386/pc386/startup/sbrk.c @ ba2d45e6

4.104.114.84.95
Last change on this file since ba2d45e6 was 7150f00f, checked in by Joel Sherrill <joel.sherrill@…>, on 12/01/97 at 22:06:48

Inclusion of PC386 BSP submitted by Pedro Miguel Da Cruz Neto Romano
<pmcnr@…> and Jose Rufino <ruf@…>
of NavIST (http://pandora.ist.utl.pt/).

  • Property mode set to 100644
File size: 2.3 KB
Line 
1/*-------------------------------------------------------------------------+
2| sbrk.c v1.1 - PC386 BSP - 1997/08/07
3+--------------------------------------------------------------------------+
4| If the BSP wants to dynamically allocate the memory for the C Library heap
5| (malloc) and/or be able to extend the heap, then this routine must be
6| functional. RTEMS newlib suppport has an implementation of malloc using
7| RTEMS regions => the user can do mallocs.
8+--------------------------------------------------------------------------+
9| (C) Copyright 1997 -
10| - NavIST Group - Real-Time Distributed Systems and Industrial Automation
11|
12| http://pandora.ist.utl.pt
13|
14| Instituto Superior Tecnico * Lisboa * PORTUGAL
15+--------------------------------------------------------------------------+
16| Disclaimer:
17|
18| This file is provided "AS IS" without warranty of any kind, either
19| expressed or implied.
20+--------------------------------------------------------------------------+
21| This code is based on:
22|   sbrk.c,v 1.2 1995/12/19 20:07:38 joel Exp - go32 BSP
23| With the following copyright notice:
24| **************************************************************************
25| * COPYRIGHT (c) 1989, 1990, 1991, 1992, 1993, 1994.                      *
26| * On-Line Applications Research Corporation (OAR).                       *
27| * All rights assigned to U.S. Government, 1994.                          *
28| *                                                                        *
29| * This material may be reproduced by or for the U.S. Government pursuant *
30| * to the copyright license under the clause at DFARS 252.227-7013.  This *
31| * notice must appear in all copies of this file and its derivatives.     *
32| **************************************************************************
33+--------------------------------------------------------------------------*/
34
35
36#include <errno.h>
37#include <sys/types.h>
38
39/*-------------------------------------------------------------------------+
40|         Function: sbrk
41|      Description: Stub for sbrk.
42| Global Variables: None.
43|        Arguments: Not relevant.
44|          Returns: Not relevant.
45+--------------------------------------------------------------------------*/
46void *sbrk(size_t incr)
47{
48  errno = EINVAL;
49  return (void *)NULL;
50} /* sbrk */
Note: See TracBrowser for help on using the repository browser.