Fix FreeBSD fopen instrumentation.

* mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
__FreeBSD__ is defined.

From-SVN: r103368
This commit is contained in:
James E Wilson 2005-08-22 17:12:18 -07:00 committed by Jim Wilson
parent 7768a94a9a
commit 75389255ac
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2005-08-22 Jim Wilson <wilson@specifix.com>
* mf-hooks2.c (MF_REGISTER_fopen): Define to __MF_TYPE_STATIC when
__FreeBSD__ is defined.
2005-08-17 Jim Wilson <wilson@specifix.com> 2005-08-17 Jim Wilson <wilson@specifix.com>
* mf-hooks1.c (malloc, calloc, realloc, free, * mf-hooks1.c (malloc, calloc, realloc, free,

View File

@ -544,8 +544,14 @@ WRAPPER2(struct tm*, gmtime, const time_t *timep)
/* The following indicate if the result of the corresponding function /* The following indicate if the result of the corresponding function
* should be explicitly un/registered by the wrapper * should be explicitly un/registered by the wrapper
*/ */
#ifdef __FreeBSD__
#define MF_REGISTER_fopen __MF_TYPE_STATIC
#else
#undef MF_REGISTER_fopen #undef MF_REGISTER_fopen
#endif
#define MF_RESULT_SIZE_fopen (sizeof (FILE)) #define MF_RESULT_SIZE_fopen (sizeof (FILE))
#undef MF_REGISTER_opendir #undef MF_REGISTER_opendir
#define MF_RESULT_SIZE_opendir 0 /* (sizeof (DIR)) */ #define MF_RESULT_SIZE_opendir 0 /* (sizeof (DIR)) */
#undef MF_REGISTER_readdir #undef MF_REGISTER_readdir