ftmemsim-valgrind/tests/filter_libc
Julian Seward 7c542ccd39 Add new files resulting from merging in the 2.4.0 line. Many of these
seem to be simply duplication of the x86 instruction set tests into
the addrcheck and helgrind trees.  I'm not sure what this duplication
achieves.



git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3264
2005-03-10 23:23:45 +00:00

27 lines
578 B
Perl
Executable File

#! /usr/bin/perl -w
use strict;
my @libc_symbols = qw(__libc_start_main accept execve fcntl
getsockname poll readv recvmsg
socket socketpair syscall writev);
my $libc_symbols = join("|", @libc_symbols);
while (<>)
{
s/ __getsockname / getsockname /;
s/ __sigaction / sigaction /;
s/ __GI___/ __/;
s/ __([a-z]*)_nocancel / $1 /;
s/\(in \/.*libc.*\)$/(in \/...libc...)/;
s/\(within \/.*libc.*\)$/(within \/...libc...)/;
s/($libc_symbols) \(.+\.[cS]:\d+\)$/$1 (in \/...libc...)/;
print;
}
exit 0;