188 lines
3.5 KiB
C
Executable File
188 lines
3.5 KiB
C
Executable File
#ifndef h_MLOG
|
|
#define h_MLOG
|
|
/******************************************************************************
|
|
*
|
|
* UniVerse replacement for standard UNIX memory managment functions
|
|
*
|
|
* Module %M% Version %I% Date %H%
|
|
*
|
|
* (c) Copyright 1998 Ardent Software Inc. - All Rights Reserved
|
|
* This is unpublished proprietary source code of Ardent Software, Inc.
|
|
* The copyright notice above does not evidence any actual or intented
|
|
* publication of such source code.
|
|
*
|
|
*******************************************************************************
|
|
*
|
|
* Maintenence log - insert most recent change descriptions at top
|
|
*
|
|
* Date.... GTAR# WHO Description.........................................
|
|
* 10/14/98 23801 SAP Change copyrights.
|
|
* 01/11/92 9075 PHH Improved Malloc Tracing & Logging
|
|
*
|
|
*****************************************************************************/
|
|
|
|
#define MLOG_INIT 0
|
|
#define MLOG_KERNEL 1
|
|
|
|
#define MLOG_MREQUEST 2
|
|
#define MLOG_MRETURN 3
|
|
#define MLOG_FREQUEST 4
|
|
#define MLOG_FRETURN 5
|
|
#define MLOG_FZERO 6
|
|
#define MLOG_FERROR 7
|
|
|
|
#define MLOG_ADD 8
|
|
#define MLOG_DEL 9
|
|
#define MLOG_FWDCOAL 10
|
|
#define MLOG_BCKCOAL 11
|
|
#define MLOG_SPLIT 12
|
|
|
|
#define MLOG_RREQUEST 13
|
|
#define MLOG_RRETURN 14
|
|
#define MLOG_RQBOK 15
|
|
#define MLOG_RQMALLOC 16
|
|
#define MLOG_RZMALLOC 17
|
|
#define MLOG_RFREE 18
|
|
#define MLOG_ROK 19
|
|
#define MLOG_RBACK 20
|
|
#define MLOG_RMALLOC 21
|
|
#define MLOG_GENTER 22
|
|
#define MLOG_GRETURN 23
|
|
#define MLOG_GFIND 24
|
|
#define MLOG_GMAKE 25
|
|
|
|
#define MLOG_QRETURN 27
|
|
#define MLOG_QFREE 28
|
|
|
|
typedef struct
|
|
{
|
|
char type;
|
|
union
|
|
{ int x[3];
|
|
|
|
struct
|
|
{ char *frtloc;
|
|
char *nil;
|
|
} t_init;
|
|
|
|
struct
|
|
{ char *nxtloc;
|
|
char *lstloc;
|
|
} t_kernel;
|
|
|
|
struct
|
|
{ uint size;
|
|
} t_mrequest;
|
|
|
|
struct
|
|
{ uint size;
|
|
char *ptr;
|
|
} t_mreturn;
|
|
|
|
struct
|
|
{ char *ptr;
|
|
int size;
|
|
} t_frequest;
|
|
|
|
struct
|
|
{ int size;
|
|
int coal;
|
|
} t_freturn;
|
|
|
|
struct
|
|
{ char *ptr;
|
|
int size;
|
|
} t_add;
|
|
|
|
struct
|
|
{ char *ptr;
|
|
int size;
|
|
} t_del;
|
|
|
|
struct
|
|
{ uint count;
|
|
uint size;
|
|
uint orig;
|
|
} t_fwdcoal;
|
|
|
|
struct
|
|
{ uint size;
|
|
uint orig;
|
|
} t_bckcoal;
|
|
|
|
struct
|
|
{ char *ptr;
|
|
uint newsize;
|
|
uint oldsize;
|
|
} t_split;
|
|
|
|
struct
|
|
{ char *ptr;
|
|
uint size;
|
|
} t_rrequest;
|
|
|
|
struct
|
|
{ char *ptr;
|
|
uint size;
|
|
int copy;
|
|
} t_rreturn;
|
|
|
|
struct
|
|
{ uint size;
|
|
} t_rqbok;
|
|
|
|
struct
|
|
{ uint osize;
|
|
uint nsize;
|
|
} t_rok;
|
|
|
|
|
|
struct
|
|
{ char *ptr;
|
|
uint size;
|
|
uint slot;
|
|
} t_qreturn;
|
|
|
|
struct
|
|
{ char *ptr;
|
|
uint size;
|
|
uint slot;
|
|
} t_qfree;
|
|
|
|
struct
|
|
{ uint size;
|
|
} t_gfind;
|
|
|
|
struct
|
|
{ uint size;
|
|
} t_gmake;
|
|
|
|
} data;
|
|
} MLOG;
|
|
|
|
#define ML_INIT data.t_init
|
|
#define ML_KERNEL data.t_kernel
|
|
#define ML_MREQUEST data.t_mrequest
|
|
#define ML_MRETURN data.t_mreturn
|
|
#define ML_FREQUEST data.t_frequest
|
|
#define ML_FRETURN data.t_freturn
|
|
#define ML_FERROR data.t_freturn
|
|
#define ML_ADD data.t_add
|
|
#define ML_DEL data.t_del
|
|
#define ML_FWDCOAL data.t_fwdcoal
|
|
#define ML_BCKCOAL data.t_bckcoal
|
|
#define ML_SPLIT data.t_split
|
|
#define ML_RREQUEST data.t_rrequest
|
|
#define ML_RRETURN data.t_rreturn
|
|
#define ML_RQBOK data.t_rqbok
|
|
#define ML_RFREE data.t_rqbok
|
|
#define ML_ROK data.t_rok
|
|
#define ML_RBACK data.t_rok
|
|
#define ML_RMALLOC data.t_rok
|
|
#define ML_QRETURN data.t_qreturn
|
|
#define ML_QFREE data.t_qfree
|
|
#define ML_GFIND data.t_gfind
|
|
#define ML_GMAKE data.t_gmake
|
|
|
|
#endif /* end of ML.h */
|