From d94a4670800de6e8f088b8630ad5142866127980 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 26 Feb 2012 21:32:56 -0500 Subject: Add first fixes for conformtest for POSIX2008 --- conform/conformtest.pl | 4 ++-- conform/data/limits.h-data | 6 +++--- conform/run-conformtest.sh | 4 +--- 3 files changed, 6 insertions(+), 8 deletions(-) (limited to 'conform') diff --git a/conform/conformtest.pl b/conform/conformtest.pl index fd45a8d..6a78020 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 27ae77a..d7c9796 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 9600524..d83aa79 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 -- cgit v1.1