about summary refs log tree commit diff
path: root/conform
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-01-25 20:05:55 +0000
committerUlrich Drepper <drepper@redhat.com>2001-01-25 20:05:55 +0000
commitbec7805d999296000230342f7a8771bbb4001bf1 (patch)
tree46bf3fb7d5d479d234177934b624b0661e03bc5e /conform
parente7c3d12bc25e5dae1ca3617097fb3ee867f18855 (diff)
downloadglibc-bec7805d999296000230342f7a8771bbb4001bf1.tar.gz
glibc-bec7805d999296000230342f7a8771bbb4001bf1.tar.xz
glibc-bec7805d999296000230342f7a8771bbb4001bf1.zip
Update.
2001-01-25  Ulrich Drepper  <drepper@redhat.com>

	* conform/conformtest.pl: Handle allow-header in secondary headers
	correctly.

	* conform/data/fcntl.h-data: Mark symbols introduced in XPG6 with
	#ifdef.

	* conform/data/netinet/in.h-data: Use correct comment character.
	* conform/data/sys/stat.h-data: Likewise.
Diffstat (limited to 'conform')
-rw-r--r--conform/conformtest.pl7
-rw-r--r--conform/data/fcntl.h-data4
-rw-r--r--conform/data/netinet/in.h-data4
-rw-r--r--conform/data/sys/stat.h-data10
4 files changed, 15 insertions, 10 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index 8dde08c11d..810d2632be 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -58,7 +58,8 @@ $errors = 0;
 #$dialect = "POSIX";
 #$dialect = "XPG3";
 #$dialect = "XPG4";
-$dialect = "UNIX98";
+#$dialect = "UNIX98";
+$dialect = "XOPEN2K";
 
 
 sub poorfnmatch {
@@ -780,11 +781,11 @@ while ($#headers >= 0) {
 	push @allow, $4;
       } elsif (/^macro *([^	]*)/) {
 	push @allow, $1;
-      } elsif (/^allow *(.*)/) {
-	push @allow, $1;
       } elsif (/^allow-header *(.*)/) {
 	# XXX We should have a test for recursive dependencies here.
 	push @allowheader, $1;
+      } elsif (/^allow *(.*)/) {
+	push @allow, $1;
       }
     }
     close (ALLOW);
diff --git a/conform/data/fcntl.h-data b/conform/data/fcntl.h-data
index 0fbe7d57fe..5771af6bba 100644
--- a/conform/data/fcntl.h-data
+++ b/conform/data/fcntl.h-data
@@ -62,12 +62,14 @@ constant S_ISUID
 constant S_ISGID
 constant S_ISVTX
 
+#ifdef XOPEN2K
 constant POSIX_FADV_NORMAL
 constant POSIX_FADV_SEQUENTIAL
 constant POSIX_FADV_RANDOM
 constant POSIX_FADV_WILLNEED
 constant POSIX_FADV_DONTNEED
 constant POSIX_FADV_NOREUSE
+#endif
 
 type {struct flock}
 
@@ -84,9 +86,11 @@ type pid_t
 function int creat (const char*, mode_t)
 function int fcntl (int, int, ...)
 function int open (const char*, int, ...)
+#ifdef XOPEN2K
 function int posix_fadvise (int, off_t, size_t, int)
 function int posix_fallocate (int, off_t, size_t)
 function int posix_madvise (void*, size_t, int)
+#endif
 
 allow-header sys/stat.h
 allow-header unistd.h
diff --git a/conform/data/netinet/in.h-data b/conform/data/netinet/in.h-data
index ad2dd790b0..b6465aaf71 100644
--- a/conform/data/netinet/in.h-data
+++ b/conform/data/netinet/in.h-data
@@ -29,12 +29,12 @@ element {struct sockaddr_in6} uint32_t sin6_scope_id
 
 variable {struct in6_addr} in6addr_any
 
-# constant IN6ADDR_ANY_INIT
+// constant IN6ADDR_ANY_INIT
 macro IN6ADDR_ANY_INIT
 
 variable {struct in6_addr} in6addr_loopback
 
-#constant IN6ADDR_LOOPBACK_INIT
+// constant IN6ADDR_LOOPBACK_INIT
 macro IN6ADDR_LOOPBACK_INIT
 
 type {struct ipv6_mreq}
diff --git a/conform/data/sys/stat.h-data b/conform/data/sys/stat.h-data
index afdbd2c888..3873284ca4 100644
--- a/conform/data/sys/stat.h-data
+++ b/conform/data/sys/stat.h-data
@@ -57,11 +57,11 @@ macro S_ISFIFO
 macro S_ISREG
 macro S_ISLNK
 
-# How to represent optional tests?
-# macro S_TYPEISMQ
-# macro S_TYPEISSEM
-# macro S_TYPEISSHM
-# macro S_TYPEISTMO
+// How to represent optional tests?
+// macro S_TYPEISMQ
+// macro S_TYPEISSEM
+// macro S_TYPEISSHM
+// macro S_TYPEISTMO
 
 function int chmod (const char*, mode_t)
 function int fchmod (int, mode_t)