about summary refs log tree commit diff
path: root/conform
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@gmail.com>2012-02-26 21:32:56 -0500
committerUlrich Drepper <drepper@gmail.com>2012-02-26 21:32:56 -0500
commitd94a4670800de6e8f088b8630ad5142866127980 (patch)
tree77ce944c2371dc45a567104a47454da162579391 /conform
parent4a3dded52708e6d9be190a968f0f09ca57539e13 (diff)
downloadglibc-d94a4670800de6e8f088b8630ad5142866127980.tar.gz
glibc-d94a4670800de6e8f088b8630ad5142866127980.tar.xz
glibc-d94a4670800de6e8f088b8630ad5142866127980.zip
Add first fixes for conformtest for POSIX2008
Diffstat (limited to 'conform')
-rw-r--r--conform/conformtest.pl4
-rw-r--r--conform/data/limits.h-data6
-rw-r--r--conform/run-conformtest.sh4
3 files changed, 6 insertions, 8 deletions
diff --git a/conform/conformtest.pl b/conform/conformtest.pl
index fd45a8d2ee..6a780203ce 100644
--- a/conform/conformtest.pl
+++ b/conform/conformtest.pl
@@ -40,8 +40,8 @@ $CFLAGS{"XPG3"} = "-D_XOPEN_SOURCE";
 $CFLAGS{"XPG4"} = "-D_XOPEN_SOURCE_EXTENDED";
 $CFLAGS{"UNIX98"} = "-D_XOPEN_SOURCE=500";
 $CFLAGS{"XOPEN2K"} = "-D_XOPEN_SOURCE=600";
-$CFLAGS{"XOPEN2K8"} = "-D_XOPEN_SOURCE=700";
-$CFLAGS{"POSIX2008"} = "-D_POSIX_C_SOURCE=200809L";
+$CFLAGS{"XOPEN2K8"} = "-std=c99 -D_XOPEN_SOURCE=700";
+$CFLAGS{"POSIX2008"} = "-std=c99 -D_POSIX_C_SOURCE=200809L";
 
 $CFLAGS = "$flags -fno-builtin '-D__attribute__(x)=' $CFLAGS{$standard} -D_ISOMAC";
 
diff --git a/conform/data/limits.h-data b/conform/data/limits.h-data
index 27ae77af8d..d7c97969e5 100644
--- a/conform/data/limits.h-data
+++ b/conform/data/limits.h-data
@@ -87,7 +87,7 @@ constant _POSIX_CLOCKRES_MIN <= 20000000
 optional-constant _POSIX_AIO_LISTIO_MAX	2
 optional-constant _POSIX_AIO_MAX 1
 optional-constant _POSIX_ARG_MAX 4096
-#ifdef XOPEN2K
+#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
 optional-constant _POSIX_CHILD_MAX 25
 #else
 optional-constant _POSIX_CHILD_MAX 6
@@ -100,12 +100,12 @@ optional-constant _POSIX_MAX_INPUT 255
 optional-constant _POSIX_MQ_OPEN_MAX 8
 optional-constant _POSIX_MQ_PRIO_MAX 32
 optional-constant _POSIX_NAME_MAX 14
-#ifdef XOPEN2K
+#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
 optional-constant _POSIX_NGROUPS_MAX 8
 #else
 optional-constant _POSIX_NGROUPS_MAX 0
 #endif
-#ifdef XOPEN2K
+#if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
 optional-constant _POSIX_OPEN_MAX 20
 #else
 optional-constant _POSIX_OPEN_MAX 16
diff --git a/conform/run-conformtest.sh b/conform/run-conformtest.sh
index 9600524a8d..d83aa799d4 100644
--- a/conform/run-conformtest.sh
+++ b/conform/run-conformtest.sh
@@ -1,4 +1,4 @@
-#! /bin/sh
+#! /bin/bash
 
 objpfx="$1"
 perl="$2"
@@ -7,8 +7,6 @@ includes="$4"
 
 standards=("ISO" "ISO99" "ISO11" "POSIX" "XPG3" "XPG4" "UNIX98"
 	   "XOPEN2K" "XOPEN2K8" "POSIX2008")
-standards=("POSIX" "XPG3" "XPG4" "UNIX98"
-	   "XOPEN2K" "XOPEN2K8" "POSIX2008")
 
 exitval=0
 > ${objpfx}run-conformtest.out