Mercurial > cgi-bin > hgwebdir.cgi > VMS > VMS_Implementations > VMS_impls > VMS__MC_shared_impl
view vmalloc.h @ 146:a49f02980151
fixed: hist index error, zero devision
| author | Merten Sach <msach@mailbox.tu-berlin.de> |
|---|---|
| date | Thu, 12 May 2011 14:23:41 +0200 |
| parents | 13b22ffb8a2f |
| children | c11b9dcf6d24 |
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 #ifndef _VMALLOC_H
11 #define _VMALLOC_H
13 #include <malloc.h>
14 #include "VMS_primitive_data_types.h"
16 typedef struct _MallocProlog MallocProlog;
18 struct _MallocProlog
19 {
20 MallocProlog *nextChunkInFreeList;
21 MallocProlog *prevChunkInFreeList;
22 MallocProlog *nextHigherInMem;
23 MallocProlog *nextLowerInMem;
24 };
25 //MallocProlog
27 typedef struct
28 {
29 MallocProlog *firstChunkInFreeList;
30 int32 numInList;
31 }
32 FreeListHead;
34 void *
35 VMS__malloc( int32 sizeRequested );
37 void
38 VMS__free( void *ptrToFree );
40 /*Allocates memory from the external system -- higher overhead
41 */
42 void *
43 VMS__malloc_in_ext( int32 sizeRequested );
45 /*Frees memory that was allocated in the external system -- higher overhead
46 */
47 void
48 VMS__free_in_ext( void *ptrToFree );
51 MallocProlog *
52 VMS_ext__create_free_list();
54 void
55 VMS_ext__free_free_list( MallocProlog *freeListHead );
57 #endif
