source: rtems/c/src/lib/libc/__brk.c @ c3a0358

4.104.114.84.95
Last change on this file since c3a0358 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: 785 bytes
Line 
1#if !defined(RTEMS_UNIX)
2
3/*
4 *  RTEMS "Broken" __brk/__sbrk Implementation
5 *
6 *  NOTE: sbrk is BSP provided.
7 *
8 *
9 *  COPYRIGHT (c) 1989-1997.
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#ifdef RTEMS_NEWLIB
26#include <reent.h>
27#endif
28#include <unistd.h>
29
30/* we use RTEMS for memory management.  We don't need sbrk */
31
32void * __sbrk(int incr)
33{
34  errno = EINVAL;
35  return (void *)0;
36}
37
38int __brk( const void *endds )
39{
40  errno = EINVAL;
41  return -1;
42}
43
44#endif
Note: See TracBrowser for help on using the repository browser.