Tomato 1.26
[tomato.git] / release / src / router / matrixssl / src / os / psMalloc.h
blob3ba4bec52fcad5c9a8a6ea4d8e3fd76502748c12
1 /*
2 * psMalloc.h
3 * Release $Name: MATRIXSSL_1_8_8_OPEN $
4 *
5 * Header for psMalloc functions
6 */
7 /*
8 * Copyright (c) PeerSec Networks, 2002-2009. All Rights Reserved.
9 * The latest version of this code is available at http://www.matrixssl.org
11 * This software is open source; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
16 * This General Public License does NOT permit incorporating this software
17 * into proprietary programs. If you are unable to comply with the GPL, a
18 * commercial license for this software may be purchased from PeerSec Networks
19 * at http://www.peersec.com
21 * This program is distributed in WITHOUT ANY WARRANTY; without even the
22 * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23 * See the GNU General Public License for more details.
25 * You should have received a copy of the GNU General Public License
26 * along with this program; if not, write to the Free Software
27 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
28 * http://www.gnu.org/copyleft/gpl.html
30 /******************************************************************************/
32 #ifndef _h_PS_MALLOC
33 #define _h_PS_MALLOC
35 #define PEERSEC_BASE_POOL 0
36 #define PEERSEC_NO_POOL (void *)0x00001
38 /******************************************************************************/
40 Because a set of public APIs are exposed here there is a dependence on
41 the package. The config layer header must be parsed to determine what
42 defines are configured
44 #include "../../matrixCommon.h"
47 Native memory routines
49 #define MAX_MEMORY_USAGE 0
50 #define psOpenMalloc(A) 0
51 #define psCloseMalloc()
52 #define psMalloc(A, B) malloc(B)
53 #define psCalloc(A, B, C) calloc(B, C)
54 #define psRealloc realloc
55 #define psFree free
56 #define psMemset memset
57 #define psMemcpy memcpy
58 typedef int32 psPool_t;
60 #endif /* _h_PS_MALLOC */