]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Use the wrapper for sys___semwait_signal for 10.5 also on 10.6,
authorJulian Seward <jseward@acm.org>
Wed, 21 Jul 2010 16:34:47 +0000 (16:34 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 21 Jul 2010 16:34:47 +0000 (16:34 +0000)
rather than have a different one for 10.6.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11221

coregrind/m_syswrap/syswrap-darwin.c

index 2652fbbbe22795df884cfdeb4860cbee1ad316b1..7a61a82c95a4b619a69a5e073d6becfdddc7dea3 100644 (file)
@@ -7114,7 +7114,6 @@ PRE(semaphore_timedwait_signal)
 }
 
 
-#if DARWIN_VERS <= DARWIN_10_5
 PRE(__semwait_signal)
 {
    /* 10.5 args: int cond_sem, int mutex_sem,
@@ -7129,25 +7128,26 @@ PRE(__semwait_signal)
 
    *flags |= SfMayBlock;
 }
-#else
-PRE(__semwait_signal)
-{
-   /* 10.5 args: int cond_sem, int mutex_sem,
-                 int timeout, int relative,
-                 const timespec *ts */
-   PRINT("__semwait_signal(wait %s, signal %s, %ld, %ld, %#lx)", 
-         name_for_port(ARG1), name_for_port(ARG2), ARG3, ARG4, ARG5);
-   PRE_REG_READ5(int, "__semwait_signal", 
-                 int,cond_sem, int,mutex_sem,
-                 int,timeout, int,relative, 
-                 const struct vki_timespec *,ts);
-   
-   if (ARG5) PRE_MEM_READ ("__semwait_signal(ts)", 
-                           ARG5, sizeof(struct vki_timespec));
-   
-   *flags |= SfMayBlock;
-}
-#endif
+// GrP provided this alternative version for 10.6, but NjN
+// reckons the 10.5 is is still correct for 10.6.  So, retaining
+// Greg's version as a comment just in case we need it later.
+//PRE(__semwait_signal)
+//{
+//   /* 10.5 args: int cond_sem, int mutex_sem,
+//                 int timeout, int relative,
+//                 const timespec *ts */
+//   PRINT("__semwait_signal(wait %s, signal %s, %ld, %ld, %#lx)", 
+//         name_for_port(ARG1), name_for_port(ARG2), ARG3, ARG4, ARG5);
+//   PRE_REG_READ5(int, "__semwait_signal", 
+//                 int,cond_sem, int,mutex_sem,
+//                 int,timeout, int,relative, 
+//                 const struct vki_timespec *,ts);
+//   
+//   if (ARG5) PRE_MEM_READ ("__semwait_signal(ts)", 
+//                           ARG5, sizeof(struct vki_timespec));
+//   
+//   *flags |= SfMayBlock;
+//}
 
 
 PRE(__thread_selfid)