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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [shared/] [sbrk.c] - Blame information for rev 773

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

Line No. Rev Author Line
1 30 unneback
/*
2
 *  sbrk.c
3
 *
4
 *  If the BSP wants to dynamically allocate the memory for the
5
 *  C Library heap (malloc) and/or be able to extend the heap,
6
 *  then this routine must be functional.  This is the default
7
 *  implementation which raises an error.
8
 *
9
 *  COPYRIGHT (c) 1989-1999.
10
 *  On-Line Applications Research Corporation (OAR).
11
 *
12
 *  The license and distribution terms for this file may be
13
 *  found in the file LICENSE in this distribution or at
14
 *  http://www.OARcorp.com/rtems/license.html.
15
 *
16
 *  $Id: sbrk.c,v 1.2 2001-09-27 12:01:12 chris Exp $
17
 */
18
 
19
#include <rtems.h>
20
 
21
#include <signal.h>
22
#include <errno.h>
23
#include <sys/types.h>
24
#include <unistd.h>
25
 
26
void * sbrk(size_t incr)
27
{
28
  errno = ENOMEM;
29
  return (void *)-1;
30
}
31
 

powered by: WebSVN 2.1.0

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