<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>

</head>
<body>
<style type="text/css">
img {
max-width: 100%; height: auto;
}
</style>
<div class="content">
<h3>
Philip Carns pushed to branch dev-stdio
at <a href="https://xgitlab.cels.anl.gov/darshan/darshan">darshan / darshan</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/7e58577d8b6099e36197083d18522f8aef3855e5">7e58577d</a></strong>
<div>
<span>by Phil Carns</span>
<i>at 2016-05-01T08:34:19-04:00</i>
</div>
<pre class="commit-message" style="white-space: pre-wrap">fopen64 wrapper</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li class="file-stats">
<a href="#620f2ecad2bb6f74b2fcd0134963a841" style="text-decoration: none">
darshan-runtime/lib/darshan-stdio.c
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="620f2ecad2bb6f74b2fcd0134963a841">
<a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/7e58577d8b6099e36197083d18522f8aef3855e5#diff-0">
<strong>
darshan-runtime/lib/darshan-stdio.c
</strong>
</a>
<hr>
<pre class="highlight"><code><span style="background: #ffdddd; color: #000000">--- a/darshan-runtime/lib/darshan-stdio.c
</span><span style="background: #ddffdd; color: #000000">+++ b/darshan-runtime/lib/darshan-stdio.c
</span><span style="color: #aaaaaa">@@ -168,8 +168,6 @@ FILE* DARSHAN_DECL(fopen)(const char *path, const char *mode)
</span>     FILE* ret;
     double tm1, tm2;
 
<span style="background: #ffdddd; color: #000000">-    fprintf(stderr, "FOO: HELLO WORLD (FOPEN)\n");
-
</span>     MAP_OR_FAIL(fopen);
 
     tm1 = darshan_core_wtime();
<span style="color: #aaaaaa">@@ -187,12 +185,18 @@ FILE* DARSHAN_DECL(fopen)(const char *path, const char *mode)
</span> FILE* DARSHAN_DECL(fopen64)(const char *path, const char *mode)
 {
     FILE* ret;
<span style="background: #ddffdd; color: #000000">+    double tm1, tm2;
</span> 
<span style="background: #ffdddd; color: #000000">-    fprintf(stderr, "FOO: HELLO WORLD (FOPEN64)\n");
-
-    MAP_OR_FAIL(fopen64);
</span><span style="background: #ddffdd; color: #000000">+    MAP_OR_FAIL(fopen);
</span> 
<span style="background: #ddffdd; color: #000000">+    tm1 = darshan_core_wtime();
</span>     ret = __real_fopen64(path, mode);
<span style="background: #ddffdd; color: #000000">+    tm2 = darshan_core_wtime();
+
+    STDIO_LOCK();
+    stdio_runtime_initialize();
+    STDIO_RECORD_OPEN(ret, path, tm1, tm2);
+    STDIO_UNLOCK();
</span> 
     return(ret);
 }
</code></pre>

<br>
</li>

</div>
<div class="footer" style="margin-top: 10px">
<p style="color: #777; font-size: small">

<br>
<a href="https://xgitlab.cels.anl.gov/darshan/darshan/commit/7e58577d8b6099e36197083d18522f8aef3855e5">View it on GitLab</a>.
<br>
You're receiving this email because of your account on xgitlab.cels.anl.gov.
If you'd like to receive fewer emails, you can
adjust your notification settings.

</p>
</div>
</body>
</html>