Add possibly-bogus implementations for __libc_current_sigrtmin,
__libc_current_sigrtmax and __libc_allocate_rtsig.
MERGE TO STABLE
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@1561 a5019735-40e9-0310-863c-91ae7b9d1cf9
diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c
index 3db4db5..21646f3 100644
--- a/coregrind/vg_libpthread.c
+++ b/coregrind/vg_libpthread.c
@@ -2939,6 +2939,37 @@
return VGR_(msgrcv)(msqid, msgp, msgsz, msgtyp, msgflg );
}
+
+/* ---------------------------------------------------------------------
+ The glibc sources say that returning -1 in these 3 functions
+ causes real time signals not to be used.
+ ------------------------------------------------------------------ */
+
+int __libc_current_sigrtmin (void)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0)
+ kludged("__libc_current_sigrtmin");
+ return -1;
+}
+
+int __libc_current_sigrtmax (void)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0)
+ kludged("__libc_current_sigrtmax");
+ return -1;
+}
+
+int __libc_allocate_rtsig (int high)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0)
+ kludged("__libc_allocate_rtsig");
+ return -1;
+}
+
+
/* ---------------------------------------------------------------------
B'stard.
------------------------------------------------------------------ */