|
|
1.1 ! root 1: /*** ! 2: *malloc.h - declarations and definitions for memory allocation functions ! 3: * ! 4: * Copyright (c) 1985-1990, Microsoft Corporation. All rights reserved. ! 5: * ! 6: *Purpose: ! 7: * Contains the function declarations for memory allocation functions; ! 8: * also defines manifest constants and types used by the heap routines. ! 9: * [System V] ! 10: * ! 11: ****/ ! 12: ! 13: ! 14: #define _HEAPEMPTY (-1) ! 15: #define _HEAPOK (-2) ! 16: #define _HEAPBADBEGIN (-3) ! 17: #define _HEAPBADNODE (-4) ! 18: #define _HEAPEND (-5) ! 19: #define _HEAPBADPTR (-6) ! 20: #define _FREEENTRY 0 ! 21: #define _USEDENTRY 1 ! 22: ! 23: /* Define _HEAP_MAXREQ to be equal to (unsigned)( -sizeof(_heap_seg_desc) ! 24: * - 2*sizeof(int) ) */ ! 25: ! 26: #define _HEAP_MAXREQ 0xFFFFFFD8 ! 27: ! 28: ! 29: #ifndef _SIZE_T_DEFINED ! 30: typedef unsigned int size_t; ! 31: #define _SIZE_T_DEFINED ! 32: #endif ! 33: ! 34: ! 35: #ifndef _HEAPINFO_DEFINED ! 36: typedef struct _heapinfo { ! 37: int * _pentry; ! 38: size_t _size; ! 39: int _useflag; ! 40: } _HEAPINFO; ! 41: #define _HEAPINFO_DEFINED ! 42: #endif ! 43: ! 44: ! 45: /* external variable declarations */ ! 46: ! 47: extern unsigned int _cdecl _amblksiz; ! 48: ! 49: ! 50: /* function prototypes */ ! 51: ! 52: void * _cdecl alloca(size_t); ! 53: void * _cdecl calloc(size_t, size_t); ! 54: void * _cdecl _expand(void *, size_t); ! 55: void _cdecl free(void *); ! 56: int _cdecl _heapadd(void *, size_t); ! 57: int _cdecl _heapchk(void); ! 58: int _cdecl _heapmin(void); ! 59: int _cdecl _heapset(unsigned int); ! 60: int _cdecl _heapwalk(_HEAPINFO *); ! 61: void * _cdecl malloc(size_t); ! 62: size_t _cdecl _msize(void *); ! 63: void * _cdecl realloc(void *, size_t); ! 64: size_t _cdecl stackavail(void);
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.