1 #ifndef MP_SBRK_H 2 #define MP_SBRK_H 3 4 5 /* 6 * mpatrol 7 * A library for controlling and tracing dynamic memory allocations. 8 * Copyright (C) 1997-2002 Graeme S. Roy <graeme.roy@analog.com> 9 * 10 * This library is free software; you can redistribute it and/or 11 * modify it under the terms of the GNU Library General Public 12 * License as published by the Free Software Foundation; either 13 * version 2 of the License, or (at your option) any later version. 14 * 15 * This library is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 18 * Library General Public License for more details. 19 * 20 * You should have received a copy of the GNU Library General Public 21 * License along with this library; if not, write to the Free 22 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 23 * MA 02111-1307, USA. 24 */ 25 26 27 /* 28 * Simulated UNIX heap. These functions allow manipulation of the size of a 29 * simulated heap and as a result can allocate or free memory from that heap. 30 */ 31 32 33 /* 34 * $Id: sbrk.h,v 1.7 2002/01/08 20:13:59 graeme Exp $ 35 */ 36 37 38 #include "config.h" 39 40 41 #ifdef __cplusplus 42 extern "C" 43 { 44 #endif /* __cplusplus */ 45 46 47 MP_API int brk(void *); 48 MP_API void *sbrk(long); 49 50 51 #ifdef __cplusplus 52 } 53 #endif /* __cplusplus */ 54 55 56 #endif /* MP_SBRK_H */ 57