rather than aborts.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@237
ignored("_pthread_cleanup_pop_restore");
}
+/*--------*/
+void _pthread_cleanup_push (struct _pthread_cleanup_buffer *__buffer,
+ void (*__routine) (void *),
+ void *__arg)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0)
+ ignored("_pthread_cleanup_push");
+}
+
+void _pthread_cleanup_pop (struct _pthread_cleanup_buffer *__buffer,
+ int __execute)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0) {
+ if (__execute)
+ ignored("_pthread_cleanup_pop-EXECUTE");
+ else
+ ignored("_pthread_cleanup_pop-NO-EXECUTE");
+ }
+}
+
/* This doesn't seem to be needed to simulate libpthread.so's external
interface, but many people complain about its absence. */
void __vfork ( void ) { unimp("__vfork"); }
//void __wait ( void ) { unimp("__wait"); }
//void __write ( void ) { unimp("__write"); }
-void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); }
+//void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); }
//void _pthread_cleanup_pop_restore ( void ) { unimp("_pthread_cleanup_pop_restore"); }
-void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); }
+//void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); }
//void _pthread_cleanup_push_defer ( void ) { unimp("_pthread_cleanup_push_defer"); }
//void longjmp ( void ) { unimp("longjmp"); }
//void pthread_atfork ( void ) { unimp("pthread_atfork"); }
ignored("_pthread_cleanup_pop_restore");
}
+/*--------*/
+void _pthread_cleanup_push (struct _pthread_cleanup_buffer *__buffer,
+ void (*__routine) (void *),
+ void *__arg)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0)
+ ignored("_pthread_cleanup_push");
+}
+
+void _pthread_cleanup_pop (struct _pthread_cleanup_buffer *__buffer,
+ int __execute)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0) {
+ if (__execute)
+ ignored("_pthread_cleanup_pop-EXECUTE");
+ else
+ ignored("_pthread_cleanup_pop-NO-EXECUTE");
+ }
+}
+
/* This doesn't seem to be needed to simulate libpthread.so's external
interface, but many people complain about its absence. */
void __vfork ( void ) { unimp("__vfork"); }
//void __wait ( void ) { unimp("__wait"); }
//void __write ( void ) { unimp("__write"); }
-void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); }
+//void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); }
//void _pthread_cleanup_pop_restore ( void ) { unimp("_pthread_cleanup_pop_restore"); }
-void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); }
+//void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); }
//void _pthread_cleanup_push_defer ( void ) { unimp("_pthread_cleanup_push_defer"); }
//void longjmp ( void ) { unimp("longjmp"); }
//void pthread_atfork ( void ) { unimp("pthread_atfork"); }
ignored("_pthread_cleanup_pop_restore");
}
+/*--------*/
+void _pthread_cleanup_push (struct _pthread_cleanup_buffer *__buffer,
+ void (*__routine) (void *),
+ void *__arg)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0)
+ ignored("_pthread_cleanup_push");
+}
+
+void _pthread_cleanup_pop (struct _pthread_cleanup_buffer *__buffer,
+ int __execute)
+{
+ static int moans = N_MOANS;
+ if (moans-- > 0) {
+ if (__execute)
+ ignored("_pthread_cleanup_pop-EXECUTE");
+ else
+ ignored("_pthread_cleanup_pop-NO-EXECUTE");
+ }
+}
+
/* This doesn't seem to be needed to simulate libpthread.so's external
interface, but many people complain about its absence. */
void __vfork ( void ) { unimp("__vfork"); }
//void __wait ( void ) { unimp("__wait"); }
//void __write ( void ) { unimp("__write"); }
-void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); }
+//void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); }
//void _pthread_cleanup_pop_restore ( void ) { unimp("_pthread_cleanup_pop_restore"); }
-void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); }
+//void _pthread_cleanup_push ( void ) { unimp("_pthread_cleanup_push"); }
//void _pthread_cleanup_push_defer ( void ) { unimp("_pthread_cleanup_push_defer"); }
//void longjmp ( void ) { unimp("longjmp"); }
//void pthread_atfork ( void ) { unimp("pthread_atfork"); }