conformtest: correct set of standards for which some headers are tested.
authorJoseph Myers <joseph@codesourcery.com>
Thu, 6 Mar 2014 17:42:03 +0000 (17:42 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 6 Mar 2014 17:42:03 +0000 (17:42 +0000)
Reviewing the sets of headers for which conformtest has expectations
for various standards showed up cases where headers had expectations
for standards not including those headers, or were missing
expectations for a standard that did include the header.  This patch
fixes easy cases of this (largely disabling tests for standards for
which they are inapplicable).  Tested x86_64.

* conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
* conform/data/arpa/inet.h-data [XPG3]: Likewise.
* conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
* conform/data/fmtmsg.h-data [XPG3]: Likewise.
* conform/data/libgen.h-data [XPG3]: Likewise.
* conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
* conform/data/ndbm.h-data [XPG3]: Likewise.
* conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
* conform/data/netdb.h-data [XPG3]: Likewise.
* conform/data/netinet/in.h-data [XPG3]: Likewise.
* conform/data/poll.h-data [XPG3]: Likewise.
* conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
* conform/data/strings.h-data [XPG3]: Likewise.
* conform/data/stropts.h-data [XPG3]: Likewise.
* conform/data/sys/mman.h-data [XPG3]: Likewise.
* conform/data/sys/resource.h-data [XPG3]: Likewise.
* conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
Likewise.
* conform/data/sys/statvfs.h-data [XPG3]: Likewise.
* conform/data/sys/time.h-data [XPG3]: Likewise.
* conform/data/sys/timeb.h-data [XPG3]: Likewise.
* conform/data/sys/uio.h-data [XPG3]: Likewise.
* conform/data/sys/un.h-data [XPG3]: Likewise.
* conform/data/syslog.h-data [XPG3]: Likewise.
* conform/data/ucontext.h-data [XPG3]: Likewise.
* conform/data/utmpx.h-data [XPG3]: Likewise.
* conform/data/varargs.h-data [UNIX98]: Enable file.

27 files changed:
ChangeLog
conform/data/aio.h-data
conform/data/arpa/inet.h-data
conform/data/dlfcn.h-data
conform/data/fmtmsg.h-data
conform/data/libgen.h-data
conform/data/mqueue.h-data
conform/data/ndbm.h-data
conform/data/net/if.h-data
conform/data/netdb.h-data
conform/data/netinet/in.h-data
conform/data/poll.h-data
conform/data/spawn.h-data
conform/data/strings.h-data
conform/data/stropts.h-data
conform/data/sys/mman.h-data
conform/data/sys/resource.h-data
conform/data/sys/select.h-data
conform/data/sys/statvfs.h-data
conform/data/sys/time.h-data
conform/data/sys/timeb.h-data
conform/data/sys/uio.h-data
conform/data/sys/un.h-data
conform/data/syslog.h-data
conform/data/ucontext.h-data
conform/data/utmpx.h-data
conform/data/varargs.h-data

index 05bed06..ce0e9a3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,33 @@
 2014-03-06  Joseph Myers  <joseph@codesourcery.com>
 
+       * conform/data/aio.h-data [XPG3 || XPG4]: Disable whole file.
+       * conform/data/arpa/inet.h-data [XPG3]: Likewise.
+       * conform/data/dlfcn.h-data [XPG3 || XPG4]: Likewise.
+       * conform/data/fmtmsg.h-data [XPG3]: Likewise.
+       * conform/data/libgen.h-data [XPG3]: Likewise.
+       * conform/data/mqueue.h-data [XPG3 || XPG4]: Likewise.
+       * conform/data/ndbm.h-data [XPG3]: Likewise.
+       * conform/data/net/if.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
+       * conform/data/netdb.h-data [XPG3]: Likewise.
+       * conform/data/netinet/in.h-data [XPG3]: Likewise.
+       * conform/data/poll.h-data [XPG3]: Likewise.
+       * conform/data/spawn.h-data [XPG3 || XPG4 || UNIX98]: Likewise.
+       * conform/data/strings.h-data [XPG3]: Likewise.
+       * conform/data/stropts.h-data [XPG3]: Likewise.
+       * conform/data/sys/mman.h-data [XPG3]: Likewise.
+       * conform/data/sys/resource.h-data [XPG3]: Likewise.
+       * conform/data/sys/select.h-data [XPG3 || XPG4 || UNIX98]:
+       Likewise.
+       * conform/data/sys/statvfs.h-data [XPG3]: Likewise.
+       * conform/data/sys/time.h-data [XPG3]: Likewise.
+       * conform/data/sys/timeb.h-data [XPG3]: Likewise.
+       * conform/data/sys/uio.h-data [XPG3]: Likewise.
+       * conform/data/sys/un.h-data [XPG3]: Likewise.
+       * conform/data/syslog.h-data [XPG3]: Likewise.
+       * conform/data/ucontext.h-data [XPG3]: Likewise.
+       * conform/data/utmpx.h-data [XPG3]: Likewise.
+       * conform/data/varargs.h-data [UNIX98]: Enable file.
+
        * manual/Makefile (INSTALL_INFO): Remove variable setting.
 
        * math/libm-test.inc (struct test_f_f_data): Move expected results
index d6d0acb..e87923e 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined XPG4
 type {struct aiocb}
 
 // Test elements of the AIO control struct.
index becee2f..2bd3aee 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 // in_port_t should have exactly 16 bits
 type in_port_t
 // in_addr_t should have exactly 32 bits
index 59dd028..a954c9d 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4
 macro RTLD_LAZY
 macro RTLD_NOW
 macro RTLD_GLOBAL
index b6ddf27..e64d87c 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3
 macro MM_HARD
 constant MM_HARD
 
index f59bbb0..443cd0b 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3
 function {char*} basename (char*)
 function {char*} dirname (char*)
 
index 2ff2748..76652ce 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3 && !defined XPG4
 // should test for not an array type.
 type mqd_t
 
index 5d1fc6a..43c6a38 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3
 type datum
 element datum {void*} dptr
 element datum size_t dsize
index 2c3eb4d..fd85095 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
 type {struct if_nameindex}
 
 element {struct if_nameindex} {unsigned int} if_index
index a73004c..c5fd257 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 optional-type in_port_t
 optional-type in_addr_t
 
index be0236b..9284326 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type in_port_t
 type in_addr_t
 
index 395e4b5..84777df 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type {struct pollfd}
 element {struct pollfd} int fd
 element {struct pollfd} {short int} events
index 637f2bf..fb206f7 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
 type posix_spawnattr_t
 type posix_spawn_file_actions_t
 # if defined XOPEN2K8 || defined POSIX2008
index b61ac50..d22609a 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 # if !defined XOPEN2K8 && !defined POSIX2008
 function int bcmp (const void*, const void*, size_t)
 function void bcopy (const void*, void*, size_t)
index d978a1c..6849fec 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type {struct bandinfo}
 
 element {struct bandinfo} {unsigned char} bi_pri
index 62f8f4b..0555fd1 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined XPG3
 constant PROT_READ
 constant PROT_WRITE
 constant PROT_EXEC
index 67517ad..5c46dea 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3
 constant PRIO_PROCESS
 constant PRIO_PGRP
 constant PRIO_USER
index 84e07e9..00f037a 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
 type time_t
 type suseconds_t
 
index 750f22b..fa56fbe 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type {struct statvfs}
 
 element {struct statvfs} {unsigned long} f_bsize
index 98e5909..1d07bd6 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3
 type {struct timeval}
 
 element {struct timeval} time_t tv_sec
index 460da6e..dbae045 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type {struct timeb}
 
 element {struct timeb} time_t time
index 3352695..da606b8 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type {struct iovec}
 
 element {struct iovec} {void*} iov_base
index ee157ed..3bf7968 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type {struct sockaddr_un}
 
 element {struct sockaddr_un} sa_family_t sun_family
index 26fef76..05619cf 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3
 constant LOG_PID
 constant LOG_CONS
 constant LOG_NDELAY
index 2b5f3b4..93e9c1e 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3
 type mcontext_t
 
 type ucontext_t
index b9dd0d5..b8a0062 100644 (file)
@@ -1,4 +1,4 @@
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008 && !defined XPG3
 type {struct utmpx}
 
 element {struct utmpx} char ut_user []
index a486b72..48435fe 100644 (file)
@@ -1,4 +1,4 @@
-#if defined XPG3 || defined XPG4
+#if defined XPG3 || defined XPG4 || defined UNIX98
 macro va_alist
 macro va_dcl
 type va_list