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

4.104.114.84.95
Last change on this file since b584751 was b584751, checked in by Joel Sherrill <joel.sherrill@…>, on Apr 15, 1997 at 5:37:12 PM

Switched all bsps which had an implementation of sbrk.c which only
returned an error to using a single shared copy of this file.

  • Property mode set to 100644
File size: 828 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, 1990, 1991, 1992, 1993, 1994, 1997.
10 *  On-Line Applications Research Corporation (OAR).
11 *  All rights assigned to U.S. Government, 1994.
12 *
13 *  This material may be reproduced by or for the U.S. Government pursuant
14 *  to the copyright license under the clause at DFARS 252.227-7013.  This
15 *  notice must appear in all copies of this file and its derivatives.
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.