From: Julian Seward Date: Tue, 30 Apr 2002 10:20:10 +0000 (+0000) Subject: Make pthread_mutexattr_setkind_np be an alias of__pthread_mutexattr_settype. X-Git-Tag: svn/VALGRIND_1_0_3~280 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a3c231031aa5959d5f54a54e260c03f373366d0a;p=thirdparty%2Fvalgrind.git Make pthread_mutexattr_setkind_np be an alias of__pthread_mutexattr_settype. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@172 --- diff --git a/coregrind/arch/x86-linux/vg_libpthread.c b/coregrind/arch/x86-linux/vg_libpthread.c index 171e2836dc..4f0bf99122 100644 --- a/coregrind/arch/x86-linux/vg_libpthread.c +++ b/coregrind/arch/x86-linux/vg_libpthread.c @@ -1461,3 +1461,10 @@ void _pthread_cleanup_pop_restore ( void ) // char* str = "_pthread_cleanup_pop_restore\n"; // write(2, str, strlen(str)); } + + +/* This doesn't seem to be needed to simulate libpthread.so's external + interface, but many people complain about its absence. */ + +strong_alias(__pthread_mutexattr_settype, __pthread_mutexattr_setkind_np) +weak_alias(__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np) diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c index 171e2836dc..4f0bf99122 100644 --- a/coregrind/vg_libpthread.c +++ b/coregrind/vg_libpthread.c @@ -1461,3 +1461,10 @@ void _pthread_cleanup_pop_restore ( void ) // char* str = "_pthread_cleanup_pop_restore\n"; // write(2, str, strlen(str)); } + + +/* This doesn't seem to be needed to simulate libpthread.so's external + interface, but many people complain about its absence. */ + +strong_alias(__pthread_mutexattr_settype, __pthread_mutexattr_setkind_np) +weak_alias(__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np) diff --git a/vg_libpthread.c b/vg_libpthread.c index 171e2836dc..4f0bf99122 100644 --- a/vg_libpthread.c +++ b/vg_libpthread.c @@ -1461,3 +1461,10 @@ void _pthread_cleanup_pop_restore ( void ) // char* str = "_pthread_cleanup_pop_restore\n"; // write(2, str, strlen(str)); } + + +/* This doesn't seem to be needed to simulate libpthread.so's external + interface, but many people complain about its absence. */ + +strong_alias(__pthread_mutexattr_settype, __pthread_mutexattr_setkind_np) +weak_alias(__pthread_mutexattr_setkind_np, pthread_mutexattr_setkind_np)