From: Julian Seward Date: Tue, 21 May 2002 00:51:21 +0000 (+0000) Subject: Don't mask libc's vfork / __vfork: X-Git-Tag: svn/VALGRIND_1_0_3~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d2d128371e75cf6c21d6e8a738fe9deef37be98;p=thirdparty%2Fvalgrind.git Don't mask libc's vfork / __vfork: $ nm /lib/libc-2.2.4.so | grep vfork 000b4220 T __vfork 000b4220 W vfork There's no __libc_vfork, so there's nothing we can do here. Just don't supply our own version. Not at all sure if this is correct. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@303 --- diff --git a/coregrind/arch/x86-linux/vg_libpthread.c b/coregrind/arch/x86-linux/vg_libpthread.c index 960d3013bd..572f33aea0 100644 --- a/coregrind/arch/x86-linux/vg_libpthread.c +++ b/coregrind/arch/x86-linux/vg_libpthread.c @@ -1730,7 +1730,7 @@ strong_alias(send, __send) weak_alias (__pread64, pread64) weak_alias (__pwrite64, pwrite64) weak_alias(__fork, fork) -//weak_alias(__vfork, vfork) + /*--------------------------------------------------*/ diff --git a/coregrind/arch/x86-linux/vg_libpthread_unimp.c b/coregrind/arch/x86-linux/vg_libpthread_unimp.c index 66c586e7db..01c299e2a9 100644 --- a/coregrind/arch/x86-linux/vg_libpthread_unimp.c +++ b/coregrind/arch/x86-linux/vg_libpthread_unimp.c @@ -72,7 +72,7 @@ void __libc_current_sigrtmin ( void ) { unimp("__libc_current_sigrtmin"); } //void __res_state ( void ) { unimp("__res_state"); } //void __send ( void ) { unimp("__send"); } //void __sigaction ( void ) { unimp("__sigaction"); } -void __vfork ( void ) { unimp("__vfork"); } +//--//void __vfork ( void ) { unimp("__vfork"); } //void __wait ( void ) { unimp("__wait"); } //void __write ( void ) { unimp("__write"); } //void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); } @@ -208,7 +208,7 @@ __attribute__((weak)) void recvfrom ( void ) { vgPlain_unimp("recvfrom"); } __attribute__((weak)) void recvmsg ( void ) { vgPlain_unimp("recvmsg"); } //__attribute__((weak)) void sendmsg ( void ) { vgPlain_unimp("sendmsg"); } __attribute__((weak)) void tcdrain ( void ) { vgPlain_unimp("tcdrain"); } -__attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } +//--//__attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } __attribute__((weak)) void pthread_attr_getguardsize ( void ) { vgPlain_unimp("pthread_attr_getguardsize"); } diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c index 960d3013bd..572f33aea0 100644 --- a/coregrind/vg_libpthread.c +++ b/coregrind/vg_libpthread.c @@ -1730,7 +1730,7 @@ strong_alias(send, __send) weak_alias (__pread64, pread64) weak_alias (__pwrite64, pwrite64) weak_alias(__fork, fork) -//weak_alias(__vfork, vfork) + /*--------------------------------------------------*/ diff --git a/coregrind/vg_libpthread_unimp.c b/coregrind/vg_libpthread_unimp.c index 66c586e7db..01c299e2a9 100644 --- a/coregrind/vg_libpthread_unimp.c +++ b/coregrind/vg_libpthread_unimp.c @@ -72,7 +72,7 @@ void __libc_current_sigrtmin ( void ) { unimp("__libc_current_sigrtmin"); } //void __res_state ( void ) { unimp("__res_state"); } //void __send ( void ) { unimp("__send"); } //void __sigaction ( void ) { unimp("__sigaction"); } -void __vfork ( void ) { unimp("__vfork"); } +//--//void __vfork ( void ) { unimp("__vfork"); } //void __wait ( void ) { unimp("__wait"); } //void __write ( void ) { unimp("__write"); } //void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); } @@ -208,7 +208,7 @@ __attribute__((weak)) void recvfrom ( void ) { vgPlain_unimp("recvfrom"); } __attribute__((weak)) void recvmsg ( void ) { vgPlain_unimp("recvmsg"); } //__attribute__((weak)) void sendmsg ( void ) { vgPlain_unimp("sendmsg"); } __attribute__((weak)) void tcdrain ( void ) { vgPlain_unimp("tcdrain"); } -__attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } +//--//__attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } __attribute__((weak)) void pthread_attr_getguardsize ( void ) { vgPlain_unimp("pthread_attr_getguardsize"); } diff --git a/vg_libpthread.c b/vg_libpthread.c index 960d3013bd..572f33aea0 100644 --- a/vg_libpthread.c +++ b/vg_libpthread.c @@ -1730,7 +1730,7 @@ strong_alias(send, __send) weak_alias (__pread64, pread64) weak_alias (__pwrite64, pwrite64) weak_alias(__fork, fork) -//weak_alias(__vfork, vfork) + /*--------------------------------------------------*/ diff --git a/vg_libpthread_unimp.c b/vg_libpthread_unimp.c index 66c586e7db..01c299e2a9 100644 --- a/vg_libpthread_unimp.c +++ b/vg_libpthread_unimp.c @@ -72,7 +72,7 @@ void __libc_current_sigrtmin ( void ) { unimp("__libc_current_sigrtmin"); } //void __res_state ( void ) { unimp("__res_state"); } //void __send ( void ) { unimp("__send"); } //void __sigaction ( void ) { unimp("__sigaction"); } -void __vfork ( void ) { unimp("__vfork"); } +//--//void __vfork ( void ) { unimp("__vfork"); } //void __wait ( void ) { unimp("__wait"); } //void __write ( void ) { unimp("__write"); } //void _pthread_cleanup_pop ( void ) { unimp("_pthread_cleanup_pop"); } @@ -208,7 +208,7 @@ __attribute__((weak)) void recvfrom ( void ) { vgPlain_unimp("recvfrom"); } __attribute__((weak)) void recvmsg ( void ) { vgPlain_unimp("recvmsg"); } //__attribute__((weak)) void sendmsg ( void ) { vgPlain_unimp("sendmsg"); } __attribute__((weak)) void tcdrain ( void ) { vgPlain_unimp("tcdrain"); } -__attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } +//--//__attribute__((weak)) void vfork ( void ) { vgPlain_unimp("vfork"); } __attribute__((weak)) void pthread_attr_getguardsize ( void ) { vgPlain_unimp("pthread_attr_getguardsize"); }