From 9a461d467f56a16e199d4c23d3e327eb886035af Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 30 Apr 2014 15:35:18 +0000 Subject: conformtest: clean up POSIX expectations for stdlib.h, string.h. Continuing the series of patches to clean up conformtest expectations for "POSIX" (1995/6) based on review of the expectations against the standard, this patch cleans up expectations for stdlib.h and string.h. Tested x86_64; no new XFAILs needed. * conform/data/stdlib.h-data [POSIX] (stddef.h): Do not allow header inclusion. [POSIX] (limits.h): Likewise. [POSIX] (math.h): Likewise. [POSIX] (sys/wait.h): Likewise. * conform/data/string.h-data [POSIX || UNIX98] (strtok_r): Require function. [POSIX] (stddef.h): Do not allow header inclusion. --- conform/data/string.h-data | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'conform/data/string.h-data') diff --git a/conform/data/string.h-data b/conform/data/string.h-data index 365a5377a7..cc3b1c9732 100644 --- a/conform/data/string.h-data +++ b/conform/data/string.h-data @@ -53,7 +53,7 @@ function {char*} strsignal (int) function size_t strspn (const char*, const char*) function {char*} strstr (const char*, const char*) function {char*} strtok (char*, const char*) -#if defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008 +#if defined POSIX || defined UNIX98 || defined XOPEN2K || defined XOPEN2K8 || defined POSIX2008 function {char*} strtok_r (char*, const char*, char**) #endif function size_t strxfrm (char*, const char*, size_t) @@ -61,7 +61,7 @@ function size_t strxfrm (char*, const char*, size_t) function size_t strxfrm_l (char*, const char*, size_t, locale_t) #endif -#if !defined ISO && !defined ISO99 && !defined ISO11 +#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX allow-header stddef.h #endif -- cgit 1.4.1