Beispiel #1
0
FILE* __wrap_fopen(const char* path, const char* mode)
{
  FILE* ret;

  nosMutexLock(stdioMutex);
  ret = __real_fopen(path, mode);
  nosMutexUnlock(stdioMutex);
  return ret;
}
Beispiel #2
0
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;
}