<!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>[117639] 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/117639">117639</a></dd>
<dt>Author</dt> <dd>raimue@macports.org</dd>
<dt>Date</dt> <dd>2014-03-06 08:56:40 -0800 (Thu, 06 Mar 2014)</dd>
</dl>

<h3>Log Message</h3>
<pre>devel/valgrind:
Add patch for compatibility with Mac OS X 10.6 Snow Leopard.
No revbump as build was broken and changes do not affect other platforms.</pre>

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

<h3>Added Paths</h3>
<ul>
<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 (117638 => 117639)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/valgrind/Portfile        2014-03-06 15:57:48 UTC (rev 117638)
+++ trunk/dports/devel/valgrind/Portfile        2014-03-06 16:56:40 UTC (rev 117639)
</span><span class="lines">@@ -34,18 +34,19 @@
</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><del>-pre-fetch {
-    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;
-        return -code error &quot;incompatible Mac OS X version&quot;
-    }
-}
</del><ins>+#pre-fetch {
+#    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;
+#        return -code error &quot;incompatible Mac OS X version&quot;
+#    }
+#}
</ins><span class="cx"> 
</span><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>-patchfiles      link_tool_exe_darwin-ccache.diff
</del><ins>+patchfiles      link_tool_exe_darwin-ccache.diff \
+                patch-compat-snowleo.diff
</ins><span class="cx"> 
</span><span class="cx"> configure.args  --mandir=${prefix}/share/man \
</span><span class="cx">                 --without-mpicc
</span></span></pre></div>
<a id="trunkdportsdevelvalgrindfilespatchcompatsnowleodiff"></a>
<div class="addfile"><h4>Added: trunk/dports/devel/valgrind/files/patch-compat-snowleo.diff (0 => 117639)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/devel/valgrind/files/patch-compat-snowleo.diff                                (rev 0)
+++ trunk/dports/devel/valgrind/files/patch-compat-snowleo.diff        2014-03-06 16:56:40 UTC (rev 117639)
</span><span class="lines">@@ -0,0 +1,405 @@
</span><ins>+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)
</ins></span></pre>
</div>
</div>

</body>
</html>