Main Page | Class List | File List | Class Members | File Members | Related Pages

override_example.c File Reference

#include <CoreServices/CoreServices.h>
#include "mach_override.h"

Go to the source code of this file.

Typedefs

typedef int(* OriginalFunctionPtrType )(int)
typedef void *(* mallocFunctionPtrType )(size_t)

Functions

int original (int input)
int override (int input)
void * myMalloc (size_t size)
int main (int argc, const char *argv[])

Variables

OriginalFunctionPtrType gOriginalReentry
mallocFunctionPtrType gMalloc


Typedef Documentation

typedef void*(* mallocFunctionPtrType)( size_t )
 

Definition at line 12 of file override_example.c.

typedef int(* OriginalFunctionPtrType)( int )
 

Definition at line 10 of file override_example.c.


Function Documentation

int main int  argc,
const char *  argv[]
 

Definition at line 15 of file override_example.c.

References gMalloc, gOriginalReentry, mach_override(), myMalloc(), original(), and override().

void * myMalloc size_t  size  ) 
 

Definition at line 65 of file override_example.c.

References gMalloc.

Referenced by main().

int original int  input  ) 
 

Definition at line 48 of file override_example.c.

Referenced by main().

int override int  input  ) 
 

Definition at line 56 of file override_example.c.

References gOriginalReentry.

Referenced by main().


Variable Documentation

mallocFunctionPtrType gMalloc
 

Definition at line 13 of file override_example.c.

Referenced by main(), and myMalloc().

OriginalFunctionPtrType gOriginalReentry
 

Definition at line 11 of file override_example.c.

Referenced by main(), and override().


Generated on Sun Jun 12 22:09:34 2005 for mach_override by doxygen 1.3.4