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

4.104.114.84.95
Last change on this file since fc56b90c was 98e4ebf5, checked in by Joel Sherrill <joel.sherrill@…>, on 10/08/97 at 15:45:54

Fixed typo in the pointer to the license terms.

  • Property mode set to 100644
File size: 745 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 *
[03f2154e]9 *  COPYRIGHT (c) 1989-1997. 1997.
[b584751]10 *  On-Line Applications Research Corporation (OAR).
[03f2154e]11 *  Copyright assigned to U.S. Government, 1994.
[b584751]12 *
[98e4ebf5]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.