Commit 7e58577d authored by Philip Carns's avatar Philip Carns

fopen64 wrapper

parent 585615f9
......@@ -168,8 +168,6 @@ FILE* DARSHAN_DECL(fopen)(const char *path, const char *mode)
FILE* ret;
double tm1, tm2;
fprintf(stderr, "FOO: HELLO WORLD (FOPEN)\n");
MAP_OR_FAIL(fopen);
tm1 = darshan_core_wtime();
......@@ -187,12 +185,18 @@ FILE* DARSHAN_DECL(fopen)(const char *path, const char *mode)
FILE* DARSHAN_DECL(fopen64)(const char *path, const char *mode)
{
FILE* ret;
double tm1, tm2;
fprintf(stderr, "FOO: HELLO WORLD (FOPEN64)\n");
MAP_OR_FAIL(fopen64);
MAP_OR_FAIL(fopen);
tm1 = darshan_core_wtime();
ret = __real_fopen64(path, mode);
tm2 = darshan_core_wtime();
STDIO_LOCK();
stdio_runtime_initialize();
STDIO_RECORD_OPEN(ret, path, tm1, tm2);
STDIO_UNLOCK();
return(ret);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment