FILE* __wrap_fopen(const char* path, const char* mode) { FILE* ret; nosMutexLock(stdioMutex); ret = __real_fopen(path, mode); nosMutexUnlock(stdioMutex); return ret; }
FILE* __wrap_fopen(const char *path, const char *mode) { FILE* ret; if (RM_TEST_MOCK_FOPEN == 0) { return __real_fopen(path, mode); } ret = mock_type(void*); return ret; }