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

4.104.114.84.95
Last change on this file since 08b5f55 was 670b2edf, checked in by Joel Sherrill <joel.sherrill@…>, on 03/20/98 at 19:08:26

Fixed typo.

  • Property mode set to 100644
File size: 739 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-1998.
10 *  On-Line Applications Research Corporation (OAR).
11 *  Copyright assigned to U.S. Government, 1994.
12 *
13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
15 *  http://www.OARcorp.com/rtems/license.html.
16 *
17 *  $Id$
18 */
19
20#include <rtems.h>
21
22#include <signal.h>
23#include <errno.h>
24#include <sys/types.h>
25#include <unistd.h>
26
27void * sbrk(size_t incr)
28{
29  errno = ENOMEM;
30  return (void *)-1;
31}
32
Note: See TracBrowser for help on using the repository browser.