OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [pc386/] [startup/] [sbrk.c] - Blame information for rev 389

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*-------------------------------------------------------------------------+
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-1999.
26
| *  On-Line Applications Research Corporation (OAR).
27
| *
28
| *  The license and distribution terms for this file may be
29
| *  found in found in the file LICENSE in this distribution or at
30
| *  http://www.OARcorp.com/rtems/license.html.
31
| **************************************************************************
32
|
33
|  $Id: sbrk.c,v 1.2 2001-09-27 11:59:48 chris Exp $
34
+--------------------------------------------------------------------------*/
35
 
36
 
37
#include <errno.h>
38
#include <sys/types.h>
39
 
40
/*-------------------------------------------------------------------------+
41
|         Function: sbrk
42
|      Description: Stub for sbrk.
43
| Global Variables: None.
44
|        Arguments: Not relevant.
45
|          Returns: Not relevant.
46
+--------------------------------------------------------------------------*/
47
void *sbrk(size_t incr)
48
{
49
  errno = EINVAL;
50
  return (void *)NULL;
51
} /* sbrk */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.