<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[125981] trunk/dports/devel/valgrind</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="https://trac.macports.org/changeset/125981">125981</a></dd>
<dt>Author</dt> <dd>ryandesign@macports.org</dd>
<dt>Date</dt> <dd>2014-10-01 00:36:11 -0700 (Wed, 01 Oct 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>valgrind: update to 3.10.0
valgrind-devel: update to 3.10.0-<a href="https://trac.macports.org/changeset/14560">r14560</a>
See #44557</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsdevelvalgrindPortfile">trunk/dports/devel/valgrind/Portfile</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkdportsdevelvalgrindfileslink_tool_exe_darwinccachediff">trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff</a></li>
<li><a href="#trunkdportsdevelvalgrindfilespatchcompatsnowleodiff">trunk/dports/devel/valgrind/files/patch-compat-snowleo.diff</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsdevelvalgrindPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/devel/valgrind/Portfile (125980 => 125981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/valgrind/Portfile        2014-10-01 01:18:07 UTC (rev 125980)
+++ trunk/dports/devel/valgrind/Portfile        2014-10-01 07:36:11 UTC (rev 125981)
</span><span class="lines">@@ -5,8 +5,6 @@
</span><span class="cx"> PortGroup           mpi 1.0
</span><span class="cx"> 
</span><span class="cx"> name                valgrind
</span><del>-version             3.9.0
-revision            1
</del><span class="cx"> categories          devel
</span><span class="cx"> platforms           darwin
</span><span class="cx"> supported_archs     i386 x86_64
</span><span class="lines">@@ -23,23 +21,15 @@
</span><span class="cx"> homepage            http://valgrind.org
</span><span class="cx"> master_sites        http://valgrind.org/downloads/
</span><span class="cx"> 
</span><del>-checksums           md5     0947de8112f946b9ce64764af7be6df2 \
-                    sha1    9415e28933de9d6687f993c4bb797e6bd49583f1 \
-                    sha256  e6af71a06bc2534541b07743e1d58dc3caf744f38205ca3e5b5a0bdf372ed6f0
-
</del><span class="cx"> compilers.choose    cc cxx
</span><span class="cx"> mpi.choose
</span><span class="cx"> mpi.setup           -gcc44 -gcc45 -gcc46
</span><span class="cx"> 
</span><del>-# due to -mno-dynamic-no-pic in Makefile.all.am we need to regenerate the
-# configure scripts
-use_autoreconf      yes
</del><span class="cx"> depends_build       bin:perl:perl5
</span><span class="cx"> # Ignore trace reports about boost, Qt and OpenMP
</span><span class="cx"> # as they are only used for tests
</span><span class="cx"> 
</span><del>-configure.args      --mandir=${prefix}/share/man \
-                    --without-mpicc
</del><ins>+configure.args      --without-mpicc
</ins><span class="cx"> 
</span><span class="cx"> if {${build_arch} eq &quot;i386&quot;} {
</span><span class="cx">     configure.args-append --enable-only32bit
</span><span class="lines">@@ -60,7 +50,7 @@
</span><span class="cx">     pre-configure {
</span><span class="cx">         if {${build_arch} eq &quot;i386&quot;} {
</span><span class="cx">             # See #25684 and https://bugs.kde.org/show_bug.cgi?id=243362
</span><del>-            ui_error &quot;valgrind does not build +universal on a 32-bit only CPU!&quot;
</del><ins>+            ui_error &quot;${subport} does not build +universal on a 32-bit only CPU!&quot;
</ins><span class="cx">             return -code error &quot;unsupported CPU&quot;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="lines">@@ -70,8 +60,6 @@
</span><span class="cx">     if {[gcc_variant_isset]} {
</span><span class="cx">         patchfiles-append patch-gcc.diff
</span><span class="cx">     }
</span><del>-
-    reinplace -W $worksrcpath &quot;s,-mno-dynamic-no-pic,,g&quot; Makefile.all.am
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> pre-configure {
</span><span class="lines">@@ -82,35 +70,38 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> if {$subport eq $name} {
</span><ins>+    version             3.10.0
+    revision            0
</ins><span class="cx">     conflicts           valgrind-devel
</span><ins>+
+    checksums           md5     7c311a72a20388aceced1aa5573ce970 \
+                        sha1    aec0b8cd042ec36c8cce4f6027b98627ab202f26 \
+                        sha256  03047f82dfc6985a4c7d9d2700e17bc05f5e1a0ca6ad902e5d6c81aeb720edc9
+
</ins><span class="cx">     use_bzip2           yes
</span><span class="cx"> 
</span><span class="cx">     # Avoid conflict of faq.html and FAQ.html, #30541
</span><span class="cx">     extract.post_args-append --exclude=${distname}/docs/html/FAQ.html
</span><span class="cx"> 
</span><span class="cx">     pre-fetch {
</span><del>-        if {${os.platform} eq &quot;darwin&quot; &amp;&amp; (${os.major} &lt; 9 || ${os.major} &gt; 12)} {
-            ui_error &quot;${name} ${version} is only compatible with Mac OS X 10.5, 10.6, 10.7 and 10.8&quot;
</del><ins>+        if {${os.platform} eq &quot;darwin&quot; &amp;&amp; (${os.major} &lt; 9 || ${os.major} &gt; 13)} {
+            ui_error &quot;${subport} @${version} is only compatible with Mac OS X 10.5, 10.6, 10.7, 10.8 and 10.9&quot;
</ins><span class="cx">             return -code error &quot;incompatible Mac OS X version&quot;
</span><span class="cx">         }
</span><span class="cx">     }
</span><span class="cx"> 
</span><del>-    patchfiles-append   link_tool_exe_darwin-ccache.diff \
-                        patch-compat-snowleo.diff
-
</del><span class="cx">     livecheck.type      regex
</span><span class="cx">     livecheck.url       ${homepage}
</span><span class="cx">     livecheck.regex     ${name}-(\\d(?:\\.\\d)+)
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> subport valgrind-devel {
</span><ins>+    svn.revision        14560
+    set vex_revision    2953
+    version             3.10.0-r${svn.revision}
+    revision            0
</ins><span class="cx">     conflicts           valgrind
</span><span class="cx"> 
</span><del>-    svn.revision        13710
-    set vex_revision    2797
-    version             3.9.0-r${svn.revision}
-    revision            1
-
</del><span class="cx">     fetch.type      svn
</span><span class="cx">     svn.url         svn://svn.valgrind.org/valgrind/trunk
</span><span class="cx">     svn.args        --ignore-externals
</span><span class="lines">@@ -120,5 +111,14 @@
</span><span class="cx">         system -W ${worksrcpath} &quot;${svn.cmd} ${svn.pre_args} ${svn.method} svn://svn.valgrind.org/vex/trunk@${vex_revision} VEX&quot;
</span><span class="cx">     }
</span><span class="cx"> 
</span><ins>+    pre-fetch {
+        if {${os.platform} eq &quot;darwin&quot; &amp;&amp; (${os.major} &lt; 9 || ${os.major} &gt; 13)} {
+            ui_error &quot;${subport} @${version} is only compatible with Mac OS X 10.5, 10.6, 10.7, 10.8 and 10.9&quot;
+            return -code error &quot;incompatible Mac OS X version&quot;
+        }
+    }
+
+    use_autoreconf      yes
+
</ins><span class="cx">     livecheck.type none
</span><span class="cx"> }
</span></span></pre></div>
<a id="trunkdportsdevelvalgrindfileslink_tool_exe_darwinccachediff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff (125980 => 125981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff        2014-10-01 01:18:07 UTC (rev 125980)
+++ trunk/dports/devel/valgrind/files/link_tool_exe_darwin-ccache.diff        2014-10-01 07:36:11 UTC (rev 125981)
</span><span class="lines">@@ -1,15 +0,0 @@
</span><del>-https://bugs.kde.org/show_bug.cgi?id=295427
---- coregrind/link_tool_exe_darwin.in.orig        2012-08-19 16:30:14.000000000 +0200
-+++ coregrind/link_tool_exe_darwin.in        2012-08-19 16:29:50.000000000 +0200
-@@ -101,6 +101,11 @@
- my $ala = $ARGV[0];  # the load address to use
- my $cc  = $ARGV[1];  # the C compiler in use

-+# if ccache is used, the actual compiler is the next argument
-+if (&quot;$cc&quot; =~ /ccache$/) {
-+    $cc = $ARGV[2];
-+}
-+
- # check for plausible-ish alt load address
- die &quot;Bogus alt-load address (1)&quot;
-     if (length($ala) &lt; 3 || index($ala, &quot;0x&quot;) != 0);
</del></span></pre></div>
<a id="trunkdportsdevelvalgrindfilespatchcompatsnowleodiff"></a>
<div class="delfile"><h4>Deleted: trunk/dports/devel/valgrind/files/patch-compat-snowleo.diff (125980 => 125981)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/valgrind/files/patch-compat-snowleo.diff        2014-10-01 01:18:07 UTC (rev 125980)
+++ trunk/dports/devel/valgrind/files/patch-compat-snowleo.diff        2014-10-01 07:36:11 UTC (rev 125981)
</span><span class="lines">@@ -1,405 +0,0 @@
</span><del>-diff -Naur a/coregrind/m_syswrap/priv_syswrap-darwin.h b/coregrind/m_syswrap/priv_syswrap-darwin.h
---- coregrind/m_syswrap/priv_syswrap-darwin.h        2013-10-23 03:50:12.000000000 -0700
-+++ coregrind/m_syswrap/priv_syswrap-darwin.h        2013-11-11 22:28:56.000000000 -0800
-@@ -344,7 +344,7 @@
- DECL_TEMPLATE(darwin, fchmod_extended);         // 283
- DECL_TEMPLATE(darwin, access_extended);         // 284
- DECL_TEMPLATE(darwin, settid);                  // 285
--// NYI gettid 286
-+DECL_TEMPLATE(darwin, gettid);                  // 286
- // NYI setsgroups 287
- // NYI getsgroups 288
- // NYI setwgroups 289
-@@ -354,23 +354,44 @@
- // NYI identitysvc 293
- // NYI shared_region_check_np 294
- // NYI shared_region_map_np 295
-+#if DARWIN_VERS &gt;= DARWIN_10_6
-+// NYI vm_pressure_monitor 296
-+// NYI psynch_rw_longrdlock 297
-+// NYI psynch_rw_yieldwrlock 298
-+// NYI psynch_rw_downgrade 299
-+// NYI psynch_rw_upgrade 300
-+DECL_TEMPLATE(darwin, psynch_mutexwait);       // 301
-+DECL_TEMPLATE(darwin, psynch_mutexdrop);       // 302
-+DECL_TEMPLATE(darwin, psynch_cvbroad);         // 303
-+DECL_TEMPLATE(darwin, psynch_cvsignal);        // 304
-+DECL_TEMPLATE(darwin, psynch_cvwait);          // 305
-+DECL_TEMPLATE(darwin, psynch_rw_rdlock);       // 306
-+DECL_TEMPLATE(darwin, psynch_rw_wrlock);       // 307
-+DECL_TEMPLATE(darwin, psynch_rw_unlock);       // 308
-+// NYI psynch_rw_unlock2 309
-+#else
- // old load_shared_file
- // old reset_shared_file
- // old new_system_shared_regions
- // old shared_region_map_file_np
- // old shared_region_make_private_np
--DECL_TEMPLATE(darwin, psynch_mutexwait);       // 301 // new in 10.7 ?
--DECL_TEMPLATE(darwin, psynch_mutexdrop);       // 302 // new in 10.7 ?
--DECL_TEMPLATE(darwin, psynch_cvbroad);         // 303 // new in 10.7 ?
--DECL_TEMPLATE(darwin, psynch_cvsignal);        // 304 // new in 10.7 ?
--DECL_TEMPLATE(darwin, psynch_cvwait);          // 305 // new in 10.7 ?
--DECL_TEMPLATE(darwin, psynch_rw_rdlock);       // 306 // new in 10.7 ?
--DECL_TEMPLATE(darwin, psynch_rw_wrlock);       // 307 // new in 10.7 ?
--DECL_TEMPLATE(darwin, psynch_rw_unlock);       // 308 // new in 10.7 ?
-+// NYI __pthread_mutex_destroy 301
-+// NYI __pthread_mutex_init 302
-+// NYI __pthread_mutex_lock 303
-+// NYI __pthread_mutex_trylock 304
-+// NYI __pthread_mutex_unlock 305
-+// NYI __pthread_cond_init 306
-+// NYI __pthread_cond_destroy 307
-+// NYI __pthread_cond_broadcast 308
- // NYI __pthread_cond_signal 309
-+#endif
- // NYI getsid 310
- // NYI settid_with_pid 311
--DECL_TEMPLATE(darwin, psynch_cvclrprepost);    // 312 // new in 10.7 ?
-+#if DARWIN_VERS &gt;= DARWIN_10_7
-+DECL_TEMPLATE(darwin, psynch_cvclrprepost);    // 312
-+#else
-+// NYI __pthread_cond_timedwait 312
-+#endif
- // NYI aio_fsync 313
- DECL_TEMPLATE(darwin, aio_return);             // 314
- DECL_TEMPLATE(darwin, aio_suspend);            // 315
-@@ -394,9 +415,7 @@
- DECL_TEMPLATE(darwin, __pthread_canceled);      // 333
- DECL_TEMPLATE(darwin, __semwait_signal);        // 334
- // old utrace
--#if DARWIN_VERS &gt;= DARWIN_10_6
- DECL_TEMPLATE(darwin, proc_info);               // 336
--#endif
- DECL_TEMPLATE(darwin, sendfile);                // 337
- DECL_TEMPLATE(darwin, stat64);                  // 338
- DECL_TEMPLATE(darwin, fstat64);                 // 339
-@@ -417,9 +436,7 @@
- // NYI setauid 354
- // NYI getaudit 355
- // NYI setaudit 356
--#if DARWIN_VERS &gt;= DARWIN_10_7
- DECL_TEMPLATE(darwin, getaudit_addr)            // 357
--#endif
- // NYI setaudit_addr 358
- // NYI auditctl 359
- DECL_TEMPLATE(darwin, bsdthread_create);        // 360
-@@ -434,7 +451,9 @@
- // 369
- // 370
- // 371
-+#if DARWIN_VERS &gt;= DARWIN_10_6
- DECL_TEMPLATE(darwin, __thread_selfid);         // 372
-+#endif
- // 373
- // 374
- // 375
-diff -Naur a/coregrind/m_syswrap/syswrap-darwin.c b/coregrind/m_syswrap/syswrap-darwin.c
---- coregrind/m_syswrap/syswrap-darwin.c        2013-10-23 03:50:12.000000000 -0700
-+++ coregrind/m_syswrap/syswrap-darwin.c        2013-11-11 21:53:29.000000000 -0800
-@@ -2618,47 +2618,6 @@
-          count, (Addr)p-(Addr)ARG3, ARG4);
- }

--
--PRE(fsgetpath)
--{
--#if VG_WORDSIZE == 4
--   PRINT(&quot;fsgetpath(%#lx, %ld, %#lx {%u,%u}, %llu)&quot;, 
--         ARG1, ARG2, ARG3,
--         ((unsigned int *)ARG3)[0], ((unsigned int *)ARG3)[1],
--         LOHI64(ARG4, ARG5));
--   PRE_REG_READ5(ssize_t, &quot;fsgetpath&quot;, 
--                 void*,&quot;buf&quot;, size_t,&quot;bufsize&quot;, 
--                 fsid_t *,&quot;fsid&quot;,
--                 vki_uint32_t, &quot;objid_low32&quot;, vki_uint32_t, &quot;objid_high32&quot;);
--#else
--   PRINT(&quot;fsgetpath(%#lx, %ld, %#lx {%u,%u}, %lu)&quot;, 
--         ARG1, ARG2, ARG3,
--         ((unsigned int *)ARG3)[0],
--         ((unsigned int *)ARG3)[1], ARG4);
--   PRE_REG_READ4(ssize_t, &quot;fsgetpath&quot;, 
--                 void*,&quot;buf&quot;, size_t,&quot;bufsize&quot;, 
--                 fsid_t *,&quot;fsid&quot;, uint64_t,&quot;objid&quot;);
--#endif
--   PRE_MEM_READ(&quot;fsgetpath(fsid)&quot;, ARG3, sizeof(fsid_t));
--   PRE_MEM_WRITE(&quot;fsgetpath(buf)&quot;, ARG1, ARG2);
--}
--
--POST(fsgetpath)
--{
--   POST_MEM_WRITE(ARG1, RES);
--}
--
--PRE(audit_session_self)
--{
--  PRINT(&quot;audit_session_self()&quot;);
--}
--
--POST(audit_session_self)
--{
--  record_named_port(tid, RES, MACH_PORT_RIGHT_SEND, &quot;audit-session-%p&quot;);
--  PRINT(&quot;audit-session %#lx&quot;, RES);
--}
--
- PRE(exchangedata)
- {
-    PRINT(&quot;exchangedata(%#lx(%s), %#lx(%s), %lu)&quot;,
-@@ -3561,6 +3520,17 @@
-    }    
- }

-+PRE(getaudit_addr)
-+{
-+   PRINT(&quot;getaudit_addr(%#lx, %lu)&quot;, ARG1, ARG2);
-+   PRE_REG_READ1(void*, &quot;auditinfo_addr&quot;, int, &quot;length&quot;);
-+   PRE_MEM_WRITE(&quot;getaudit_addr(auditinfo_addr)&quot;, ARG1, ARG2);
-+}
-+POST(getaudit_addr)
-+{
-+   POST_MEM_WRITE(ARG1, ARG2);
-+}
-+

- PRE(mmap)
- {
-@@ -3779,7 +3749,6 @@
-                  uint32_t flavor, uint64_t arg,
-                  user_addr_t buffer, int32_t buffersize)
- */
--#if DARWIN_VERS &gt;= DARWIN_10_6
- PRE(proc_info)
- {
- #if VG_WORDSIZE == 4
-@@ -3813,7 +3782,6 @@
- #endif
- }

--#endif /* DARWIN_VERS &gt;= DARWIN_10_6 */

- /* ---------------------------------------------------------------------
-    aio_*
-@@ -7428,12 +7396,6 @@
- //}


--PRE(__thread_selfid)
--{
--   PRINT(&quot;__thread_selfid ()&quot;);
--   PRE_REG_READ0(vki_uint64_t, &quot;__thread_selfid&quot;);
--}
--
- PRE(task_for_pid)
- {
-    PRINT(&quot;task_for_pid(%s, %ld, %#lx)&quot;, name_for_port(ARG1), ARG2, ARG3);
-@@ -7782,21 +7744,10 @@


- /* ---------------------------------------------------------------------
--   Added for OSX 10.7 (Lion)
-+   Added for OSX 10.6 (Snow Leopard)
-    ------------------------------------------------------------------ */

--#if DARWIN_VERS &gt;= DARWIN_10_7
--
--PRE(getaudit_addr)
--{
--   PRINT(&quot;getaudit_addr(%#lx, %lu)&quot;, ARG1, ARG2);
--   PRE_REG_READ1(void*, &quot;auditinfo_addr&quot;, int, &quot;length&quot;);
--   PRE_MEM_WRITE(&quot;getaudit_addr(auditinfo_addr)&quot;, ARG1, ARG2);
--}
--POST(getaudit_addr)
--{
--   POST_MEM_WRITE(ARG1, ARG2);
--}
-+#if DARWIN_VERS &gt;= DARWIN_10_6

- PRE(psynch_mutexwait)
- {
-@@ -7867,6 +7818,60 @@
- {
- }

-+PRE(__thread_selfid)
-+{
-+   PRINT(&quot;__thread_selfid ()&quot;);
-+   PRE_REG_READ0(vki_uint64_t, &quot;__thread_selfid&quot;);
-+}
-+
-+PRE(fsgetpath)
-+{
-+#if VG_WORDSIZE == 4
-+   PRINT(&quot;fsgetpath(%#lx, %ld, %#lx {%u,%u}, %llu)&quot;, 
-+         ARG1, ARG2, ARG3,
-+         ((unsigned int *)ARG3)[0], ((unsigned int *)ARG3)[1],
-+         LOHI64(ARG4, ARG5));
-+   PRE_REG_READ5(ssize_t, &quot;fsgetpath&quot;, 
-+                 void*,&quot;buf&quot;, size_t,&quot;bufsize&quot;, 
-+                 fsid_t *,&quot;fsid&quot;,
-+                 vki_uint32_t, &quot;objid_low32&quot;, vki_uint32_t, &quot;objid_high32&quot;);
-+#else
-+   PRINT(&quot;fsgetpath(%#lx, %ld, %#lx {%u,%u}, %lu)&quot;, 
-+         ARG1, ARG2, ARG3,
-+         ((unsigned int *)ARG3)[0],
-+         ((unsigned int *)ARG3)[1], ARG4);
-+   PRE_REG_READ4(ssize_t, &quot;fsgetpath&quot;, 
-+                 void*,&quot;buf&quot;, size_t,&quot;bufsize&quot;, 
-+                 fsid_t *,&quot;fsid&quot;, uint64_t,&quot;objid&quot;);
-+#endif
-+   PRE_MEM_READ(&quot;fsgetpath(fsid)&quot;, ARG3, sizeof(fsid_t));
-+   PRE_MEM_WRITE(&quot;fsgetpath(buf)&quot;, ARG1, ARG2);
-+}
-+
-+POST(fsgetpath)
-+{
-+   POST_MEM_WRITE(ARG1, RES);
-+}
-+
-+PRE(audit_session_self)
-+{
-+  PRINT(&quot;audit_session_self()&quot;);
-+}
-+POST(audit_session_self)
-+{
-+  record_named_port(tid, RES, MACH_PORT_RIGHT_SEND, &quot;audit-session-%p&quot;);
-+  PRINT(&quot;audit-session %#lx&quot;, RES);
-+}
-+
-+#endif /* DARWIN_VERS &gt;= DARWIN_10_6 */
-+
-+
-+/* ---------------------------------------------------------------------
-+   Added for OSX 10.7 (Lion)
-+   ------------------------------------------------------------------ */
-+
-+#if DARWIN_VERS &gt;= DARWIN_10_7
-+
- PRE(psynch_cvclrprepost)
- {
-    PRINT(&quot;psynch_cvclrprepost(BOGUS)&quot;);
-@@ -8297,13 +8302,10 @@
- // _____(__NR_shared_region_map_np), 
- #if DARWIN_VERS &gt;= DARWIN_10_6
- // _____(__NR_vm_pressure_monitor), 
--#else
--   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(296)),   // old load_shared_file 
--#endif
--   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(297)),   // old reset_shared_file 
--   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(298)),   // old new_system_shared_regions 
--   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(299)),   // old shared_region_map_file_np 
--   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(300)),   // old shared_region_make_private_np
-+// _____(__NR_psynch_rw_longrdlock), 
-+// _____(__NR_psynch_rw_yieldwrlock), 
-+// _____(__NR_psynch_rw_downgrade), 
-+// _____(__NR_psynch_rw_upgrade), 
-    MACXY(__NR_psynch_mutexwait, psynch_mutexwait), // 301
-    MACXY(__NR_psynch_mutexdrop, psynch_mutexdrop), // 302
-    MACXY(__NR_psynch_cvbroad,   psynch_cvbroad),   // 303
-@@ -8312,10 +8314,30 @@
-    MACXY(__NR_psynch_rw_rdlock, psynch_rw_rdlock), // 306
-    MACXY(__NR_psynch_rw_wrlock, psynch_rw_wrlock), // 307
-    MACXY(__NR_psynch_rw_unlock, psynch_rw_unlock), // 308
--   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(309)),   // ???
-+// _____(__NR_psynch_rw_unlock2), 
-+#else
-+   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(296)),   // old load_shared_file 
-+   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(297)),   // old reset_shared_file 
-+   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(298)),   // old new_system_shared_regions 
-+   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(299)),   // old shared_region_map_file_np 
-+   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(300)),   // old shared_region_make_private_np
-+// _____(__NR___pthread_mutex_destroy), 
-+// _____(__NR___pthread_mutex_init), 
-+// _____(__NR___pthread_mutex_lock), 
-+// _____(__NR___pthread_mutex_trylock), 
-+// _____(__NR___pthread_mutex_unlock), 
-+// _____(__NR___pthread_cond_init), 
-+// _____(__NR___pthread_cond_destroy), 
-+// _____(__NR___pthread_cond_broadcast), 
-+// _____(__NR___pthread_cond_signal), 
-+#endif
- // _____(__NR_getsid), 
- // _____(__NR_settid_with_pid), 
-+#if DARWIN_VERS &gt;= DARWIN_10_7
-    MACXY(__NR_psynch_cvclrprepost, psynch_cvclrprepost), // 312
-+#else
-+   _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(308)),   // old __pthread_cond_timedwait
-+#endif
- // _____(__NR_aio_fsync), 
-    MACXY(__NR_aio_return,     aio_return), 
-    MACX_(__NR_aio_suspend,    aio_suspend), 
-@@ -8341,9 +8363,7 @@
-    MACX_(__NR___pthread_canceled,      __pthread_canceled),
-    MACX_(__NR___semwait_signal,        __semwait_signal), 
-    _____(VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(335)),   // old utrace
--#if DARWIN_VERS &gt;= DARWIN_10_6
-    MACXY(__NR_proc_info,               proc_info),  // 336
--#endif
-    MACXY(__NR_sendfile,    sendfile), 
-    MACXY(__NR_stat64,      stat64), 
-    MACXY(__NR_fstat64,     fstat64), 
-@@ -8364,9 +8384,7 @@
- // _____(__NR_setauid), 
- // _____(__NR_getaudit), 
- // _____(__NR_setaudit), 
--#if DARWIN_VERS &gt;= DARWIN_10_7
-    MACXY(__NR_getaudit_addr, getaudit_addr),
--#endif
- // _____(__NR_setaudit_addr), 
- // _____(__NR_auditctl), 
-    MACXY(__NR_bsdthread_create,     bsdthread_create),   // 360
-diff -Naur a/include/vki/vki-scnums-darwin.h b/include/vki/vki-scnums-darwin.h
---- include/vki/vki-scnums-darwin.h        2013-10-23 03:49:54.000000000 -0700
-+++ include/vki/vki-scnums-darwin.h        2013-11-11 20:20:08.000000000 -0800
-@@ -508,25 +508,42 @@
- #define        __NR_shared_region_map_np   VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(295)
- #if DARWIN_VERS &gt;= DARWIN_10_6
- #define __NR_vm_pressure_monitor    VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(296)
-+#define __NR_psynch_rw_longrdlock   VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(297)
-+#define __NR_psynch_rw_yieldwrlock  VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(298)
-+#define __NR_psynch_rw_downgrade    VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(299)
-+#define __NR_psynch_rw_upgrade      VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(300)
-+#define __NR_psynch_mutexwait       VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(301)
-+#define __NR_psynch_mutexdrop       VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(302)
-+#define __NR_psynch_cvbroad         VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(303)
-+#define __NR_psynch_cvsignal        VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(304)
-+#define __NR_psynch_cvwait          VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(305)
-+#define __NR_psynch_rw_rdlock       VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(306)
-+#define __NR_psynch_rw_wrlock       VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(307)
-+#define __NR_psynch_rw_unlock       VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(308)
-+#define __NR_psynch_rw_unlock2      VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(309)
- #else
-                         /* 296  old load_shared_file */
--#endif
-                         /* 297  old reset_shared_file */
-                         /* 298  old new_system_shared_regions */
-                         /* 299  old shared_region_map_file_np */
-                         /* 300  old shared_region_make_private_np */
--#define __NR_psynch_mutexwait VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(301)
--#define __NR_psynch_mutexdrop VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(302)
--#define __NR_psynch_cvbroad   VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(303)
--#define __NR_psynch_cvsignal  VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(304)
--#define __NR_psynch_cvwait    VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(305)
--#define __NR_psynch_rw_rdlock VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(306)
--#define __NR_psynch_rw_wrlock VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(307)
--#define __NR_psynch_rw_unlock VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(308)
--                        /* 309 */
-+#define __NR___pthread_mutex_destroy  VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(301)
-+#define __NR___pthread_mutex_init     VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(302)
-+#define __NR___pthread_mutex_lock     VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(303)
-+#define __NR___pthread_mutex_trylock  VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(304)
-+#define __NR___pthread_mutex_unlock   VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(305)
-+#define __NR___pthread_cond_init      VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(306)
-+#define __NR___pthread_cond_destroy   VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(307)
-+#define __NR___pthread_cond_broadcast VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(308)
-+#define __NR___pthread_cond_signal    VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(309)
-+#endif
- #define        __NR_getsid         VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(310)
- #define        __NR_settid_with_pid VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(311)
-+#if DARWIN_VERS &gt;= DARWIN_10_7
- #define __NR_psynch_cvclrprepost VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(312)
-+#else
-+#define __NR___pthread_cond_timedwait VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(312)
-+#endif
- #define        __NR_aio_fsync      VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(313)
- #define        __NR_aio_return     VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(314)
- #define        __NR_aio_suspend    VG_DARWIN_SYSCALL_CONSTRUCT_UNIX(315)
</del></span></pre>
</div>
</div>

</body>
</html>