conformtest: Handle "symbol" lines for allow-header
Joseph S. Myers
joseph@codesourcery.com
Sat Apr 28 09:01:00 GMT 2012
When conformtest.pl processes the data for a header listed with
allow-header, it ignores "symbol" lines. I propose this patch to fix
this. This fixes the one failure reported for "POSIX" (i.e. POSIX.1,
1995/1996 edition) testing; the tests were failing to allow for the
CLK_TCK symbol from time.h being visible through pthread.h. Tested
x86_64.
2012-04-28 Joseph Myers <joseph@codesourcery.com>
* conform/conformtest.pl: Handle "symbol" lines for allow-header.
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 8b95186..a14aa09 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -1075,6 +1075,8 @@ while ($#headers >= 0) {
push @allow, $4;
} elsif (/^macro *([^ ]*)/) {
push @allow, $1;
+ } elsif (/^symbol *([a-zA-Z0-9_]*) *([A-Za-z0-9_-]*)?/) {
+ push @allow, $1;
} elsif (/^allow-header *(.*)/) {
if ($seenheader{$1} != 1) {
push @allowheader, $1;
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Libc-alpha
mailing list