source: rtems/c/src/lib/libbsp/shared/sbrk.c @ a77cd066

4.104.114.84.95
Last change on this file since a77cd066 was 7050ec70, checked in by Joel Sherrill <joel.sherrill@…>, on 09/04/03 at 18:52:52

2003-09-04 Joel Sherrill <joel@…>

  • bootcard.c, bspclean.c, clockdrv_shell.c, console-polled.c, console.c, ide_ctrl.c, main.c, sbrk.c, setvec.c, tod.c, tod.h, include/coverhd.h: URL for license changed.
  • Property mode set to 100644
File size: 688 bytes
Line 
1/*
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.rtems.com/license/LICENSE.
15 *
16 *  $Id$
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
26void * sbrk(ptrdiff_t incr)
27{
28  errno = ENOMEM;
29  return (void *)-1;
30}
31
Note: See TracBrowser for help on using the repository browser.