This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
conformtest: Fix setenv / unsetenv expectations
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: <libc-alpha at sourceware dot org>
- Date: Wed, 7 Nov 2012 16:07:03 +0000
- Subject: conformtest: Fix setenv / unsetenv expectations
The setenv and unsetenv functions were added in the 2001 edition of
POSIX; they were not in XPG3 / XPG4 / UNIX98. This patch fixes the
conformtest data for them accordingly.
Tested x86_64.
2012-11-07 Joseph Myers <joseph@codesourcery.com>
* conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
not expect.
[XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
diff --git a/conform/data/stdlib.h-data b/conform/data/stdlib.h-data
index 0b8dc3d..382fff6 100644
--- a/conform/data/stdlib.h-data
+++ b/conform/data/stdlib.h-data
@@ -138,7 +138,7 @@ function {void*} realloc (void*, size_t)
function {char*} realpath (const char*, char*)
function {unsigned short int*} seed48 (unsigned short int[3])
#endif
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
function int setenv (const char*, const char*, int)
#endif
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
@@ -168,7 +168,7 @@ function int ttyslot (void)
#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined POSIX2008
function int unlockpt (int)
#endif
-#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX
+#if !defined ISO && !defined ISO99 && !defined ISO11 && !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
function int unsetenv (const char*)
#endif
#if defined XPG3 || defined XPG4 || defined UNIX98
--
Joseph S. Myers
joseph@codesourcery.com