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

4.104.114.84.95
Last change on this file since 670b2edf was 670b2edf, checked in by Joel Sherrill <joel.sherrill@…>, on Mar 20, 1998 at 7:08:26 PM

Fixed typo.

  • Property mode set to 100644
File size: 739 bytes
RevLine 
[b584751]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 *
[670b2edf]9 *  COPYRIGHT (c) 1989-1998.
[b584751]10 *  On-Line Applications Research Corporation (OAR).
[03f2154e]11 *  Copyright assigned to U.S. Government, 1994.
[b584751]12 *
[98e4ebf]13 *  The license and distribution terms for this file may be
14 *  found in the file LICENSE in this distribution or at
[03f2154e]15 *  http://www.OARcorp.com/rtems/license.html.
[b584751]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.