From 9247bfce1f4cbf101cce4e6ef6d7b1a63fe19a6a Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Wed, 24 Apr 2002 13:28:15 +0000 Subject: [PATCH] Add wrapper for system(). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@130 --- coregrind/arch/x86-linux/vg_libpthread.c | 7 +++++++ coregrind/vg_libpthread.c | 7 +++++++ vg_libpthread.c | 7 +++++++ 3 files changed, 21 insertions(+) diff --git a/coregrind/arch/x86-linux/vg_libpthread.c b/coregrind/arch/x86-linux/vg_libpthread.c index 8d88efc60..2ee0140b5 100644 --- a/coregrind/arch/x86-linux/vg_libpthread.c +++ b/coregrind/arch/x86-linux/vg_libpthread.c @@ -733,6 +733,13 @@ int sendto(int s, const void *msg, size_t len, int flags, return __libc_sendto(s, msg, len, flags, to, tolen); } +extern +int __libc_system(const char* str); +int system(const char* str) +{ + return __libc_system(str); +} + /*--------------------------------------------------*/ diff --git a/coregrind/vg_libpthread.c b/coregrind/vg_libpthread.c index 8d88efc60..2ee0140b5 100644 --- a/coregrind/vg_libpthread.c +++ b/coregrind/vg_libpthread.c @@ -733,6 +733,13 @@ int sendto(int s, const void *msg, size_t len, int flags, return __libc_sendto(s, msg, len, flags, to, tolen); } +extern +int __libc_system(const char* str); +int system(const char* str) +{ + return __libc_system(str); +} + /*--------------------------------------------------*/ diff --git a/vg_libpthread.c b/vg_libpthread.c index 8d88efc60..2ee0140b5 100644 --- a/vg_libpthread.c +++ b/vg_libpthread.c @@ -733,6 +733,13 @@ int sendto(int s, const void *msg, size_t len, int flags, return __libc_sendto(s, msg, len, flags, to, tolen); } +extern +int __libc_system(const char* str); +int system(const char* str) +{ + return __libc_system(str); +} + /*--------------------------------------------------*/