view vmalloc.h @ 52:f59cfa31a579

fixed up probes just a bit
author Me
date Sat, 30 Oct 2010 21:53:55 -0700
parents
children 42dd44df1bb0
line source
1 /*
2 * Copyright 2009 OpenSourceCodeStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 *
5 * Author: seanhalle@yahoo.com
6 *
7 * Created on November 14, 2009, 9:07 PM
8 */
10 #include <malloc.h>
11 #include "VMS_primitive_data_types.h"
13 typedef struct _MallocProlog MallocProlog;
15 struct _MallocProlog
16 {
17 MallocProlog *nextChunkInFreeList;
18 MallocProlog *prevChunkInFreeList;
19 MallocProlog *nextHigherInMem;
20 MallocProlog *nextLowerInMem;
21 };
22 //MallocProlog
24 typedef struct
25 {
26 MallocProlog *firstChunkInFreeList;
27 int32 numInList;
28 }
29 FreeListHead;
31 void *
32 VMS__malloc( int32 sizeRequested );
34 void
35 VMS__free( void *ptrToFree );
37 MallocProlog *
38 VMS__create_free_list();
40 void
41 VMS_ext__free_free_list( MallocProlog *freeListHead );